Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3438DEB64D9 for ; Tue, 4 Jul 2023 16:10:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5888810E2F0; Tue, 4 Jul 2023 16:10:11 +0000 (UTC) Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 38D9010E2E8; Tue, 4 Jul 2023 16:10:09 +0000 (UTC) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 364FqGnh018872; Tue, 4 Jul 2023 16:10:01 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=yBaoyaC2GL1Hy9fdzhgFZnw+Netj542BOqiSv3MZh6o=; b=FE3j7Pm/liyvtIGOs4bTbcKdHGVmpH//Ds7BfiiSrpesZE/B47ev5FPh6SdjNAhiwBek R4aaOl854v4PH+KxTcYhbACmH9eNLQODHeTcG8UAgWi3T3tlc3f753+uHRfRjaHWXsEJ HvICCo5j6mpaWIJLtHLaZZ6Fr3SvQS70AOyw8Qp1fGNeOMdmQ/4Jn+9MC/sZl3Dgwnk2 gXNemWqFBPdZBoze3EwIbP2MddCYaSI+FN7IKBabAB/oSS3WX5nXDhy7HwUpOogwSlyt Q7vo5XnkRpDt4SrJc02BwdpHui4UJLP/E8dMcMHQPb2ZlQyxed954zztJhqiq7OQ5rRs Mw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rm14jjsx2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jul 2023 16:10:01 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 364GA0um005534 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Jul 2023 16:10:00 GMT Received: from [10.110.19.132] (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.1118.7; Tue, 4 Jul 2023 09:09:58 -0700 Message-ID: <99ec07f7-8892-9cfe-e843-c0f2d9eef658@quicinc.com> Date: Tue, 4 Jul 2023 09:09:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v4 04/19] drm/msm/dpu: drop dpu_mdss_cfg::mdp_count field Content-Language: en-US To: Dmitry Baryshkov References: <20230619212519.875673-1-dmitry.baryshkov@linaro.org> <20230619212519.875673-5-dmitry.baryshkov@linaro.org> <0aafbba0-52dd-96d9-94a6-0452996e1eba@quicinc.com> <974a294c-d85d-a79f-5b83-bbbac12ff7a2@linaro.org> <50855184-1fbf-8e36-f0eb-a46be70b1eca@quicinc.com> From: Abhinav Kumar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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-GUID: YnsHerUm5bUbmgjEup8JjM-dHotobpiM X-Proofpoint-ORIG-GUID: YnsHerUm5bUbmgjEup8JjM-dHotobpiM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-04_10,2023-07-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 spamscore=0 mlxscore=0 adultscore=0 mlxlogscore=999 lowpriorityscore=0 bulkscore=0 impostorscore=0 phishscore=0 priorityscore=1501 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307040140 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: freedreno@lists.freedesktop.org, Bjorn Andersson , dri-devel@lists.freedesktop.org, Stephen Boyd , linux-arm-msm@vger.kernel.org, Marijn Suijten , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 7/4/2023 4:52 AM, Dmitry Baryshkov wrote: > On Tue, 4 Jul 2023 at 13:06, Dmitry Baryshkov > wrote: >> >> On Tue, 4 Jul 2023 at 07:04, Abhinav Kumar wrote: >>> >>> >>> >>> On 7/3/2023 7:20 PM, Dmitry Baryshkov wrote: >>>> On 03/07/2023 05:01, Abhinav Kumar wrote: >>>>> >>>>> >>>>> On 6/19/2023 2:25 PM, Dmitry Baryshkov wrote: >>>>>> There is always a single MDP TOP block. Drop the mdp_count field and >>>>>> stop declaring dpu_mdp_cfg instances as arrays. >>>>>> >>>>>> Tested-by: Marijn Suijten >>>>>> Signed-off-by: Dmitry Baryshkov >>>>>> --- >>>>> >>>>> The change drops mdp_count and stops using the array which is fine and >>>>> I will support that. >>>>> >>>>> But looking at the pattern I saw while using core_revision, both >>>>> DPU_MDP_VSYNC_SEL and DPU_MDP_AUDIO_SELECT can also be dropped from >>>>> the catalog in favor of using core_revision. >>>>> >>>>> Hence for that, I request you not to stop passing dpu_mdss_cfg to >>>>> dpu_hw_mdptop_init as that has the necessary information of >>>>> core_revision. >>>> >>>> Sure, I'll restore it. Please note, however, that it might be better to >>>> pass struct dpu_caps instead of the full struct dpu_mdss_cfg. >>>> >>> >>> Thanks for restoring. >>> >>> Can you pls explain this better? dpu_core_rev is part of dpu_mdss_cfg, >>> so dpu_caps wont be enough for this one. >> >> Oh, true. For some reason I thought that version is a part of dpu_caps. > > And after additional thought. Maybe it would be better to add a > separate struct dpu_mdss_version and pass it to the hw block init > functions? > I would like to see this evolve. Today, we are assuming that only the hw block init functions are the places we would use those. From what I recall, the DSC over DP series needed the core_revision in the timing gen code somewhere. If we see that pattern is possible once that lands, why not. Right now, I would leave it at dpu_mdss_cfg. >> >>> >>>>> >>>>>> .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 7 +--- >>>>>> .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 7 +--- >>>>>> .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 1 - >>>>>> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c | 38 +++---------------- >>>>>> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h | 8 ++-- >>>>>> drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 +- >>>>>> 19 files changed, 41 insertions(+), 115 deletions(-) >>>> >> >> >> >> -- >> With best wishes >> Dmitry > > >