From patchwork Tue Nov 23 15:40:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 519316 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp8807552imj; Tue, 23 Nov 2021 07:39:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzr9rYfxnhEZCZN0rk5Sh/Ld33Bqh8iKLsWJERbR29/PX/c6z3AA2Ktn/NiTp+6XT0tRhUl X-Received: by 2002:a17:903:41cb:b0:142:62a:4d86 with SMTP id u11-20020a17090341cb00b00142062a4d86mr8002107ple.43.1637681950283; Tue, 23 Nov 2021 07:39:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637681950; cv=none; d=google.com; s=arc-20160816; b=RbJ8+EX6MYSqjsHGucu7oqi7TLBMDH3gNGR67PgNyLd9/WoeGOHvOUp1tyyvef2ebt 3u3MJkiWN7S1+mAM4+zHN6phVklNTjBVwTInS4KkxiMUO85deNBPg6bLDW7B1WVcal5n MhfjXcXComRhgeeEPgZa1bFpBvGPmbdS0y089VzyzIYYHhgU3mwyYm3bVxVw76Sg48wn jShU0+YUmNcc02HluJXk0sy+gifaFwN609oai0CwnlRrHIQUH9CvBYCzOJlgj5p0Dm8o n/p/E8ziuItAHNu+DFd77XS2d1iQncmWR2FBeALf4vqzE/wQfYlKxqAsGQwgiOTl6CV1 TccA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=nLQmUNabRXXOhYysWc62nCjRSBEMKoCg9jR25zW3RSk=; b=YbhRYXSXe6JjrP5+iMZzRRukB+ku7i2wl40rbDdqSVQA2TfegwGUXz0S8Spn2lQXZ5 6jMIvZcUtEHbLVzfUZ43oreR/6b1rgp+7X3V/ebc1GVjlDxGe0Fi2tQ/+bacmf4o8Lhs uGvC+8isCuAx8ORfQ6aOT6dFnsihbnrcmhpUVVgJCAj0u5tSOR7AYMQDzTU5ALG912aI Olg/ZQJbPLh49eQT3pYgQJ7p9UBdB0RAHEeoNg6l0gUnciVJ+U3mJubar0oiRoycRcH2 T3J63cce9LklQSzUU088ZxrS0QgNG2/vn4hp/W4m+6gMXYCpXvkvtyEAHIvk0C5WesUk iE/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RQrUKUyQ; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id z26si24209382pga.340.2021.11.23.07.39.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 07:39:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RQrUKUyQ; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5F8206E44D; Tue, 23 Nov 2021 15:39:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by gabe.freedesktop.org (Postfix) with ESMTPS id BBD556E44A for ; Tue, 23 Nov 2021 15:39:06 +0000 (UTC) Received: by mail-ot1-x32f.google.com with SMTP id n17-20020a9d64d1000000b00579cf677301so3355737otl.8 for ; Tue, 23 Nov 2021 07:39:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nLQmUNabRXXOhYysWc62nCjRSBEMKoCg9jR25zW3RSk=; b=RQrUKUyQzNzg7rLCG3cxzoGDG0oNzIKHOfQJ9nks5WNuVHemxSfYdsH7TY9AuPPe2F zRpRzme9bN39IU08LKa8cC92y1B7a7fa007Ur6kL2QhFIs3vOi/+alGazlRzepkaMClH fqUKV9MRxRC5tDjN5NMa8EeKTky6VTLEMkim8k2KHV2Us4zfWVmHgakV96WVg/62LMOz jWBVTk11If3OhcQzLT1pO7brO+kFyyGsWgDe0P+Q5zuAr4kqX/ZutjzbYuoh7fWeysEG 6/ZT7gucb1Uxe42OhBFhWRyv1PtMyDmTjwT22Ryus1l2WZh35y8SKJV8rj77sPmSh3XI jdQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nLQmUNabRXXOhYysWc62nCjRSBEMKoCg9jR25zW3RSk=; b=to2Ezk7BV3QvAuHwDq1hniOTSA50T5zf2zBjxbTLLQMq6v+yVLaV8u6o0FVW+972gH QsIpmdvEQQj2VE3VhyR+1Nor+yqQ82cNKgWFNP1h9p0goBBpzz4spT383TCiJr0a4Gku 4ImAdM98b49PDC6Z3eec36/bGd72321ouhpSwDLYitNrECLXlQuBxCaMPjlNXZiaGRsi I5y8NT3OEQW2xyX020VIMzZvp69fbtZORJVKbzcYLLhGbezrG1qWVAErk6fvuNvZAz8+ punc49fIv55f56FO/ytETThKpFSWSv+7gRDUXxlAf5UzJNea03gJmw9TOkC49lWRYyvs Wu8A== X-Gm-Message-State: AOAM531D7lwmTQXq7/WejCXHxXXPsgvOCzI8UtMKntUGKYEKwYG7/goY ouW4H1EVmbRVsHDVFoP6MPJ+cQ== X-Received: by 2002:a05:6830:453:: with SMTP id d19mr5487860otc.72.1637681945857; Tue, 23 Nov 2021 07:39:05 -0800 (PST) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id r22sm2571632oij.36.2021.11.23.07.39.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 07:39:05 -0800 (PST) From: Bjorn Andersson To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Dmitry Baryshkov Subject: [PATCH] drm/msm/dpu: Add more of the INTF interrupt regions Date: Tue, 23 Nov 2021 07:40:49 -0800 Message-Id: <20211123154050.40984-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, Abhinav Kumar , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Robert Foss , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" In addition to the other 7xxx INTF interrupt regions, SM8350 has additional INTF regions at 0x0ae37000, 0x0ae38000 and 0x0ae39000, define these. The 7xxx naming scheme of the bits are kept for consistency. Signed-off-by: Bjorn Andersson Reviewed-by: Robert Foss Reviewed-by: Abhinav Kumar --- .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 18 ++++++++++++++++++ .../gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h | 3 +++ 2 files changed, 21 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c index d2b6dca487e3..a77a5eaa78ad 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c @@ -30,6 +30,9 @@ #define MDP_AD4_INTR_STATUS_OFF 0x420 #define MDP_INTF_0_OFF_REV_7xxx 0x34000 #define MDP_INTF_1_OFF_REV_7xxx 0x35000 +#define MDP_INTF_2_OFF_REV_7xxx 0x36000 +#define MDP_INTF_3_OFF_REV_7xxx 0x37000 +#define MDP_INTF_4_OFF_REV_7xxx 0x38000 #define MDP_INTF_5_OFF_REV_7xxx 0x39000 /** @@ -110,6 +113,21 @@ static const struct dpu_intr_reg dpu_intr_set[] = { MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_EN, MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_STATUS }, + { + MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_CLEAR, + MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_EN, + MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_STATUS + }, + { + MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_CLEAR, + MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_EN, + MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_STATUS + }, + { + MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_CLEAR, + MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_EN, + MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_STATUS + }, { MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_CLEAR, MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_EN, diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h index d50e78c9f148..1ab75cccd145 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h @@ -26,6 +26,9 @@ enum dpu_hw_intr_reg { MDP_AD4_1_INTR, MDP_INTF0_7xxx_INTR, MDP_INTF1_7xxx_INTR, + MDP_INTF2_7xxx_INTR, + MDP_INTF3_7xxx_INTR, + MDP_INTF4_7xxx_INTR, MDP_INTF5_7xxx_INTR, MDP_INTR_MAX, };