Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2237186rbb; Tue, 27 Feb 2024 15:46:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXHZzodhdfwWzVP8N4qGASt2jc0fChBZx421hIB7ViUIDxBGBr3zLBAgRsXGq+TfVrCf/RDKDWPLAzgh30Prg5hupQCN02JQT0auEIbHA== X-Google-Smtp-Source: AGHT+IFIkqukmH9DueaUc+ZD6wU+UH/zAbQU3wbPF06g+OJGgw80EQO3idh6xoPyDMtJ/XB9LOsT X-Received: by 2002:aa7:d349:0:b0:565:c34f:df4e with SMTP id m9-20020aa7d349000000b00565c34fdf4emr6417253edr.29.1709077565683; Tue, 27 Feb 2024 15:46:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709077565; cv=pass; d=google.com; s=arc-20160816; b=SFifxF3FN8U4YsFGGWWv94hRayc5lyQBJ+tvLtDotCHMAb0G2UaFf1W5/+IUUBlE8k sqd83mgGCxo5ZUrvoTr4cou/gV44ouPDikN3SrnZMaScg16rBG/gD1ECSAwx67JxWE3E f6AQzMyK/3i0FsRyBmbu7jgfaToivqAAxFCJWg640w45SZ9EgVxEfLGcvW2yJbaVXb+W pK91ydT5dVJE7YTqXtyrHSAYn1d3iv85tDd6iS7U8tojONjFsTpz/o7ok7vqDSwoePqc NpSkK6WlXSm/M+hi77vl9BtARRMO304a/7/TMy2kwJP7pEdVPd81Kfb3Z/9D6QzbQ74O rqNw== ARC-Message-Signature: i=2; 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=cA2tQyDVDCzZPOlJBFvxe9mqD0HFStirqMcIWBNB/gc=; fh=G7FOX+4ISUGxLvJA5diFV7lBbyZ1waIrm2h0N4338ls=; b=yt2u9ZuuBJPd5RSdvlOSptRX6/H+miXhsPHVixhWsXOdvutz6faxqAkHNYmY/FEoQ1 ZUN1eBMd4/5pucMqaPZM9UGdTIwE0C5TC/HV+9FaHaXLk47XFRyWTBKUQaHzc9e2TPvx CX2X+zmC3nT7BXgMmFh/EcNEKgDtF/Aqf/gwv5rFnfJIj2gC98gBB4eCWPdGdUFxUTXg q50kidXHy70ksT96yahmUt/AQd2ylNiDyI8+r4Vom0eBvIXGPXHPaERDptW7Eadkkm7a WGvUNqskDh+Q87cNssD/DAgHCiZOTDLkI4bJrYN7ANqocKU9BYHjK2k7erdKQzGXcSxV jsBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=greyH+L3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-84231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j19-20020aa7c353000000b005642ea0a7besi1123666edr.164.2024.02.27.15.46.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 15:46:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=greyH+L3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-84231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84231-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 71FC51F26FEF for ; Tue, 27 Feb 2024 23:46:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 521D25675D; Tue, 27 Feb 2024 23:45:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="greyH+L3" 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 69EB155E4E; Tue, 27 Feb 2024 23:45:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709077551; cv=none; b=YGSaXvAN3FNRS+m/3TcFC25fOXBddDQ+J0GW0JC6ugd71S5iqPH+Y6OXsKQOwF4TJ8t9IDFxwIS9y/TmKN9P3Zim0zWeECKj0+D593peWh0KYpp0bAMupN30yHVIPnkkER8Ntk7IwBMSn2flNgFu+qIY28WhXR51zYrS/1MDUeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709077551; c=relaxed/simple; bh=O6+UnS3bLsjL5pNyUXDCbAPl4xMpk0nA+TMKK4jaoXQ=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=Y01InDy5bkBZ0YfClsRNYSPcnAVYhRfIcrNfkKxsLnSD8RHaDE8fL3JnV8hxonLOMAu9V1lCR+dAgrNszVJGLVkcQZupDH+BfOPzcTCU/KN4Qnj8ebqmAyV19aow5OGQScr+jU7Np3zDSIHfed+9weTbAS+pWL3ffN4bGDxM5tk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=greyH+L3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A75E3C433F1; Tue, 27 Feb 2024 23:45:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709077550; bh=O6+UnS3bLsjL5pNyUXDCbAPl4xMpk0nA+TMKK4jaoXQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=greyH+L3qEHDnxOvXzxOqlLwjNxO8sz+qQNeGm6LcfgprGm9wR7XlbhZczCNJWH2i sjyLtQlGG3d9pWEd5ZHiqukMZT2y32JxG2RKSmUW0+Bft77noi8CtxlAyCn1VYiZD7 WL00CpH9xvjBX+ZPu9W9m1pTys9fO4Y3Vcapn7Ivy/+awVkYZfJyTFq0OGaD6h8Yhs 4ENeMWu68UJyHqrpbcJTonkzNRy8bhqfsuH1FEzXKJdRfGihX/hTB1E9fbegqx6LQa reiC+2w+oA52agmLwL/bx2bJwK4W1cQ61Mrtw0vM63Pt34Q9l7gjl1Byp+NUei9jlo Fn1EK8wiqxjwA== Date: Tue, 27 Feb 2024 17:45:49 -0600 From: Bjorn Helgaas To: Krishna chaitanya chundru Cc: Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Rob Herring , Johan Hovold , Brian Masney , Georgi Djakov , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, vireshk@kernel.org, quic_vbadigan@quicinc.com, quic_skananth@quicinc.com, quic_nitegupt@quicinc.com, quic_parass@quicinc.com Subject: Re: [PATCH v7 7/7] PCI: qcom: Add OPP support to scale performance state of power domain Message-ID: <20240227234549.GA251722@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: <20240227233636.GA250826@bhelgaas> On Tue, Feb 27, 2024 at 05:36:38PM -0600, Bjorn Helgaas wrote: > On Fri, Feb 23, 2024 at 08:18:04PM +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 clients. > > 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. > > It sounds like it's more power efficient, but not actually > *mandatory*. Maybe something like this? > > The SoC can be more power efficient if we scale the performance > state based on the aggregate PCIe link speed. Actually, maybe it would be better to say "aggregate PCIe link bandwidth", because we use "speed" elsewhere (PCIE_SPEED2MBS_ENC(), etc) to refer specifically to the data rate independent of the width. > > Add Operating Performance Points(OPP) support to vote for RPMh state based > > upon the speed link is operating. > > "... based on the link speed." "... based on the aggregate link bandwidth." > > In PCIe certain speeds like GEN1x2 & GEN2x1 or GEN3x2 & GEN4x1 use > > same bw and frequency and thus the OPP entry, so use frequency based > > search to reduce number of entries in the OPP table. > > GEN1x2, GEN2x1, etc are not "speeds". I would say: > > Different link configurations may share the same aggregate speed, > e.g., a 2.5 GT/s x2 link and a 5.0 GT/s x1 link have the same speed > and share the same OPP entry. Different link configurations may share the same aggregate bandwidth, e.g., a 2.5 GT/s x2 link and a 5.0 GT/s x1 link have the same bandwidth and share the same OPP entry.