Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1456324rwr; Wed, 26 Apr 2023 15:38:12 -0700 (PDT) X-Google-Smtp-Source: AKy350bzQgPLHCkCI5A0fGoqPT/rCenMPKN7furPHdH3C7km3L2pCRMxBTQe6IzSBkHv1/h05lht X-Received: by 2002:a05:6a20:7d8c:b0:f2:f05f:6e9e with SMTP id v12-20020a056a207d8c00b000f2f05f6e9emr21849682pzj.29.1682548692356; Wed, 26 Apr 2023 15:38:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682548692; cv=none; d=google.com; s=arc-20160816; b=QdVvlyRrq4GrWje5l86pzrsH855ImwRLm1QyzeqBtaEikAtsTYlKlIucUGasmYFPIf sGeCSD+hvHaHPUTAKUUZc/JjFywlTODJHEq0LEpP0895ScydOpWkUS84eF9pqMPjB21m VtPuUTObYwLBKI5ZOdvHKtlE8ofvPZ0lCuwOz0/22o/iGl8qP88V8TjkP0nybaIWkbYl vqh1K1gh2nt/33iFUxXa5KRt3i1CWN2k3MVG93jEJCiJKD7zUmK6FkZ0ELXXXvi+5cMO IaqbDAI71Ndb2GW8vIlTEFfC5f3lBCNR+mqgZpVO1IqrMnkmX/IAHEk8jRiHEMOZhMx6 fnZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=EkaepprkvudmbfVvyJckr00JL46ETgVPgoPpZiaQRXc=; b=MRwC3/sHzYRXGGRH2oJN2jGk4BflSBnN79KJrkZU5GGDMBS3bosKbWMBP0DRd14xli diyF0cFxPFW3HZV/v+e+ttnGAODX/W3nCZq4T9FPk6SA49FdADp5D2jJrBFNsxLBhBsJ Btoq1SAemAgEOpw8pQea1vHQyJWLYAOYfi2397tuWTzyVnCJTVJBdMmejymRoPvKk9wy 8g0cwx8QnZZLnMdxj0j1fH40e0S5SpKTtDNgt5ExO96pQC4JIpQ8YnHYDc7qLlIM8REs kqD+/9Wgoyc4aXUTLD3OOyDzckbRvAcwpd8JAWnOsklMQiPvESzEylTVj2i0qyKb2wlW Oy5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s5-20020a63f045000000b0051b5256a3fdsi16921525pgj.305.2023.04.26.15.37.57; Wed, 26 Apr 2023 15:38:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239328AbjDZWhf (ORCPT + 99 others); Wed, 26 Apr 2023 18:37:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233643AbjDZWhZ (ORCPT ); Wed, 26 Apr 2023 18:37:25 -0400 Received: from relay01.th.seeweb.it (relay01.th.seeweb.it [5.144.164.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2F2C35B1 for ; Wed, 26 Apr 2023 15:37:20 -0700 (PDT) Received: from Marijn-Arch-PC.localdomain (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id A4D7D2020A; Thu, 27 Apr 2023 00:37:18 +0200 (CEST) From: Marijn Suijten Date: Thu, 27 Apr 2023 00:37:17 +0200 Subject: [PATCH v4 03/22] drm/msm/dpu: Move non-MDP_TOP INTF_INTR offsets out of hwio header MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230411-dpu-intf-te-v4-3-27ce1a5ab5c6@somainline.org> References: <20230411-dpu-intf-te-v4-0-27ce1a5ab5c6@somainline.org> In-Reply-To: <20230411-dpu-intf-te-v4-0-27ce1a5ab5c6@somainline.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Adam Skladowski , Loic Poulain , Bjorn Andersson , Kuogee Hsieh , Robert Foss , Vinod Koul , Neil Armstrong Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jordan Crouse , Jessica Zhang , Marijn Suijten X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These offsets do not fall under the MDP TOP block and do not fit the comment right above. Move them to dpu_hw_interrupts.c next to the repsective MDP_INTF_x_OFF interrupt block offsets. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 5 ++++- drivers/gpu/drm/msm/disp/dpu1/dpu_hwio.h | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) 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 53326f25e40ef..85c0bda3ff90e 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c @@ -15,7 +15,7 @@ /* * Register offsets in MDSS register file for the interrupt registers - * w.r.t. to the MDP base + * w.r.t. the MDP base */ #define MDP_SSPP_TOP0_OFF 0x0 #define MDP_INTF_0_OFF 0x6A000 @@ -24,6 +24,9 @@ #define MDP_INTF_3_OFF 0x6B800 #define MDP_INTF_4_OFF 0x6C000 #define MDP_INTF_5_OFF 0x6C800 +#define INTF_INTR_EN 0x1c0 +#define INTF_INTR_STATUS 0x1c4 +#define INTF_INTR_CLEAR 0x1c8 #define MDP_AD4_0_OFF 0x7C000 #define MDP_AD4_1_OFF 0x7D000 #define MDP_AD4_INTR_EN_OFF 0x41c diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hwio.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hwio.h index feb9a729844a3..5acd5683d25a4 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hwio.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hwio.h @@ -21,9 +21,6 @@ #define HIST_INTR_EN 0x01c #define HIST_INTR_STATUS 0x020 #define HIST_INTR_CLEAR 0x024 -#define INTF_INTR_EN 0x1C0 -#define INTF_INTR_STATUS 0x1C4 -#define INTF_INTR_CLEAR 0x1C8 #define SPLIT_DISPLAY_EN 0x2F4 #define SPLIT_DISPLAY_UPPER_PIPE_CTRL 0x2F8 #define DSPP_IGC_COLOR0_RAM_LUTN 0x300 -- 2.40.1