Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp397775rwb; Wed, 18 Jan 2023 19:48:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXtbHpnYuZ+fwsQnEVfNw4b8Bn0DEVpqnD9xNfJ1fC1OPB9pjowz+cUMydVgb/6XMJFfXx36 X-Received: by 2002:a17:906:60d2:b0:872:6bd0:d2b with SMTP id f18-20020a17090660d200b008726bd00d2bmr8618427ejk.45.1674100099239; Wed, 18 Jan 2023 19:48:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674100099; cv=none; d=google.com; s=arc-20160816; b=vWrPv+xeN4DCe8HQrjDNSEtxjVfSeGhak1LWedbTKkSAlOq+w3Jo9iVVMjWK3rsMFc Q4W2uIBozxUxPVbMBnu2iqKlqXTUZP/9w0fjsSQ2Ob69XcqzWD3QJ/hlclMC29PTTouw VNcjDZtiTL/4I9jOTtjU26+rY9wo0qetOFFzZXOONbQEuArJf+gUl41u59ETwMlOlain vBU8FuuRYch0ILmqnerMviwYwjQKosBkV9CQWxuk1isWGtdkTHb9NV3wurDzFDjgjV3J CNCyu07er8vkXQO36XxWSk5Gmqz7TKD0NWgW+zI20dfS8RFA42qmygwv0ZlMuTNnhWaG CMSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=JijzVfs87w2dXjlOfJDc8FWriKWmuPzLeITZtMsJ4n8=; b=aJ/PjA4krirPfaYpL6RVKKKI+XLAi9aVcMc7FTUua/pVKFy0FgXu8CDzMBFORvTgRw SPFLficYn0j57Xnynb21ys/8cEr0p19cDZCGyHBgkTwYkTFx/lnXwAUDY/beJbbwf5hw 63c3bXISPigx8LZFLhrAqzJ/QitxsLnMqV1AhKpPtS8D92RQIhqvv8ORe+IUBV8kXBmH JFOQEIUncIYZj7CYqOw5l67Y7TMg6KBCoarpFEs/Gqp/bzb0Xm+RwyWjHNPUTLplqjMc WCrWEaSVF0QDEWlFtTD2NbiauTlDVwgjtrZDuNtw0XHLbYRnLJIb3S3GRsVvlHyvxoDk dTdg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a170906794b00b007c11fd0d579si41224043ejo.475.2023.01.18.19.48.08; Wed, 18 Jan 2023 19:48:19 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbjASDCm (ORCPT + 44 others); Wed, 18 Jan 2023 22:02:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjASDCl (ORCPT ); Wed, 18 Jan 2023 22:02:41 -0500 Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF17D5A837; Wed, 18 Jan 2023 19:02:30 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VZrtxIM_1674097321; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VZrtxIM_1674097321) by smtp.aliyun-inc.com; Thu, 19 Jan 2023 11:02:27 +0800 From: Jiapeng Chong To: robdclark@gmail.com Cc: quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org, sean@poorly.run, airlied@gmail.com, daniel@ffwll.ch, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH v3] drm/msm/dpu: add the regdma entries to .dma_cfg of these chipsets Date: Thu, 19 Jan 2023 11:01:31 +0800 Message-Id: <20230119030131.21904-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham 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 Variables 'sc8280xp_regdma' and 'sm8350_regdma' are defined in the dpu_hw_catalog.c file, but not used elsewhere, so adding the regdma entries to .dma_cfg of these chipsets. drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:2029:37: warning: unused variable 'sc8280xp_regdma'. drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:2053:37: warning: unused variable 'sm8350_regdma'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3722 Fixes: 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP") Fixes: 0e91bcbb0016 ("drm/msm/dpu: Add SM8350 to hw catalog") Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v3: -Add Fixes tag and change the title. drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c index 0f3da480b066..3318e1d18a0e 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -2677,6 +2677,8 @@ static const struct dpu_mdss_cfg sc8280xp_dpu_cfg = { .intf = sc8280xp_intf, .vbif_count = ARRAY_SIZE(sdm845_vbif), .vbif = sdm845_vbif, + .reg_dma_count = 1, + .dma_cfg = &sc8280xp_regdma, .perf = &sc8280xp_perf_data, .mdss_irqs = IRQ_SC8280XP_MASK, }; @@ -2732,7 +2734,7 @@ static const struct dpu_mdss_cfg sm8350_dpu_cfg = { .vbif_count = ARRAY_SIZE(sdm845_vbif), .vbif = sdm845_vbif, .reg_dma_count = 1, - .dma_cfg = &sm8250_regdma, + .dma_cfg = &sm8350_regdma, .perf = &sm8350_perf_data, .mdss_irqs = IRQ_SM8350_MASK, }; -- 2.20.1.7.g153144c