Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2876103rwr; Fri, 28 Apr 2023 18:26:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4iBA5QeJQeTNy9miH0vmm0jZZzweRs89fVq8UoP05RSrKGBhVIkr6uDDtS/GOjKXWCW5sJ X-Received: by 2002:a17:902:ea04:b0:1a9:9ace:3e84 with SMTP id s4-20020a170902ea0400b001a99ace3e84mr8608855plg.1.1682731576477; Fri, 28 Apr 2023 18:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682731576; cv=none; d=google.com; s=arc-20160816; b=jCNnnIY9MnNgN4K36NmPgfNLTWWKXXB7UNqxNX5celTL1cSCD71H+A9IDv9nROrwva mtKL0SsUQuWUx7t936NcQSKC4Z4SAZdyRPS3kcFh339Yvy2I6nBrZMv2n8fhC/MKfGas dCh6IA5pnKzLPe6XRHrngWtNP5AGvB/bzLkCPSk+ASgfDv5cnmZDyEWvIBEiXnR/hfvH rEwLG2XWnUKz7Z80SOVc19OP+0A1QGsTmoYlN6Sh+ZG610RgBWg/iMvktN5Gw83Y42/V d4RGi+TCQ7T2uGcvX4lv6s7gZ+Tu5JJqEkXVA39CPbW/kgGWK1YbPWzQUWNBmpaaKuHg 2qkg== 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=/xbb4kSPSrah4RtoqhbsGDqbN7qzihIIgJIzb+rmZ3w=; b=H0/T1jToWh2fH4NeTF3orNZi2XsuE4/yDv1Lv6hoQ0HnK52hfVrCfv1qKyNARW9OPj r1Ji5qXdZ0/iYUAlhQYcCsSByrSpbMRkptrowLHaZo1RY27FlpzZeVLEFzIXBnSMHXrt l2vGKCqx2ZqxDBzaDJslp18IYe2gsHi53vy5XPUsizVI+Pt0hFeGusgTMjCiowkSFOsf NvxutHBYEsHROocNnBm4YWvAqEJGdIF5tPYwoHbjwUlj1V3ikgx1+UuxI65ge8hS67nw dWPr9nn3YIpPTf7QFJb9yXfncakYfVqH3iz56zALIu+mthPBreKN4uwBr1rYkAbgTg0a y/rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=GCqCnkCe; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a170903241100b001a66ed4f67fsi22984346plo.292.2023.04.28.18.26.04; Fri, 28 Apr 2023 18:26:16 -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=@quicinc.com header.s=qcppdkim1 header.b=GCqCnkCe; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347181AbjD2BDe (ORCPT + 99 others); Fri, 28 Apr 2023 21:03:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjD2BDd (ORCPT ); Fri, 28 Apr 2023 21:03:33 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A34AF1BF4; Fri, 28 Apr 2023 18:03:31 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33T0iwX0002831; Sat, 29 Apr 2023 01:03:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=/xbb4kSPSrah4RtoqhbsGDqbN7qzihIIgJIzb+rmZ3w=; b=GCqCnkCeyUrgg34nrjoiYoRsrkxTdaGVoqjahQF1DbvaBBZAtaKQdX8UFMbyuUO5jhWR EHnPhpLvaSoBQjXahqIYbP0PEHCq0e6s7/ikM70XJv9x9neLLuYB6hXWNvqokoAuul7U W52uQb1O6+ji739CFmbr23vG6P3hfpFVzQNeLf4h7KryBuWAQUY9HEJYNHr/jtjmeUNK ciVt6gLtGY4LrKLuK4vh04lUOG21dCwjToaIylFpxThJxfcZhQHmZv1ASpCdfi1rml1Z G6lMDwY5QEdBf5HmdDT+8vO+kjf1twhzyclRcNYUaepGLU9eWe3cUea/Of7fBCud4hkt 0Q== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q8rkwr27f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Apr 2023 01:03:19 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33T13I65000867 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Apr 2023 01:03:18 GMT Received: from [10.110.119.27] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 28 Apr 2023 18:03:17 -0700 Message-ID: Date: Fri, 28 Apr 2023 18:03:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [Freedreno] [PATCH v2 4/7] drm/msm/dpu: add dsc blocks for remaining chipsets in catalog Content-Language: en-US To: Dmitry Baryshkov , Kuogee Hsieh , , , , , , , , , , CC: , , , , 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: Abhinav Kumar In-Reply-To: <1ef1388d-4dc3-273d-3ba6-10614ce6426c@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: gmKG1LMEZXnzL5mKiowkYhtOdEU0BwBc X-Proofpoint-GUID: gmKG1LMEZXnzL5mKiowkYhtOdEU0BwBc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-28_08,2023-04-27_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 adultscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304290007 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,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 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. > >> >> 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), >