Received: by 2002:a05:7412:d002:b0:f9:9049:d2ea with SMTP id bd2csp19657rdb; Wed, 20 Dec 2023 02:42:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFd67psHFRt3RqJyRyE53N4YfjsbzIKv7lAEj6eqiS1/Yw26DY7ey0GcK4/6bc+5dqm27OY X-Received: by 2002:a05:6871:73a0:b0:1fa:ec62:8b07 with SMTP id na32-20020a05687173a000b001faec628b07mr22474360oac.45.1703068942859; Wed, 20 Dec 2023 02:42:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703068942; cv=none; d=google.com; s=arc-20160816; b=riQRn6B4OVypTh29MmX13p9kxKOOsj6UQyPDZC59EdNditLeD5tsIGD25kM05Sm9DU ameYMmnQ+jplvZxYJ7MhyijxnRxmYvsqbrkywEyS/x7XulGENZcvb6OGFIFVJbTKVtRP ZES1pNm9LIWkQAjmWwSgxSIjMoMrN7szw6ooBqcMGZREpMSRm3G6c52jpwBcGpuHaOol LNxxUgDr3zx1udQhZb7PKwtrVjxditBopnR9FKlgyXCWyOBtwnSrFxP51IIac9AQ3H+c VmqBX9hlNuPripoJsar+pUWHSTXZQiI82uJM4gbUGM/Aq1WGKWS/MjN6aC8cyPSCuneu 0s5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=3TcRsy4NqGfXzP1q5FAfs6hVKJ7Pk8aCDgBlm5SOFN0=; fh=wcpUpPOKxYMFBXQ8b/hyJe7J4x2frvemvjBeGbwq/IQ=; b=GAzfBuBjgTtri5yzmBbxfEVpv+sTRB1qdsq1eGsRKSOv46pWblweIB4qxJFpHa7+n5 wt5yUZCZZMWTsZr2WTcYwOsGcIGu4Nwz8jFI1YlqYBj7CUGRTQ6FwP38lIrM/q+9jxMc SQ28YHP7a1/GEH41wGlz+GB1EU0OfTc25rD0+tn03VFEPdalHZ/F+a8gdE5H8ukFz/DC cOgTc5KYFTHo/P88A0a0hoiHEZqkmAY0adz3HdcauDAw3vayzPBWHPBwfPm+06qYjttq QpiniBlDlcg0QZB6qVqpbx7mFrvGUcQzgU8jb42eiMfmtiYa1mdzofu0Pss/efHu9MXY jmvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oFFMmbsV; spf=pass (google.com: domain of linux-kernel+bounces-6750-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d11-20020a656b8b000000b005cdbeb82285si2379804pgw.712.2023.12.20.02.42.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 02:42:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6750-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oFFMmbsV; spf=pass (google.com: domain of linux-kernel+bounces-6750-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0699FB221EF for ; Wed, 20 Dec 2023 10:33:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41DFE20B02; Wed, 20 Dec 2023 10:33:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="oFFMmbsV" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0079820DD0; Wed, 20 Dec 2023 10:33:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BK6F3bp023046; Wed, 20 Dec 2023 10:33:17 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=3TcRsy4NqGfXzP1q5FAfs6hVKJ7Pk8aCDgBlm5SOFN0=; b=oF FMmbsVIDAdfnfODqmviYCMmsR0bew7/jV9XJONgsaF+8is9xx9Zys9J04lUitGwQ G4bNotuS6tTfuI8b4764bv202jWleDkeDsRgWCkQp5rEenPdzYSEJgkr+04BU5xP zt2sxslo1JB9gGSbkCNCyNctbICKhJi8rkR2Ep94gdOl1b/EoYGXjKdyydObnwDe TJBvIAlo1qPPJQ18I16uHCbFI2KMSIFq+Nsm35XfQOb5jGUwJrPHmCmsTCGha9GP jXQiF8uiUapEGp2xBxj5q9zmvSKBqc4UbABo8x4aJ83c3PvWYiUk5TzNKX0nbcVf 9Id+z7ibWs7xNgjpsuAw== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3v3fa3hxc5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Dec 2023 10:33:17 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BKAXGIX018332 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Dec 2023 10:33:16 GMT Received: from [10.239.132.150] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 20 Dec 2023 02:33:10 -0800 Message-ID: <72305a35-02e6-4ff6-8251-01f986530c5d@quicinc.com> Date: Wed, 20 Dec 2023 18:33:07 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/1] arm64: dts: qcom: sm8550: remove address/size-cells from mdss_dsi1 Content-Language: en-US To: Dmitry Baryshkov CC: Krzysztof Kozlowski , Tengfei Fan , , , , , , , , , References: <20231219003106.8663-1-quic_tengfan@quicinc.com> <20231219003106.8663-2-quic_tengfan@quicinc.com> <457e336e-004c-4721-b58d-e9ada16dc04b@linaro.org> <13b61d41-6045-499e-864b-51c6cb6eacf9@linaro.org> <38604415-b410-4995-9c4f-525536435699@quicinc.com> From: "Aiqun Yu (Maria)" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Ja6qaFHA93nNbOB7FlsB2Zj7nwVWszkS X-Proofpoint-ORIG-GUID: Ja6qaFHA93nNbOB7FlsB2Zj7nwVWszkS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 phishscore=0 spamscore=0 suspectscore=0 mlxlogscore=999 impostorscore=0 clxscore=1015 adultscore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312200074 On 12/20/2023 3:06 PM, Dmitry Baryshkov wrote: > On Wed, 20 Dec 2023 at 02:54, Aiqun Yu (Maria) wrote: >> >> >> >> On 12/19/2023 6:21 PM, Dmitry Baryshkov wrote: >>> On Tue, 19 Dec 2023 at 12:09, Aiqun Yu (Maria) wrote: >>>> >>>> >>>> >>>> On 12/19/2023 5:41 PM, Krzysztof Kozlowski wrote: >>>>> On 19/12/2023 10:36, Aiqun Yu (Maria) wrote: >>>>>> >>>>>> >>>>>> On 12/19/2023 3:17 PM, Krzysztof Kozlowski wrote: >>>>>>> On 19/12/2023 01:31, Tengfei Fan wrote: >>>>>>>> The address/size-cells in mdss_dsi1 node have not ranges and child also >>>>>>>> have not reg, then this leads to dtc W=1 warnings: >>>>>>> >>>>>> Comments can be more readable: >>>>>> "mdss_dsi1" node don't have "ranges" or child "reg" property, while it >>>>>> have address/size-cells properties. This caused >>>>>> "avoid_unnecessary_addr_size" warning from dtb check. >>>>>> Remove address/size-cells properties for "mdss_dsi1" node. >>>>>> >>>>>>> I cannot parse it. Address/size cells never have ranges or children. >>>>>>> They cannot have. These are uint32 properties. >>>>>> Pls help to comment on the revised commit message. Every time I write a >>>>>> commit message, also takes a while for me to double confirm whether >>>>>> others can understand me correctly as well. Feel free to let us know if >>>>>> it is not readable to you. It will help us as non-English native developers. >>>>>>> >>>>>>>> >>>>>>>> sm8550.dtsi:2937.27-2992.6: Warning (avoid_unnecessary_addr_size): /soc@0/display-subsystem@ae00000/dsi@ae96000: >>>>>>>> unnecessary #address-cells/#size-cells without "ranges" or child "reg" property >>>>>>>> >>>>>>>> >>>>>>>> Reviewed-by: Dmitry Baryshkov >>>>>>>> Signed-off-by: Tengfei Fan >>>>>>>> --- >>>>>>> >>>>>>> I disagreed with the patch before. You resubmit it without really >>>>>>> addressing my concerns. >>>>>>> >>>>>>> I am not sure if this is correct fix and I want to fix all of such >>>>>>> errors (there are multiple of them) in the same way. Feel free to >>>>>>> propose common solution based on arguments. >>>>>> Per my understanding, "qcom,mdss-dsi-ctrl" driver node like "mdss_dsi1" >>>>>> don't need to have address/size-cells properties. >>>>> >>>>> Just because dtc says so? And what about bindings? >>>> I don't find any reason why "qcom,mdss-dsi-ctrl" driver node need to >>>> have address/size-cells properties. Document Bindings should also be fixed. >>>>> >>>>>> Feel free to let us know whether there is different idea of >>>>>> "address/size-cells" needed for the "qcom,mdss-dsi-ctrl" driver node. >>>>> >>>>> The bindings expressed that idea. If the binding is incorrect, fix the >>>>> binding and the DTS. If the binding is correct, provide rationale why it >>>>> somehow does not apply here etc. >>>> Our plan is to fix the bindings as well. >>>> >>>> In case you have missed the question, I just re-place it here: >>>> While there are about 22 different soc dtsi and it's document binding >>>> files needed to be fixed. Shall we fix it for all qcom related soc usage >>>> in one patch, or we'd better to split into different patches according >>>> to soc specifically? >>> >>> Don't touch the bindings unless you understand what you are doing. >>> Your patch will be NAKed. There can be a DSI panel attached to the DSI >>> host, which means there is a need for #address-cells / #size-cells. >>> >> Could you please help to elaborate more on details? Like what's the >> right example here for the "qcom,mdss-dsi-ctrl" driver node needed to >> have "#address-cells"/"#size-cells". > > As I wrote, the attached DSI panels make use of #address-cells / #size-cells. > > Please take a look at the sdm845-mtp.dts, which provides a complex > enough example (a panel which is attached to both DSI0 and DSI1 > hosts). I can see the panel example now. While panel@0 likely node is not at in the binding that I've checked. There are quite a few of binding document about the same driver. I checked 5 of the bindings document and moste of them are alike, and don't have the panel example.:( > >> Thx to chime in that we have put a good amount of time here. > > Can't quite catch you here. > >>> Please stop wasting the time on dtc warning. The bindings (and the >>> file) are correct. >> I don't agree here. >> Either it is a wrong usage of "#address-cells"/"#size-cells", or dtc >> warning should be fixed with this usage take into account. >> "dtb check" will be a good guideline for developers to follow, I don't >> think it is wasting time here. > > It is a guideline, but not a rule. No warnings by default is more of > the rule. W=1 enables warnings that developers have to classify and > cope with. > > E.g. I don't think dtc correctly handles the case when there are both > with-address and no-address nodes (e.g. 'panel@0' and 'ports'). Note, > I might be mistaken there. Now I understand the issue, here is some thinking from my end, and welcome others to chime in with more ideas: 1. Only put "#address-cells" "#size-cells" right before node of panel@0. 2. Align current binding document with "panel@0" examples. 3. Too many bindings files for driver "qcom,mdss-dsi-ctrl", shall we align them into 1 binding files. 4. enhance the dtc warning check if we still want to have "#address-cells" "#size-cells" even if there is no "panel@0" attached. @krzy here I try to answer your comments here as well. I am disagree on leave the warning as it is. And want to do something to improve this. Ideas above. Let me know if any comments is not right addressed from your comments. > >>> >> >> -- >> Thx and BRs, >> Aiqun(Maria) Yu > > > -- Thx and BRs, Aiqun(Maria) Yu