Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2869117rwr; Fri, 28 Apr 2023 18:14:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7471ZPmj2ZBigE/bduyGCp4NVxIIYlqBCxigYNDxu5tlCJbscySYIycst0SLsWKuUvL38q X-Received: by 2002:a05:6a20:3d85:b0:f6:d60d:dbfc with SMTP id s5-20020a056a203d8500b000f6d60ddbfcmr6110562pzi.5.1682730898547; Fri, 28 Apr 2023 18:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682730898; cv=none; d=google.com; s=arc-20160816; b=lVzjsQ++iViuGrVUVTiBiVgzkRXGIQvaMqL4D/TMsRCnGSllG0Mt4Dl+h4jVIeaerO xlLaUr/og/fvcVxdLpC9h3jW3rOdXdYmYO60+srwIF8rS8C0UypqngI1uOCIhEkhecmk IxUDbTJGqOJ+9g2H3c6PPp4zMPu3qp9pQUt1MEaKsrIoHuFykrAZ2mOWtVW3XGTRLv6X Q+L+xz2oDW5B/bqGVVTZ1wcMAWNYRdE1VP9jJJKq7WZlmEfGhFYUxhMfJukN+hHnMQOY mKP0H8aVxOI+sNABCvF3gMHvvVKRlbHu7bLxqV/PgRh7fKF27aGhmZ9DaGoIW/RPFO5Z VM9A== 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=Hjf7cYIchQZ3mSIrHD7BYWO+Nbd2z209mj286WzO3DI=; b=dUqxyL7eM/dY/uINe3BkmO47EStAs6PYQ+1LNGt0xuGToz8+LR5xks6PaLV6YIDpi+ IY+Oaj8pzSbXcJcHykWTDLUyuYC1p288P1glD47noKnLkgn9aLW2uTQJ3zSdXiUOFlrd TCpz0W4xNkUlfSbIWLa17diOOUIg8pmyVKUMPlCTwTgFbs0maGmQ41tChEaymUg5aA0T s46QlrnltngKgJvHO7xCXpDs2aZrsq7yYJxuz33zB4Zkre4iHw0yld8oQu++ZUi+2sLk 1h2+hEPXNHQCbWJFyFv15M2ZPKmaxdoDhV19BJ9721NhgLK9UqI1RWPbVYOe2CPGaXLN AMKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EoDUs8g8; 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 h1-20020a63c001000000b004c259db61fdsi22948698pgg.561.2023.04.28.18.14.45; Fri, 28 Apr 2023 18:14:58 -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=EoDUs8g8; 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 S1347190AbjD2BEq (ORCPT + 99 others); Fri, 28 Apr 2023 21:04:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjD2BEp (ORCPT ); Fri, 28 Apr 2023 21:04:45 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D88E1BE6 for ; Fri, 28 Apr 2023 18:04:43 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-2f7c281a015so206146f8f.1 for ; Fri, 28 Apr 2023 18:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682730282; x=1685322282; 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=Hjf7cYIchQZ3mSIrHD7BYWO+Nbd2z209mj286WzO3DI=; b=EoDUs8g8T6+yyM27k6+JwT935WG6mEMrSIHN0Dt5NrgeNQZvODs1Grig+KvEXfeyoz kfKfTWy4l4DEATkQAr1hwMi0H/pr4TmQKvAMqOx42g8Og5SAok6kolLj82dOf9SATkAO qSdUk9tUzNj2ReFoXmUOstRzuZEZUmu6imwT4jcfrFoi4v3fMOC+YIhx4s7f//rKhkG4 WWg7Jjq7I7o+zYtzNIJBThwIXFI/q0PF3VgOg1rpUaQZdUrUrAUS3ngzOvblvGfgmCBR v8iCEX9sMn7MdGZidgPG1s3q5xN1N2ELawCD9d3EpdEHDr+23+bkFbJAOpCnVJIqqfG8 FcaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682730282; x=1685322282; 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=Hjf7cYIchQZ3mSIrHD7BYWO+Nbd2z209mj286WzO3DI=; b=jyKMF+9n7RTaZwVtifjxAtzVtyMEfdlPG6rLqydx/lp3LOG8TDo1NWlyjQai7h7nzF JpMXCeRChKwpR7AwvbT8VpKODguQUfCkkbii1XystgecvOpovVh0p0G5lFrAFLVUJ0g0 eLxp+C3Z/wZtXmN+t/itiwcvb4ZnStfVurfweZS5mVILobN7uCutXTXKZlUYJEzL45Ul OJXVUcJvBXK/iyHr8MPDz2FnIDzs1LsmieLwJz+YCZRuLjIe2T6TsRGZ1nJi99vhyGTm 0vQBTgVXO4Ow6jbumn6Zh5gzAe3K+GsyC3eOx0yLVHvUirbD1yTfaVa9VuoI9OR7lXxT /MNg== X-Gm-Message-State: AC+VfDzQXTzjv5p1/SUbpewn5H3HHdB1Jx6W9fvikBKSWPs+KQzw+syD LYv2WQ42Kkh1N/HGk05jS6uhRQ== X-Received: by 2002:adf:ef8f:0:b0:2f8:e190:e719 with SMTP id d15-20020adfef8f000000b002f8e190e719mr5178289wro.65.1682730282039; Fri, 28 Apr 2023 18:04:42 -0700 (PDT) Received: from [10.5.40.109] ([212.140.138.206]) by smtp.gmail.com with ESMTPSA id d9-20020a5d6dc9000000b00304adbeeabbsm5603442wrz.99.2023.04.28.18.04.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Apr 2023 18:04:41 -0700 (PDT) Message-ID: <9da0d71c-209e-f1fd-97c8-ef7b36c7e12b@linaro.org> Date: Sat, 29 Apr 2023 04:04:40 +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: [Freedreno] [PATCH v2 4/7] drm/msm/dpu: add dsc blocks for remaining chipsets in catalog Content-Language: en-GB To: Abhinav Kumar , 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_sbillaka@quicinc.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, marijn.suijten@somainline.org, freedreno@lists.freedesktop.org References: <1682725511-18185-1-git-send-email-quic_khsieh@quicinc.com> <1682725511-18185-5-git-send-email-quic_khsieh@quicinc.com> <1ef1388d-4dc3-273d-3ba6-10614ce6426c@linaro.org> From: Dmitry Baryshkov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 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 29/04/2023 04:03, Abhinav Kumar wrote: > > > On 4/28/2023 5:35 PM, Dmitry Baryshkov wrote: >> On 29/04/2023 02:45, Kuogee Hsieh wrote: >>> From: Abhinav Kumar >>> >>> In preparation of calling ping-pong DSC related functions only >>> for chipsets which have such a design add the dsc blocks for the >>> chipsets for which DSC is present but was not added in the catalog. >> >> Why/how is it prearing us for such calling? >> >> The change itself LGTM. > > The next change adds DPU_PINGPONG_DSC feature flag to chipsets where it > is supported. But when I checked there were many chipsets where DSC is > present but were not added in catalog. > > Without doing that, the next change was originally adding 0 to the > feature flags of those chipsets which didnt seem right to me. > > This seemed like the right way to do it to first add the DSC blocks for > those chipsets and add the feature flag to them in the next change. I'd write something like 'for completeness, add DSC blocks for platforms which missed them'. > >> >>> >>> Signed-off-by: Abhinav Kumar >>> --- >>>   drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h |  7 +++++++ >>>   drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 11 >>> +++++++++++ >>>   2 files changed, 18 insertions(+) >>> >>> 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 2b3ae84..17f821c 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 >>> @@ -126,6 +126,11 @@ static const struct dpu_pingpong_cfg >>> msm8998_pp[] = { >>>               DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 15)), >>>   }; >>> +static const struct dpu_dsc_cfg msm8998_dsc[] = { >>> +    DSC_BLK("dsc_0", DSC_0, 0x80000, 0), >>> +    DSC_BLK("dsc_1", DSC_1, 0x80400, 0), >>> +}; >>> + >>>   static const struct dpu_dspp_cfg msm8998_dspp[] = { >>>       DSPP_BLK("dspp_0", DSPP_0, 0x54000, DSPP_MSM8998_MASK, >>>            &msm8998_dspp_sblk), >>> @@ -191,6 +196,8 @@ const struct dpu_mdss_cfg dpu_msm8998_cfg = { >>>       .dspp = msm8998_dspp, >>>       .pingpong_count = ARRAY_SIZE(msm8998_pp), >>>       .pingpong = msm8998_pp, >>> +    .dsc_count = ARRAY_SIZE(msm8998_dsc), >>> +    .dsc = msm8998_dsc, >>>       .intf_count = ARRAY_SIZE(msm8998_intf), >>>       .intf = msm8998_intf, >>>       .vbif_count = ARRAY_SIZE(msm8998_vbif), >>> diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h >>> b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h >>> index e3bdfe7..5bb9882 100644 >>> --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h >>> +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h >>> @@ -142,6 +142,15 @@ static const struct dpu_merge_3d_cfg >>> sc8180x_merge_3d[] = { >>>       MERGE_3D_BLK("merge_3d_2", MERGE_3D_2, 0x83200), >>>   }; >>> +static const struct dpu_dsc_cfg sc8180x_dsc[] = { >>> +    DSC_BLK("dsc_0", DSC_0, 0x80000, BIT(DPU_DSC_OUTPUT_CTRL)), >>> +    DSC_BLK("dsc_1", DSC_1, 0x80400, BIT(DPU_DSC_OUTPUT_CTRL)), >>> +    DSC_BLK("dsc_2", DSC_2, 0x80800, BIT(DPU_DSC_OUTPUT_CTRL)), >>> +    DSC_BLK("dsc_3", DSC_3, 0x80c00, BIT(DPU_DSC_OUTPUT_CTRL)), >>> +    DSC_BLK("dsc_4", DSC_4, 0x81000, BIT(DPU_DSC_OUTPUT_CTRL)), >>> +    DSC_BLK("dsc_5", DSC_5, 0x81400, BIT(DPU_DSC_OUTPUT_CTRL)), >>> +}; >>> + >>>   static const struct dpu_intf_cfg sc8180x_intf[] = { >>>       INTF_BLK("intf_0", INTF_0, 0x6a000, 0x280, INTF_DP, >>> MSM_DP_CONTROLLER_0, 24, INTF_SC7180_MASK, MDP_SSPP_TOP0_INTR, 24, 25), >>>       INTF_BLK("intf_1", INTF_1, 0x6a800, 0x2bc, INTF_DSI, 0, 24, >>> INTF_SC7180_MASK, MDP_SSPP_TOP0_INTR, 26, 27), >>> @@ -192,6 +201,8 @@ const struct dpu_mdss_cfg dpu_sc8180x_cfg = { >>>       .mixer = sc8180x_lm, >>>       .pingpong_count = ARRAY_SIZE(sc8180x_pp), >>>       .pingpong = sc8180x_pp, >>> +    .dsc_count = ARRAY_SIZE(sc8180x_dsc), >>> +    .dsc = sc8180x_dsc, >>>       .merge_3d_count = ARRAY_SIZE(sc8180x_merge_3d), >>>       .merge_3d = sc8180x_merge_3d, >>>       .intf_count = ARRAY_SIZE(sc8180x_intf), >> -- With best wishes Dmitry