Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp420751rdb; Thu, 5 Oct 2023 09:35:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4tn86yVSACogF/bT0TKor4zVwh3SU7LKy1iSUBu9MGAqpeFORrIHbjaQVOBYeg6qDxTdC X-Received: by 2002:a17:90b:3911:b0:268:5431:f2a7 with SMTP id ob17-20020a17090b391100b002685431f2a7mr5884247pjb.28.1696523714457; Thu, 05 Oct 2023 09:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696523714; cv=none; d=google.com; s=arc-20160816; b=Qlqu87JzQb0RHLgA0bCDUsBwQEnkjQP1zXMtfwZEX10phOjvMOn1VyHamuIPFXww0W LHmHYLSPF3EuUxQuSigBIzV3rypUe+YYy32bde8JqQI2wljFD8zTZp+PVaFceOWSBky6 imukERnTFzrC4PvpiteEVIKUIgBl0P6h3PLax4316ZP0qzWTb4Qq5dBxI9x78d31DbUp qwNzxpKuw8vcTyOpsPDjYBjXCntXTZ5JcDijFMJc85Zb3NZz+vWhw7H2gOdD7jmXfIHS ussSgjTO3iSZhMO59lEaqxYclOuUhcPq/y/hp7ccgjDybGxovfs2ByKnQFbV43GUvHZl AMeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gA4E+LhvP+QOudqDT1Vi4Udvi1IE4594Djagbj9I1mE=; fh=F57OVyfS2aXREBLL32eX03lKBMm6BK9qufUbf8E0/Bc=; b=YjNYQVA8NWtzNv2K3UxxmLgyGP73bsK+Q8nc4vfbq8CdGS+w/OsiYzfzgpb0uZWLC6 rZEKvEtAl6gFqq4G+3YFCZkRc2fpjh+PUnHMjLMJFiDLPXNBcXbVgei3Ozhnkr4iCiyh +a54zi0bbeQFf3bnWJcxQ4L/bFcrEeZRe5fGOw3rGdwv8ji0b8Jcq6Sk4NAeAqq6REqV rUVAYZBigazamRyAnW6IZlG/D7bz9yoH0bj5EFtDrn0NlG5KFekcxtZuuV+xtDy5Xu4l d0C7h1xyq96ATV7JqfX1NINUeEyNm7by3OV87vN4JMyoLIgtlZT09E9OHPc9IefkWNeb pyGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lTD6IGZb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ls11-20020a17090b350b00b002746ab58dfcsi2093138pjb.18.2023.10.05.09.35.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:35:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lTD6IGZb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 37C48831EDA1; Thu, 5 Oct 2023 09:35:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236571AbjJEQeQ (ORCPT + 99 others); Thu, 5 Oct 2023 12:34:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233059AbjJEQck (ORCPT ); Thu, 5 Oct 2023 12:32:40 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB93A60B5; Thu, 5 Oct 2023 07:42:24 -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 395DjE7F021621; Thu, 5 Oct 2023 14:42:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=gA4E+LhvP+QOudqDT1Vi4Udvi1IE4594Djagbj9I1mE=; b=lTD6IGZb3zWeeVH33QF8GupBS+4Lg/dsfOdpdAIsKkg34jqIWfZei72FiZEmHEFbR1iI o82CDRBQQAA6EWuQllY578mIK2ATNgWfiVOT5reXR5+YfbAbTPBTG+MhUNImkp/c9yly lBnSIQbn83TrMMHaslmNWCulUlJgnA5G4zt+sim/QPwwdyY+L8BdWlTCrtGNsc9TjSIp JB+q6pftkFphRxm62UY3M51j2GNC5VyQJNJV4eb/JVY5fEpFkoWtOZ3SnTtATt5MnRsY SCdDxu20s5cqJ81h8EycmQ6YbdMVizE0N5rPh03zY0cxs5a6rFgO9tP//RbjxPhqtDlC mQ== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3thg7hsm0p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Oct 2023 14:42:17 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 395EgGNr003904 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 5 Oct 2023 14:42:16 GMT Received: from varda-linux.qualcomm.com (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.36; Thu, 5 Oct 2023 07:42:10 -0700 Date: Thu, 5 Oct 2023 20:12:06 +0530 From: Varadarajan Narayanan To: Dmitry Baryshkov CC: , , , , , , , , , , , , , , , , Subject: Re: [PATCH v1 07/10] arm64: dts: qcom: ipq5332: populate the opp table based on the eFuse Message-ID: <20231005144205.GB29795@varda-linux.qualcomm.com> References: <20231005095744.GA29795@varda-linux.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: UZ043y7PLOrm6BR2rXvCw8tfzxFtUx0U X-Proofpoint-ORIG-GUID: UZ043y7PLOrm6BR2rXvCw8tfzxFtUx0U X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-05_08,2023-10-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 suspectscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310050113 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:35:13 -0700 (PDT) On Thu, Oct 05, 2023 at 02:39:43PM +0300, Dmitry Baryshkov wrote: > On Thu, 5 Oct 2023 at 12:58, Varadarajan Narayanan > wrote: > > > > On Thu, Sep 07, 2023 at 04:59:28PM +0300, Dmitry Baryshkov wrote: > > > On Thu, 7 Sept 2023 at 08:23, Varadarajan Narayanan > > > wrote: > > > > > > > > IPQ53xx have different OPPs available for the CPU based on > > > > SoC variant. This can be determined through use of an eFuse > > > > register present in the silicon. > > > > > > > > Add support to read the eFuse and populate the OPPs based on it. > > > > > > > > Signed-off-by: Kathiravan T > > > > Signed-off-by: Varadarajan Narayanan > > > > --- > > > > arch/arm64/boot/dts/qcom/ipq5332.dtsi | 34 +++++++++++++++++++++++++++++++--- > > > > 1 file changed, 31 insertions(+), 3 deletions(-) > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi > > > > index 82761ae..3ca3f34 100644 > > > > --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi > > > > +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi > > > > @@ -91,11 +91,34 @@ > > > > }; > > > > > > > > cpu_opp_table: opp-table-cpu { > > > > - compatible = "operating-points-v2"; > > > > + compatible = "operating-points-v2-kryo-cpu"; > > > > opp-shared; > > > > + nvmem-cells = <&cpu_speed_bin>; > > > > + nvmem-cell-names = "speed_bin"; > > > > + > > > > + /* > > > > + * Listed all supported CPU frequencies and opp-supported-hw > > > > + * values to select CPU frequencies based on the limits fused. > > > > + * ------------------------------------------------------------ > > > > + * Frequency BIT3 BIT2 BIT1 BIT0 opp-supported-hw > > > > + * 1.0GHz 1.2GHz 1.5GHz No Limit > > > > + * ------------------------------------------------------------ > > > > + * 1100000000 1 1 1 1 0xF > > > > + * 1500000000 0 0 1 1 0x3 > > > > + * ----------------------------------------------------------- > > > > + */ > > > > > > This can probably go to the commit message instead. > > > > Ok > > > > > > + > > > > + opp-1100000000 { > > > > + opp-hz = /bits/ 64 <1100000000>; > > > > > > But your table shows 1.0 GHz and 1.2 GHz instead of 1.1 GHz > > > > Will update it. > > > > > > + opp-microvolt = <850000>; > > > > + opp-supported-hw = <0xF>; > > > > + clock-latency-ns = <200000>; > > > > + }; > > > > > > > > - opp-1488000000 { > > > > - opp-hz = /bits/ 64 <1488000000>; > > > > + opp-1500000000 { > > > > + opp-hz = /bits/ 64 <1500000000>; > > > > > > So, 1.488 GHz or 1.5 GHz? > > > > 1.5 GHz > > > > > > + opp-microvolt = <950000>; > > > > > > Which regulator is controlled by this microvolt? > > > > Based on the SKU, the XBL sets up the regulator to provide 950000uV > > on CPUs capable of running 1.5G and 850000uV on other SKUs. Linux > > doesn't control it. > > Then why do you need this property here in the first place? I get these errors without this property [ 1.018065] cpu cpu0: opp_parse_microvolt: opp-microvolt missing although OPP managing regulators [ 1.018074] cpu cpu0: _of_add_opp_table_v2: Failed to add OPP, -22 Thanks Varada