Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1256334rwr; Wed, 3 May 2023 12:20:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5sJQt1XL1zfNI8pvdxY2fk7olQ7mOG77s7vW2g+YwLJJt3warTRqt4NAoNvGDkN557F6ak X-Received: by 2002:a05:6a20:32a9:b0:f2:ad27:f98a with SMTP id g41-20020a056a2032a900b000f2ad27f98amr19065516pzd.14.1683141631368; Wed, 03 May 2023 12:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683141631; cv=none; d=google.com; s=arc-20160816; b=lN4zkHqE/3EwgrJD5h7heZN5UIt4VQ1u6k7rL7M2nD7MeOQ/6nM/hLzJy9YbEAblo+ 6TB9zjMzoF+dtwqCTRom0nEouxqgNeL+P3T6LVdi1wfecsFWkxZ/wnAMXUK11XB1z+6K 5KxjVVQ52oqGpIa1SnAU6kBr2KYu1fbdzgTRzG9IizpiavozG5niMkA08D+HZu2a27gl Zj2BVnrBJizR69DS+HqpGg1Q0sznP6g/qEpZqnBZ3RetoBTrAV8G1f8eJr+4LVkI9Gdb +BOXnZuq1H/PeJ4ZarLLdU+Q8cxc925mQY7K7vuTqNUY7Vv0dJFYZwyu+/2/pCwXKTwH 7pWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RzlKE1lmEmo/k0biH7eOIrCi/hE0/6/rGsPN37zmsG0=; b=qV0UoBwFtU/1hrt1QjKZrJaA0TawLo4XRuhkkNW/iSgcIHXFF6d/LyRP/ygxNJQrF3 Jtt9A/8QjZm4ifSTCMiDduaPpB9Ap9LvOQr/HCqhdkI7qp0WUD57j8MQf7KhAQythcsS kKRwocJbPo8McWW4/Sg8X+ucjX3zQ4Z+lGaYT6VU3GX60Z5Xi3c4Q22gSTNPX+e6Zazn bGsspzd6AjWNxzsoAcn50QGOdH0UZ+VCtbWfaUedP3yzdM5Tzbt+9H6WQLZsFX3x/WHl aDw4cFbCccEHwtqUewFVXraeeQzjug+75JTdePHn0pTdQhrRCl45lBLRdX2W3jTa1qra xLDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NurSElMF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020a634953000000b0051fb9c77447si31894440pgk.477.2023.05.03.12.20.17; Wed, 03 May 2023 12:20:31 -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; dkim=pass header.i=@linaro.org header.s=google header.b=NurSElMF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbjECSzT (ORCPT + 99 others); Wed, 3 May 2023 14:55:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjECSzR (ORCPT ); Wed, 3 May 2023 14:55:17 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A8FE91 for ; Wed, 3 May 2023 11:55:16 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f139de8cefso4827498e87.0 for ; Wed, 03 May 2023 11:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683140114; x=1685732114; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=RzlKE1lmEmo/k0biH7eOIrCi/hE0/6/rGsPN37zmsG0=; b=NurSElMFDhqL82wNrV6GXMHEw++bZK414iS+75lKBU2Kpx9gxOF1D0Lfv1PMdclnO0 Nk4F2n8LjCEdcQrOUnuiehyRMm0B+XgX9ScJ266OkUUh5eKZhBblh6zXQpF3HTWffLC7 km/+DLVpnjQ0KyqRjEfjiuosJ9YijmZPU9tFvUj2UZD//d458kvckQif9AKBLCYebyzW l5CHluRz4PITEpAwr5b8p3q7grZ/D3fIKLxE0nonGnD72lovDS/fbN4RWjltMoqGYGWc SlC94wUQmB+7AsigCj9FicV1PvQNdsFvY9rp6Ak5SzGzthNFQhBsbNwyGdJ3qO/Ca14o TQ5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683140114; x=1685732114; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RzlKE1lmEmo/k0biH7eOIrCi/hE0/6/rGsPN37zmsG0=; b=Rr5NxYfcwdh8kQNdKcGlJP+OEZ9QcjroMjHxiQJ9NbwPESTmbScoAJl5hsniBHZeAJ QENbe5Rp9ub3BmIi5l8SIKXWNi+P0ZPzzfC5UUetzpPIIDqLod5zbQ8eY4S9Ikug8VLj huUVJ+E83ksdZIwTLKNC5J4WKZo23bJEXGc0DcYUqxpJGlPV+FeBE9fQp7mNSxdCQSRU tRwzpLJLKmQ58Fqs9erwouvi/egkIaOLbzWrNeClKm8GHLkqKFQfu2NjPvVr24TjHHIM dSOYKn8Cwx0nKCvrCVf5cL0bnr9HaqO4/ijB0j20h13t8DAgT7RugUUBdckuIrG7zVE9 JiIA== X-Gm-Message-State: AC+VfDw7nMttPVkrjKMrySv6lthLnLasEwaq8bY3or92TxD5969g9nIA qQ6k+NMUthUAeHu4Mm0FBDSv4w== X-Received: by 2002:ac2:4907:0:b0:4ed:d5ce:7dea with SMTP id n7-20020ac24907000000b004edd5ce7deamr816556lfi.27.1683140114314; Wed, 03 May 2023 11:55:14 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id m6-20020a056512014600b004efd3c2b746sm5726531lfo.162.2023.05.03.11.55.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 May 2023 11:55:13 -0700 (PDT) Message-ID: Date: Wed, 3 May 2023 21:55:12 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v3 3/7] drm/msm/dpu: add DPU_PINGPONG_DSC bits into PP_BLK and PP_BLK_TE marcos Content-Language: en-GB To: Kuogee Hsieh , dri-devel@lists.freedesktop.org, robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org, dianders@chromium.org, vkoul@kernel.org, daniel@ffwll.ch, airlied@gmail.com, agross@kernel.org, andersson@kernel.org Cc: quic_abhinavk@quicinc.com, quic_sbillaka@quicinc.com, marijn.suijten@somainline.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1683061382-32651-1-git-send-email-quic_khsieh@quicinc.com> <1683061382-32651-4-git-send-email-quic_khsieh@quicinc.com> <4315e96f-ed29-92aa-9549-d6fc9d820de6@linaro.org> <648e7cca-8bb1-73f0-2bbb-0a6b81df3882@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <648e7cca-8bb1-73f0-2bbb-0a6b81df3882@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 03/05/2023 20:45, Kuogee Hsieh wrote: > > On 5/2/2023 3:42 PM, Dmitry Baryshkov wrote: >> On 03/05/2023 00:02, Kuogee Hsieh wrote: >>> At legacy chipsets, it required DPU_PINGPONG_DSC bit be set to indicate >>> pingpong ops functions are required to complete DSC data path setup if >>> this chipset has DSC hardware block presented. This patch add >>> DPU_PINGPONG_DSC bit to both PP_BLK and PP_BLK_TE marcos if it has DSC >>> hardware block presented. >>> >>> Signed-off-by: Kuogee Hsieh >>> --- >>>   .../drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h    | 12 +++++----- >>>   .../gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h |  8 +++---- >>>   .../gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 26 >>> ++++++++++------------ >>>   .../drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h    | 24 >>> ++++++++++---------- >>>   .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 26 >>> ++++++++++------------ >>>   .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h |  4 ++-- >>>   .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h |  2 +- >>>   .../drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h    |  2 +- >>>   drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c     |  8 +++---- >>>   9 files changed, 54 insertions(+), 58 deletions(-) >>> >>> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h >>> b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h >>> index 17f821c..b7cd746 100644 >>> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h >>> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h >>> @@ -112,16 +112,16 @@ static const struct dpu_lm_cfg msm8998_lm[] = { >>>   }; >>>     static const struct dpu_pingpong_cfg msm8998_pp[] = { >>> -    PP_BLK_TE("pingpong_0", PINGPONG_0, 0x70000, 0, sdm845_pp_sblk_te, >>> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >>> +    PP_BLK_TE("pingpong_0", PINGPONG_0, 0x70000, >>> BIT(DPU_PINGPONG_DSC), 0, >>> +            sdm845_pp_sblk_te, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12)), >>> -    PP_BLK_TE("pingpong_1", PINGPONG_1, 0x70800, 0, sdm845_pp_sblk_te, >>> -            DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >>> +    PP_BLK_TE("pingpong_1", PINGPONG_1, 0x70800, >>> BIT(DPU_PINGPONG_DSC), 0, >>> +            sdm845_pp_sblk_te, DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 13)), >>> -    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, 0, sdm845_pp_sblk, >>> +    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, 0, 0, sdm845_pp_sblk, >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 14)), >>> -    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, 0, sdm845_pp_sblk, >>> +    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, 0, 0, sdm845_pp_sblk, >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 15)), >> >> Just to doublecheck: why don't we have DPU_PINGPONG_DSC for PP_3/_4? >> We do have them on sdm845. Is it because we should not use DSC with >> thos PINGPONG blocks? >> > I think it only have two DSPP connect to pp blocks So, can they be connected to PP3/4 or not? >>>   }; >>> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h >>> b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h >>> index ceca741..8888bd9 100644 >>> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h >>> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h >>> @@ -110,16 +110,16 @@ static const struct dpu_lm_cfg sdm845_lm[] = { >>>   }; >>>     static const struct dpu_pingpong_cfg sdm845_pp[] = { >>> -    PP_BLK_TE("pingpong_0", PINGPONG_0, 0x70000, 0, sdm845_pp_sblk_te, >>> +    PP_BLK_TE("pingpong_0", PINGPONG_0, 0x70000, >>> BIT(DPU_PINGPONG_DSC), 0, sdm845_pp_sblk_te, >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8), >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12)), >>> -    PP_BLK_TE("pingpong_1", PINGPONG_1, 0x70800, 0, sdm845_pp_sblk_te, >>> +    PP_BLK_TE("pingpong_1", PINGPONG_1, 0x70800, >>> BIT(DPU_PINGPONG_DSC), 0, sdm845_pp_sblk_te, >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 9), >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 13)), >>> -    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, 0, sdm845_pp_sblk, >>> +    PP_BLK("pingpong_2", PINGPONG_2, 0x71000, BIT(DPU_PINGPONG_DSC), >>> 0, sdm845_pp_sblk, >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 10), >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 14)), >>> -    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, 0, sdm845_pp_sblk, >>> +    PP_BLK("pingpong_3", PINGPONG_3, 0x71800, BIT(DPU_PINGPONG_DSC), >>> 0, sdm845_pp_sblk, >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 11), >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 15)), >>> >> >> [skipped the rest, looks good to me] >> -- With best wishes Dmitry