Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp247153rdb; Mon, 15 Jan 2024 21:08:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJurhpsewbMuv/cTXMurmODbPRSe8wi66t12H+8Y7RKnF5/DWS7lJh7MdE9ts+KIeIlq/L X-Received: by 2002:a05:6a21:a59f:b0:19a:813c:62c4 with SMTP id gd31-20020a056a21a59f00b0019a813c62c4mr3453301pzc.29.1705381727500; Mon, 15 Jan 2024 21:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705381727; cv=none; d=google.com; s=arc-20160816; b=QBk0uzLAQJ1h/+qIRngwWgdvpiy3MNG747wLxBSji+ji7MTWq00j/T1qB/UiUs0QkZ 3yenAjJhIaGCuowR+3w0eTEHXhyIjuk+Gs4d3TmhJyCD3vvpuzwazNhr+SWWgDADq0s8 UW45JnV5iPoeamhKe4pgHnA+QLMgDFnSf27Xkzrk7S7d/y3CvFidGvDhIwwloMRLW8Pj QlhcFYe+CCI08Y4IrJxTdN/hx7AMwPSKKzRyZNSRyopxoVJmU2nSRsPDZyuVMIf5mWv0 hDL4ZAZ1F45Sjduau1uK27SDBjdHGKRgDoQ+bq2ZCv5/NjQTaUTCcRiL68kjCI1Vt09j zQ6A== 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=DssaXwDwKvCdECOwdklNfKbpsuqHcpH1F+oDFVCaXe4=; fh=JFR2Qrc8/IYB12s6yCi50VHQGYFhhgnA2T8lvagV/B0=; b=J+8b/X6IxxmKx4ZVHB5BeierReolnGPSRTM8xe+Pp4r//wtxwGx8RjaPwSs9jWlo3V 33epWLP8Oi/JbcvRz+GlLcPyHo4PeUhBYSEvawA/bQSuEHfzoIbL4Wjh3wYNomwd2OsB S92QDU3yO9Vh5WRerKaURSv2VZ//z3vKooQlqRLm2+enSW/EafpHiL4mep3TZdza7EAY 39uy21rEDU+aAmgWBew5kq7sAf2n6TwhZv0FkRAo+UUPFqvdy+aZvBauAPWWhVwRzChr laLKKwHmgaV3PYUBfbbRFbwqL6pQdLMjGVplBQIlkcwpPUl2Xfiv8bWcrZT17Je9ToYu Vbuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DHmzyzpW; spf=pass (google.com: domain of linux-kernel+bounces-27009-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27009-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. [139.178.88.99]) by mx.google.com with ESMTPS id s4-20020a17090a948400b0028e7e0ea35asi211447pjo.109.2024.01.15.21.08.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 21:08:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27009-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DHmzyzpW; spf=pass (google.com: domain of linux-kernel+bounces-27009-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27009-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 2B85F284ECB for ; Tue, 16 Jan 2024 05:08:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9921F10A0A; Tue, 16 Jan 2024 05:07:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="DHmzyzpW" 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 958F179F5; Tue, 16 Jan 2024 05:07:39 +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 (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40G4drl7031441; Tue, 16 Jan 2024 05:07:29 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=DssaXwDwKvCdECOwdklNfKbpsuqHcpH1F+oDFVCaXe4=; b=DH mzyzpWn/ReQwOuhHfRbUZ+k3JsKyBqpcayFp8jM38yOEnsKvgfu6lXxkrFzAmUVA yFMGt4Q5c5V0mlp1qyMnUH2hdHqotvKNeDPktNC6NfM/vy6vD4HWaBtH3q1JSAhr qTNiKZNy78mLDuNumX1UpfTQMGTLQF9lgRSnML7QhJuGj9is6mdyJ6RI2LEn1oYN k6SfWkaPcjf0ne518zW//TQFRdFdMTuvF8uV4gV8qWeSvfjbzV8BXenTFpRm5cz1 /b7ihr+ys+H8Ep+rnEygV6QuPqGa0ZK8VfIzl+m9e4JuE1R9OS4wY+I/PuJQFW72 /oX0W3X9MjKFx5GcOuYg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vn02ct636-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jan 2024 05:07:29 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40G57JZd022820 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jan 2024 05:07:19 GMT Received: from [10.216.3.129] (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.40; Mon, 15 Jan 2024 21:07:12 -0800 Message-ID: <9127808c-ab0c-83ce-9bc7-27f5daae30d1@quicinc.com> Date: Tue, 16 Jan 2024 10:37:09 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH v6 6/6] PCI: qcom: Add OPP support to scale performance state of power domain Content-Language: en-US To: Bjorn Helgaas CC: Bjorn Andersson , Konrad Dybcio , Bjorn Helgaas , "Lorenzo Pieralisi" , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Rob Herring , Johan Hovold , Brian Masney , Georgi Djakov , , , , , , , , References: <20240112165010.GA2271863@bhelgaas> From: Krishna Chaitanya Chundru In-Reply-To: <20240112165010.GA2271863@bhelgaas> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: sO4Y5leZX9IHp2ObmzYG5Y_aUzuD-6pD X-Proofpoint-GUID: sO4Y5leZX9IHp2ObmzYG5Y_aUzuD-6pD 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_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 spamscore=0 impostorscore=0 phishscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 mlxlogscore=776 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401160037 On 1/12/2024 10:20 PM, Bjorn Helgaas wrote: > On Fri, Jan 12, 2024 at 07:52:05PM +0530, Krishna chaitanya chundru wrote: >> QCOM Resource Power Manager-hardened (RPMh) is a hardware block which >> maintains hardware state of a regulator by performing max aggregation of >> the requests made by all of the processors. >> >> PCIe controller can operate on different RPMh performance state of power >> domain based up on the speed of the link. And this performance state varies >> from target to target. >> >> It is manadate to scale the performance state based up on the PCIe speed >> link operates so that SoC can run under optimum power conditions. >> >> Add Operating Performance Points(OPP) support to vote for RPMh state based >> upon GEN speed link is operating. > > Thanks for this "OPP" expansion! Maybe "GEN" is unnecessary in this > sentence? And below, could be replaced with actual speeds? > ACK >> OPP can handle ICC bw voting also, so move icc bw voting through opp >> framework if opp entries are present. > > s/opp/OPP/ to match > s/icc/ICC/ similarly (and perhaps expand once) > Also below in comments, etc. > ACK. -Krishna Chaitanya. >> In PCIe certain gen speeds like GEN1x2 & GEN2X1 or GEN3x2 & GEN4x1 use >> same icc bw and has frequency, so use frequency based search to reduce >> number of entries in the opp table. >> >> Don't initialize icc if opp is supported. > > Bjorn