Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1046972rdb; Mon, 19 Feb 2024 02:29:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVSCp2A5aOsLnZiOewHs9+Oh8hgbbCgEpZrOI0B7fRqdrvTruF9ziBT28KKbO1ybkFjc0DrMdT0VfEcht2ldI88/UVy9exnXyVEcWKwBQ== X-Google-Smtp-Source: AGHT+IFQiw8iXDlXwDVuEkli7SHovg0oe3+jbaB5DRHO0MChtIvfZ78ZgxHIs9FmhH2tiuWsZieu X-Received: by 2002:a05:622a:8d:b0:42a:b0b6:73ee with SMTP id o13-20020a05622a008d00b0042ab0b673eemr15675854qtw.19.1708338542430; Mon, 19 Feb 2024 02:29:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708338542; cv=pass; d=google.com; s=arc-20160816; b=JTzrDl5RH/0kQHh/bJexq/8PcsmNMSD+1BtBav48N5Ta+Aak5Njq7Ti23z10EGsuNB Bv8FdHiNJdGptSiY22qJT2SCzGKZ7FkylEBSdvG+GkmSMHlZ084sFhlNy2YewhPDkaTN /1hw1qYxbE6rhY3TtxrvjUMsh5Ob7YJg7cMPCwU0bTax7152AOHSEPwG24/CcSFm/TN6 C7jCuMQ3CEW0gYjJ+f8xJ78E0fU7ofgPzyHJ+AJ5lXmGWSjt6xArGZDhFbaT9csQ/5Cd s7oynszp0uq5+a9OLSvB/5cuA5OIQdMjE0++d+QSOHVeTrS2ZXpE2UEzHY23IuRmWoHH fwBg== 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:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JnmZ+t+uAS5BZCpGcPGtYpaiyhTix1/Al+d1pqweSt0=; fh=vCGjGLgz93jGtmtPzylXBy4HZrTSBE5iD/k1IpTh3rc=; b=jJ9py4Jv1rETNGHeyRBiMt9XERX8ecoFumSA8TImUHmD2GI0PLn73kROwRyoKZViKL GqBl5MkcqjWsdJvhjcnEBQXGe4xk0rIUU/MlyTDrUX2wS8nwk+zNdJS2pcf4wCsOR1Lm 2Ca/ZlJmCXuIr4DZKUL5sbr7vek9WHizjt4nW8A1xPgooZCDugu+PnfL7eNQGMHlUhK4 eorC4ACbA1njbeqFCeiqfjrEf6KrvmomwwDC/YyQhLX4gCcHMhPeLhabahunU6YSSK9E 2RHpo1iFajImDYcCW91+0qToD65eCIU6iuFLXxOkZBU8AD1Bot+YMYwZiNcgUK8enuU6 zudw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tr+cDZEA; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-71127-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e19-20020ac86713000000b0042de3de4c45si5594426qtp.502.2024.02.19.02.29.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 02:29:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71127-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=@linaro.org header.s=google header.b=tr+cDZEA; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-71127-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 336781C21968 for ; Mon, 19 Feb 2024 10:29:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FAC028DAE; Mon, 19 Feb 2024 10:28:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tr+cDZEA" Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 567022C19E for ; Mon, 19 Feb 2024 10:28:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708338519; cv=none; b=dTCFT9oiAjobddYhGXUNKtsmBzgtbHecYSkdg64HUktpp+bknRVqk/G79kt5O0r4eVf3pUQ/jjhPCJRg7xoPQchmYVz3umfmfcM8mKGpp1Vr2D6Y6Xnehm9v4Gy6UJdSJDgU/SCe9ErRia5uTdzABwdAOOHHq/p6HLfMp7TzJ2I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708338519; c=relaxed/simple; bh=XJKGIOWh6TfmBXpxOXAK6XrApZ1idLrRq5SCoYlkEWE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DP9hUdSG3Bsme2FFDtY361p6Uvhfzfvte6qkHZti6N5o8Xiydj2dTA97rm6cl+xTJGvB+S/ZVTQiR4uZ9jz7+SRagAetGkSHOAMufeUdMa0cXfi2M+GtatXG7gDab51lzhG8J+ufVWIRJ3kXTTSzpTPgQ7PXHjmVs1dJ0JhP8Gw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tr+cDZEA; arc=none smtp.client-ip=209.85.161.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-59a87156cb8so1293516eaf.2 for ; Mon, 19 Feb 2024 02:28:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708338517; x=1708943317; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=JnmZ+t+uAS5BZCpGcPGtYpaiyhTix1/Al+d1pqweSt0=; b=tr+cDZEA7QpJNP2hC3y6fo2tVybNtOL31qt5vAjbXMU9XDP+//MEkY6O8BNmMPdBIv YgCbUc7MSQlPlWMPhptanKgy+C6qg0EbNCC/Y/ipA99nTkE4YBPZKNf52UE+7qOniaUj 782L5V0IwytQptRYA/n7MtWi4mdNP4PDp7SxaKSFJ+dIlKDEcJSuzZIhU25H/f5ZfzNd dXppJVtTmxP1tXn3rBEEvDM5+TMcPhWaMix5sQ5bv6KrM3J/YkSBo6fs4EULxOThewmH MMNBJ8r/FC2nm5hJ3OEY44T24o7Lxmj116sZuHPin8BBEUCqeTLOxrzPcQX/qzD+i1et a/+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708338517; x=1708943317; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JnmZ+t+uAS5BZCpGcPGtYpaiyhTix1/Al+d1pqweSt0=; b=ACnhX5tEc6D8qtOkCq0sTrdPyE6wqLyL1IJQmD9a1TzSSNDJdwO41mp4u1hGLQlXZI 1bdCohNqumRAukS/z5ujQi43T+l8y1jLmyFzsD1UE9pgvq05NzvjHsJRweUQkaP/6w2F 5GsrV7dL3EnWUw6xnSaux0teisPueIG9uqFTD2zusdgM+MGQ4zoh/6AqXkQu2bFVr8Q6 byhaYRCoWIMeGSUT3NmfsjXo1nhe30Vbj9jqhT1sStg9Iy6JxvTDcpOeu3QaIdqLZy0x gPJiXSG5l+0JlOPKQI5xDnKgwWVGb2+dVPSK/MnVvtBHBJVlzCUufmzEpDy8+l5wY3Sv 4AjQ== X-Forwarded-Encrypted: i=1; AJvYcCV1DQmiuHBppGIi5Q8McxcRl4+BGVKkLNfInO1dpqulKU3zjE9j8WYqqLnBuzD0Dzk5hYg/ApGI2O6TygY4ZZxTsttKtO78aPIHJ4+K X-Gm-Message-State: AOJu0YyzRCjepWhykSgtpuIAXWhpxcoxKo9nfzRUkEdlSDpC4ogNL5/g 8aUK0tHVs3itBdNOE9pZoCfn7DfpXqCaC6ssEB4bjKeMxZhOJxuNxtQwr8s8/AY= X-Received: by 2002:a05:6358:750c:b0:178:94bc:731e with SMTP id k12-20020a056358750c00b0017894bc731emr17026938rwg.8.1708338517352; Mon, 19 Feb 2024 02:28:37 -0800 (PST) Received: from localhost ([122.172.83.95]) by smtp.gmail.com with ESMTPSA id l15-20020a62be0f000000b006e13ce6f4dcsm4433719pff.87.2024.02.19.02.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 02:28:36 -0800 (PST) Date: Mon, 19 Feb 2024 15:58:34 +0530 From: Viresh Kumar To: Konrad Dybcio Cc: 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: <20240219102834.x22ggazkmzppsdxc@vireshk-i7> References: <20240130061111.eeo2fzaltpbh35sj@vireshk-i7> <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> 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: <8a7b63a8-0583-43cf-9876-8a964c8b77ee@linaro.org> 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. Thanks. -- viresh