Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1232406lqb; Thu, 18 Apr 2024 04:17:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnQbaebQbGJgq5B5dtZIzpyoGmjBIQR/E0ORPZRRwAx8CxudZGO35SyWoskJ3dZ3pzhDvg0MMoVlF+7PDDvdyRJeyhLaveIPVchuBq6A== X-Google-Smtp-Source: AGHT+IFIplfR+9T5RuP2UUHpw//SMjwY03D3kFX6aJeXhAi8+NMGuhfMSLZqmfu6vSt40l+XZ+fL X-Received: by 2002:a05:6a20:1053:b0:1a9:5963:e58b with SMTP id gt19-20020a056a20105300b001a95963e58bmr3197955pzc.35.1713439074482; Thu, 18 Apr 2024 04:17:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713439074; cv=pass; d=google.com; s=arc-20160816; b=o7cxQ/hnzLCf8PB+9xs5v5LH/jIfl+I/3WYVbH2mev8f5mpuv5cvS4FKmXWn6F4IpA HbIPbCeRmFKR+5x44OgN1I4lmRVTp1NRljjDpYbUpzAyURBoPx/nnRnTKuIskRWpFJfY pQt9CGiYhjM61remBBd+kWOHDcAS9dLamhyPfMZLHzeNbtXtVDIynKNkI3DNva4oQP2Y omp6GUbAJjxesTIOnPwOfdEf97eNnu++z/K2Q/EtDdpOe9/l1AjHpu0IQQsuYSjOEBvK 1pMIDZTbtm3/agoaNY9R0AUji9z1pAL+NZ4YJYCM0w1Hd9td0s1X2WX7GMY6tEc65QR8 PjKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=9m6uuRLNE/WkTR41JGciqY2IZosPbNatEn7yCqgC8Mc=; fh=gDLaNGLlojOEEsXrLuLIxIfEhGZKUQ28paV3VjrEvnQ=; b=dqcS+0qHp5latqpvgZi8q+jl+cQofp4PcSBQOjCg5hO24YeaxVc1SEaidHgquYcgYb GNZpxJ/etDrZmlmjMoz2htVmCzGDyq7DmYZOTovmkcDp4p460+/59pnE1R0VUaSpWVN8 2sbFyps7wPMfRRgf9rL6r/6kPyYcesa7u3LBUfrx8+W6gQAXkSF4/7vAtbGd/QlcRPdL K9NhinA919lF5x9V+nyTiDQF2hWFbynsiTAnsK0hfk87LqkKA4VUrn4aUudeCc6tIZa1 R2aYympvfXwrclI1c2ZjcposEehYYYaBQuCJjMKMScLsHjQDcbGRnQRbZXsMR9Lfp5an +LSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=D9EgvZPf; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-149959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e18-20020a62ee12000000b006ede4553cf8si1257790pfi.106.2024.04.18.04.17.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 04:17:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=D9EgvZPf; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-149959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149959-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F08052843A4 for ; Thu, 18 Apr 2024 11:17:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFCC315E5CF; Thu, 18 Apr 2024 11:17:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="D9EgvZPf" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 32B5F127B57; Thu, 18 Apr 2024 11:17:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713439046; cv=none; b=IvncbntXhpPH9X9IK+YMixpbyWJZpom+iw0g/k7dHfM573Fx1ouuKTzaBgmWIiXCL75ZFmQHStk4R2kKiKTm4u6ax3l5DQF5WO3xzXfCynlNeL9S33WnPUnfbLQRd6HAzHptGT0aWECLIcEtXIBhGFt7QUJjyDOCZoII1ugpZKU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713439046; c=relaxed/simple; bh=JlnMP29BA9ckO7o/JfUh/HWvtUqb2lGygKn6TfxaAaQ=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=C2kDSGIiTTnGE5Nwk+4f77TjzfSqo6500SfHRLPGR+l9Qk/fiII79X84wC0sDiWDchsmkSRG76dd+E0xZE8B5HGq6sJ6URvQLTaPxPvk0jSCIuS2Gl5LWJyZMKS1gJSOsu+fSg5EmeALbbQPaAe7EMceKXzd528az09bBzykwF0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=D9EgvZPf; arc=none smtp.client-ip=205.220.168.131 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 (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43I1QpJn019526; Thu, 18 Apr 2024 11:17:21 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=9m6uuRLNE/WkTR41JGciqY2IZosPbNatEn7yCqgC8Mc=; b=D9 EgvZPf9D6LBghPbjKrYenfb60/43H17SiTMy3viksLulLAQrCgS1PF4QTHCIZ8rJ 6nQuV93lc7IIPf20HsIXL5zl/TNBm0LQHLW/kEV6PIIgvLU8aa9ikeiXXcm+KEG4 cxW8VGnaNT6fIoqBHwwPSnlli9uzUcXRZkgr/UJj2/i1tyddIE6mpxKOEy+1hrIj J7y7V1sel1gk7IRPH1YItZHjr6NDo5dU/i4DEsDybqBkATdZtJHAmGn2mRK0auj2 PRjUd7JuatAXFSzeDAUXW7+cjL+mRBu9vZihbXaOoLEVTUuWIjVQelYR38KeD0bb f4VajdrnblQ+tjizL5AA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xjr92hk8x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Apr 2024 11:17:21 +0000 (GMT) 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 43IBHKVd012485 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Apr 2024 11:17:20 GMT Received: from [10.217.216.47] (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.1544.9; Thu, 18 Apr 2024 04:17:14 -0700 Message-ID: Date: Thu, 18 Apr 2024 16:47:01 +0530 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 V2 RESEND 6/6] arm64: dts: qcom: sm8650: Add video and camera clock controllers To: Dmitry Baryshkov CC: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Vladimir Zapolskiy , , , , , Taniya Das , Satya Priya Kakitapalli , Ajit Pandey , Imran Shaik References: <20240321092529.13362-1-quic_jkona@quicinc.com> <20240321092529.13362-7-quic_jkona@quicinc.com> <008d574f-9c9e-48c6-b64e-89fb469cbde4@quicinc.com> <8a5a3cf8-5b4f-487f-ad91-00499509f8ec@quicinc.com> <03f8d2ee-2467-48aa-9b76-06eb13202b8c@quicinc.com> Content-Language: en-US From: Jagadeesh Kona 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 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: 7eZP1_B5DiwfOIFvaRmCvnGQJtAce5FB X-Proofpoint-ORIG-GUID: 7eZP1_B5DiwfOIFvaRmCvnGQJtAce5FB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-18_09,2024-04-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 bulkscore=0 phishscore=0 impostorscore=0 spamscore=0 clxscore=1011 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404180080 On 4/5/2024 1:14 PM, Dmitry Baryshkov wrote: > On Fri, 5 Apr 2024 at 09:01, Jagadeesh Kona wrote: >> >> >> >> On 4/4/2024 9:35 PM, Dmitry Baryshkov wrote: >>> On Thu, 4 Apr 2024 at 13:06, Jagadeesh Kona wrote: >>>> >>>> >>>> >>>> On 4/4/2024 11:00 AM, Dmitry Baryshkov wrote: >>>>> On Thu, 4 Apr 2024 at 08:13, Jagadeesh Kona wrote: >>>>>> >>>>>> >>>>>> >>>>>> On 4/3/2024 9:24 PM, Dmitry Baryshkov wrote: >>>>>>> On Wed, 3 Apr 2024 at 10:16, Jagadeesh Kona wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On 3/25/2024 11:38 AM, Jagadeesh Kona wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> On 3/21/2024 6:43 PM, Dmitry Baryshkov wrote: >>>>>>>>>> On Thu, 21 Mar 2024 at 11:27, Jagadeesh Kona >>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>> Add device nodes for video and camera clock controllers on Qualcomm >>>>>>>>>>> SM8650 platform. >>>>>>>>>>> >>>>>>>>>>> Signed-off-by: Jagadeesh Kona >>>>>>>>>>> --- >>>>>>>>>>> arch/arm64/boot/dts/qcom/sm8650.dtsi | 28 ++++++++++++++++++++++++++++ >>>>>>>>>>> 1 file changed, 28 insertions(+) >>>>>>>>>>> >>>>>>>>>>> diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi >>>>>>>>>>> b/arch/arm64/boot/dts/qcom/sm8650.dtsi >>>>>>>>>>> index 32c0a7b9aded..d862aa6be824 100644 >>>>>>>>>>> --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi >>>>>>>>>>> +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi >>>>>>>>>>> @@ -4,6 +4,8 @@ >>>>>>>>>>> */ >>>>>>>>>>> >>>>>>>>>>> #include >>>>>>>>>>> +#include >>>>>>>>>>> +#include >>>>>>>>>>> #include >>>>>>>>>>> #include >>>>>>>>>>> #include >>>>>>>>>>> @@ -3110,6 +3112,32 @@ opp-202000000 { >>>>>>>>>>> }; >>>>>>>>>>> }; >>>>>>>>>>> >>>>>>>>>>> + videocc: clock-controller@aaf0000 { >>>>>>>>>>> + compatible = "qcom,sm8650-videocc"; >>>>>>>>>>> + reg = <0 0x0aaf0000 0 0x10000>; >>>>>>>>>>> + clocks = <&bi_tcxo_div2>, >>>>>>>>>>> + <&gcc GCC_VIDEO_AHB_CLK>; >>>>>>>>>>> + power-domains = <&rpmhpd RPMHPD_MMCX>; >>>>>>>>>>> + required-opps = <&rpmhpd_opp_low_svs>; >>>>>>>>>> >>>>>>>>>> The required-opps should no longer be necessary. >>>>>>>>>> >>>>>>>>> >>>>>>>>> Sure, will check and remove this if not required. >>>>>>>> >>>>>>>> >>>>>>>> I checked further on this and without required-opps, if there is no vote >>>>>>>> on the power-domain & its peer from any other consumers, when runtime >>>>>>>> get is called on device, it enables the power domain just at the minimum >>>>>>>> non-zero level. But in some cases, the minimum non-zero level of >>>>>>>> power-domain could be just retention and is not sufficient for clock >>>>>>>> controller to operate, hence required-opps property is needed to specify >>>>>>>> the minimum level required on power-domain for this clock controller. >>>>>>> >>>>>>> In which cases? If it ends up with the retention vote, it is a bug >>>>>>> which must be fixed. >>>>>>> >>>>>> >>>>>> The minimum non-zero level(configured from bootloaders) of MMCX is >>>>>> retention on few chipsets but it can vary across the chipsets. Hence to >>>>>> be on safer side from our end, it is good to have required-opps in DT to >>>>>> specify the minimum level required for this clock controller. >>>>> >>>>> We are discussing sm8650, not some abstract chipset. Does it list >>>>> retention or low_svs as a minimal level for MMCX? >>>>> >>>> >>>> Actually, the minimum level for MMCX is external to the clock >>>> controllers. >>> >>> Yes, it comes from cmd-db >>> >>>> But the clock controller requires MMCX to be atleast at >>>> lowsvs for it to be functional. >>> >>> Correct >>> >>>> Hence we need to keep required-opps to >>>> ensure the same without relying on the actual minimum level for MMCX. >>> >>> And this is not correct. There is no need for the DT to be redundant. >>> I plan to send patches removing the existing required-opps when they >>> are not required. >>> In my opinion, it is better not to remove the required-opps for the existing targets atleast since it may lead to some random clock issues if cmd-db minimum level is lower than the HW recommended voltage level clock controller requires. >> I agree this is not required if cmd-db minimum level is already at >> lowsvs. But since MMCX running at lowsvs is a mandatory requirement for >> clock controller to operate, I believe it is good to have required-opps >> to ensure we meet this requirement in all cases, rather than relying on >> the cmd-db minimum level which we have no control over. > > IIf we follow this logic, we should throw cmd-db away and hardcode all > those values in the RPMh drivers. > > We have cmd-db. If it is correct, there is no need to duplicate it. If > it is incorrect, it is a bug that should be fixed or worked around. > Sure will check and remove required-opps property for SM8650. Thanks, Jagadeesh