Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2418393rdd; Fri, 12 Jan 2024 08:50:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIrKZoT5sg77hYVF+2ITw2DjMA6TMCPKBAl8dBRTkHn63ZZhHTvp9FUc5YF8NtquyXs51H X-Received: by 2002:ac8:578e:0:b0:429:c8f1:3d6b with SMTP id v14-20020ac8578e000000b00429c8f13d6bmr2078565qta.49.1705078224910; Fri, 12 Jan 2024 08:50:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705078224; cv=none; d=google.com; s=arc-20160816; b=fECYIkMqxcT4we/Uf/+k7Hm0QqvGAOxogm6zwbfBdNo944/OLbSjssFKcP3sebQ1cM yzeV/eQVJn+aGTUfcCSpONOA5gkUEd93WJ5sxoTAsYTTKTPReI8s8WjGrpBxoZxr9AUp G62AoZoKtMzRgM4znfIrTAqFu8aNQgoPkpCia3ydFQQxZF3bQMJzcyrpXs90YpPZt+uy M14JUsuzoPriGOwqASCR1DeXr/7TKTd6c58MeP2G7eeyhvw4TdFjV7qMNFvG42CPO0cB FGGImKuZO/ShVhmJImto7oO5jdpPVPsMIqhTQcKHMwe93Qrr482a4uq8Q9GBZkzs/lOG lK4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=b/2y9yIECvOSNSSz+FyrmRK0DqUMRmMUWsXDkrXzitE=; fh=kq5ULbVRvTzPkaIgMh/6iODk5MQkGzg/nfnw+/alUqM=; b=OWerkErTNH5jsPdP9gFqqmcJVmqfGpWavNs34AL+O19n3nolhC7EjtgW9BYd+OWGfq vSJGsif2YbqKUnNkNk5OWUrbHUzE5j6HBs7HPkS/4dwp8nf2a6w8cYhvBbusR+Mkj3dg GusjXHTwX1ND9JhFuIlNAT1gN6vDHfNRUt7cDRBdp8yAm+drKGqGW2ki+hSebzzpkYpJ i62vE+KMSPI2Zf809ZqLkz5gS1QctnKzWyLeh58kfcPLo/BF/5qP0GDoL5z3L+NQM+N/ vzqAhGSzIv1ObYOKaC+3kMNlNlUL60HSWBlCvryKMPRHcMnrsdYoeLu5kXhXuKitF8iY 7sAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jz0yp4T3; spf=pass (google.com: domain of linux-kernel+bounces-24871-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24871-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q20-20020a05622a04d400b00429a53d6f6dsi3281287qtx.308.2024.01.12.08.50.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 08:50:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24871-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jz0yp4T3; spf=pass (google.com: domain of linux-kernel+bounces-24871-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24871-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A6FF81C21BB4 for ; Fri, 12 Jan 2024 16:50:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBC0677649; Fri, 12 Jan 2024 16:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jz0yp4T3" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E17F477634; Fri, 12 Jan 2024 16:50:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29A11C433F1; Fri, 12 Jan 2024 16:50:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705078212; bh=l5fSgj+Gi5ykBYgS5TQAK8IZz/Rm0Gr+bg6Qn7vYmQ8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=jz0yp4T34rc4eH6Dgxm3lyAlylBbl9Lw5WOn+o2+nd7QYglpti6RV7NxLIu4yBnbp bhS6QWEWLIVNZSaKDtMJgoDt+aKLWvoiWguuXSgaGOAEiJazHtkzTY5Y7lHM8976su dPVTpfX9tc4OpgGAqguc4nPzLLi9aKW/rHnIVw+32RGf07XYZQcIoPzfWRMk8vdp33 iPC8TL3xzZx+ypPC/sgn7GyqO+8ULN+TsehIn9cNveHgnBQzk1pucXtFsGR5O8eu7D DMEs5RdBq2k/V0gutS3D9JdUOD7qXlzLCcfiV7AJZO79KzxPmS40TkGCQKooPAW7IU tzTwMBcFpefGw== Date: Fri, 12 Jan 2024 10:50:10 -0600 From: Bjorn Helgaas To: Krishna chaitanya chundru Cc: Bjorn Andersson , Konrad Dybcio , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Rob Herring , Johan Hovold , Brian Masney , Georgi Djakov , linux-arm-msm@vger.kernel.org, vireshk@kernel.org, quic_vbadigan@quicinc.com, quic_skananth@quicinc.com, quic_nitegupt@quicinc.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 6/6] PCI: qcom: Add OPP support to scale performance state of power domain Message-ID: <20240112165010.GA2271863@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240112-opp_support-v6-6-77bbf7d0cc37@quicinc.com> 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? > 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. > 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