Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1105267rdb; Mon, 19 Feb 2024 04:38:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX/ohCJmJFnphJZYXU4CRU5MvME0lU9kJkPKib5mZzmEpozu3g/BRgbgBP8YHb/WskqAIXQBkx/tpEpzYWhH+wZE3hVS7npVrRD8sAIIQ== X-Google-Smtp-Source: AGHT+IHzWIgKQR4tnxf8IdlVH5r/RRVkEDC+RmpLfLgHFlg61Tiu1e7EhuYol7dAEd+xUxMweAAd X-Received: by 2002:a0c:8bd9:0:b0:68f:2edf:e81b with SMTP id a25-20020a0c8bd9000000b0068f2edfe81bmr12573647qvc.10.1708346315876; Mon, 19 Feb 2024 04:38:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708346315; cv=pass; d=google.com; s=arc-20160816; b=dsOAUFMJKTFRltnhOObl3rm0K/Qm6KE17/Cjw94Z8q3IUvXD+G7ONyohcJC4Wxnp2f 25Ry/TdFyC0h8sq88VGwmaqgq29EICtf0UFOTpdbKNEDFGdSHWcLd+cpPlU0ZILwcjbx jXDwHGzqiyR3MinCzMThZq3q3FxJx520MD8UHpjZzhMepf/4VW0PURFMz2EO6rzdDklL HC7+4lJLoQkvMoZ0sQsbYx0E6JZqqzrO5SHOUmaOxhhzIngR3aQ8ZSUxJZT7hfIPPBjb c6i8aHXb8umfD8zVTooNKSCdTt7spfgDuC/398nSjcbTk5QrlbcGL6tsxEzkLq37leaB ufvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FhtMJ0GSWT16/t3LHCU0gMX8qORqpGYxwsf9q05oDdQ=; fh=NSAf6OGHKDb8zgp5YJ0V1eioYE5B4/njMyzyBHoE8g8=; b=LfuJeUdfL/fiELUVStlaUX2ttTDKd9Cn1i0NB/j5LKXj8w1AP3rHkcd4t2GvD8QHw5 4tQjkmriC/XGhQFqKMhSn6ZWssuATITnaPW6O+xvtl4fQ5xJjWYmDXESRi5gQXkd8HET su054TYp6gpMR4H2rxnDGB6vplMg7u1RcY47olw4rKAmqnZB9ZCHL+ffL0Rw08H7mXtB TnQ9wmZUJ3XXj/8JCgrVqvJLVeXMJgb01CU50rs7CbYKLv078fZXQM+EegFRB0prOGYW NT544NLoq7Y91KYWACYJtHjDI/56h/XVoYKch6A+s070gLplhxJMA+x+v5fu1zXHXL/n H+pQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WIJ3kPhZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71330-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 c11-20020ad45aeb000000b0068f1bdbb053si6131448qvh.443.2024.02.19.04.38.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 04:38:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71330-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=WIJ3kPhZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71330-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 A027F1C214CD for ; Mon, 19 Feb 2024 12:38:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FD0D20DC4; Mon, 19 Feb 2024 12:38:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WIJ3kPhZ" 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 4BD962E644; Mon, 19 Feb 2024 12:38:20 +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=1708346301; cv=none; b=cuTq5hpUygisTOXZj21UVh9CTCiwLkpFWyUVusrNg1KQHhZKvLyj5CVTvU/BfF19r6Ji3yG82Bo5RmqMVb5NXG7//nygPYGKEUfm8rhfusj+hkwjQ4ZhlKUlQBhyBkwPPcHRJbDU3mpNIrKCW1bHHnz08E1KRLbBli3WIezq9TU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708346301; c=relaxed/simple; bh=2tY2MZjkFTTdw1DjZNPEnmqZhflzeeQAO/A2N+2m5pY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XP7bE9vhyzu4hA3GZ6feM/mRsBxlgtYtsVl2BmNPycCi+fiKXBf+V3GiZ84p7rKGzI+iLDCqOwFc2JDedDgLzoJN050/yyJtuy1gW392lkCAZvGPEemBs2Z8F3urD369TdlXtLG+6bQJQpM4y84/x+FLxf0TuVJMrRAoL4OrENU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WIJ3kPhZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AF95C433C7; Mon, 19 Feb 2024 12:38:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708346300; bh=2tY2MZjkFTTdw1DjZNPEnmqZhflzeeQAO/A2N+2m5pY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WIJ3kPhZFfFWJQsqCAUgP3SYF7pexh2h3cTq1B1TScLDQJKsHiH3xn5yGNkbByzoz qtuJtysq3MOhCOnD324DOo7J3GCAqLHQ/u2M7oIwzcLsjlzqYQXyN2AKTTJHeKCbhg 3Qh1zuU2nRm2RUL/vYX75FOxgzuKspXx+XZaKAuyq66AM0uDUms1PlNa4Q1qzzR8Pz FsHcyJbyCOY5ZeGjA4qHvnL9jawRW7/ZvImwH8yIL4fRJ0rDHbeQjmmh7Ir7dy9usq Jryb+IFM0fg4qGGgg5wAJ2CjI32jkmf1udSE+bFoNqrPvDGskMXbEspH4/8N6Q8nHw 3rb6vN7chyMCg== Date: Mon, 19 Feb 2024 18:08:08 +0530 From: Manivannan Sadhasivam To: Viresh Kumar Cc: Konrad Dybcio , Manivannan Sadhasivam , Krishna chaitanya chundru , Bjorn Andersson , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 5/6] arm64: dts: qcom: sm8450: Add opp table support to PCIe Message-ID: <20240219123808.GB3281@thinkpad> References: <20240130071449.GG32821@thinkpad> <20240130083619.lqbj47fl7aa5j3k5@vireshk-i7> <20240130094804.GD83288@thinkpad> <20240130095508.zgufudflizrpxqhy@vireshk-i7> <20240130131625.GA2554@thinkpad> <20240131052335.6nqpmccgr64voque@vireshk-i7> <610d5d7c-ec8d-42f1-81a2-1376b8a1a43f@linaro.org> <20240202073334.mkabgezwxn3qe7iy@vireshk-i7> <8a7b63a8-0583-43cf-9876-8a964c8b77ee@linaro.org> <20240219102834.x22ggazkmzppsdxc@vireshk-i7> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240219102834.x22ggazkmzppsdxc@vireshk-i7> On Mon, Feb 19, 2024 at 03:58:34PM +0530, Viresh Kumar wrote: > On 09-02-24, 22:14, Konrad Dybcio wrote: > > On 2.02.2024 08:33, Viresh Kumar wrote: > > > On 01-02-24, 15:45, Konrad Dybcio wrote: > > >> I'm lukewarm on this. > > >> > > >> A *lot* of hardware has more complex requirements than "x MBps at y MHz", > > >> especially when performance counters come into the picture for dynamic > > >> bw management. > > >> > > >> OPP tables can't really handle this properly. > > > > > > There was a similar concern for voltages earlier on and we added the capability > > > of adjusting the voltage for OPPs in the OPP core. Maybe something similar can > > > be done here ? > > > > > I really don't think it's fitting.. At any moment the device may require any > > bandwidth value between 0 and MAX_BW_PER_LINK_GEN * LINK_WIDTH.. > > Okay, I leave it up to you guys to decide on how you want to do it. I still > believe getting the information via DT is the right thing, but maybe I still > don't understand the problem fully. > I argued for a different issue, but what Konrad pointed out is not a valid concern to me. The driver may only require _fixed_ bandwidth between 0 and (MAX_BW_PER_LINK_GEN * LINK_WIDTH) and DT can pass those bandwidth values. Chaitanya pointed out that this may end up with long entries in DT once the PCIe Gen versions start to increase (current Qcom platforms support upto Gen 4 only). But that shouldn't be a real concern if we look at what DT has to provide. - Mani -- மணிவண்ணன் சதாசிவம்