Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp217536rdb; Thu, 1 Feb 2024 06:45:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHa0hypzmbZDG3Dhz0JEk1sa0X7DSTLhGLF02OyA4jOJ8L+24yNXh+LH+D/SsOJYHK04R2W X-Received: by 2002:a17:906:af15:b0:a35:9311:6c9b with SMTP id lx21-20020a170906af1500b00a3593116c9bmr1941626ejb.40.1706798737578; Thu, 01 Feb 2024 06:45:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706798737; cv=pass; d=google.com; s=arc-20160816; b=SPSxCDF472UC+Lmd1Wdd4C4UAjrRgwfMuKT2etYb9VCGlA4kT/YIMna2nFXrMDKSXy aEfPircFDJORCozoJ6kHPrCf4MnyJ2YLFBvMjASr/9WKPaUR0jQt2Q76oJ51yPihHbP2 ymyXGoufw0rhpTRX6kQztgdT7acnHFPvG6YoOZp0msa1yU41X6NsFBW84T1UYrGfQxs8 OdmnMsnENLEdrMjxFr2/jResGNWTGjnvnzEauHtXnF9/67ePebjiuFB6ARCKFbHnGDJa SgbcSYuzIBxR7tkAVBV67Rj+f/aqeL7vAthi6AsoJzfQldLfvlqnK9LaB54CkGr4/5qe 8yVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=emBBEOIhMF1O2hGGxGh+HkrTeoWxjLOYDw2I2/VoJkU=; fh=Klle43nD+MWAgo0oWuUnmWKe8Eyz3OrcPFQsD6rqlPc=; b=0KJsmlCTWah3Z62w+HqtFT3mafF2rYSGH98CS/9E2/3ha2PnK0oxddGkjcSXs6ttxz wsYKdDRutE0eHmMHRGd1fHFBV8fnO9onUOAylnuMS6MIzowa0r+cgUyQqKX0U6Smm6nR cm25peP7GBr/sV+iEm1lSGMpth/cHj2E9Jx9pmEXnCaghO4NcK86aEy4cIqRwX/1J6pf P7u+vIPdYiyF/Md9aRUQoE+qonQ01QPKyPHYwui/4sMK0AtwPzLpEuB/5ZBUe1Jt5v93 8IlV+k0sPi8rH/NKLp2TUxiSeKUIa7NcEXbcRpmEO/5w83sRq9ku0XX7L4soegyE7bsf nACw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UEH1QWEi; 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-48331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48331-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCVt85jGioLBST3lr9gKidJCf0HUN+tnZxCFlTsJKU+RNKe04dMT7Z10wtky9/sLPmsXdMvG80kJS9s3zLuBiJzgxSbcoEwc7RAVuOg7qQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k12-20020a1709065fcc00b00a36695e60a0si1952348ejv.640.2024.02.01.06.45.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 06:45:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UEH1QWEi; 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-48331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48331-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 280071F29518 for ; Thu, 1 Feb 2024 14:45:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E96835F48D; Thu, 1 Feb 2024 14:45:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UEH1QWEi" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 2B7485CDEC for ; Thu, 1 Feb 2024 14:45:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706798724; cv=none; b=KNGc9T/njMFKhh2d6xgTIyunEYcrRc7OJAE/8pmV7GG7ne3mkovXr/FUlnvU70HP8mZbrlPIU466UXJ9KC6O7QrcFrE5MiCgyMRIyN4uaRex3OJjmaNb9Xi+HIFRwbSCbtXr1U6EMNoqY3pjvHusBMYFXu8biTEUe2z7hImEB0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706798724; c=relaxed/simple; bh=g28Uh0jEGcZw1jbRzd3E+2nC216DW2FMQTibILMYzNI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZfdQTIijIrhYHsIY2Onf6+Yuc4tk+t9Ji3rTuVX0F0VkQbZjLhQoTcm61ATH8kA4qrUhVNdRZ4oPKrLlutC7abBwnTxN9M5t0usofvo8VMI/apcxTPUCeuAr7wb8dlxZs40Js1KMi63i9vu7CR8D1lD+UbyrV5DuaiYTqoIFL4A= 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=UEH1QWEi; arc=none smtp.client-ip=209.85.208.51 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-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-55fc7f63639so719395a12.1 for ; Thu, 01 Feb 2024 06:45:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706798721; x=1707403521; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=emBBEOIhMF1O2hGGxGh+HkrTeoWxjLOYDw2I2/VoJkU=; b=UEH1QWEiOaTyvl9ngqYMoCBIYNijdWlGw7STHgUI6kVOHP7BKiGPcBUVkoinhRoKeZ lZKVzysnFje27nCQ46l7Tn6/mxzqub3pRYXtjFVPnjo759OgoMC6LY/tm2A3bYhjXRCB /mUrq0eKS534zZBM80RmojkuLgZBRQ4AR7m7dNbO79u0NFWR+dmouYABxvuRy1Y2gdR+ ZEG3OlzJ6HyMzC4flVIPmQ933kxvtyCDoh8D/IpYFOrmCUamEBQniW9V9ML0VCJcqRpQ li0qOG9DI4ZgluVXI9UyKZbAyjlcf84xxA7hQ9DqoETDu2zDbfhbuJr2VJJA75464HB2 mVaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706798721; x=1707403521; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=emBBEOIhMF1O2hGGxGh+HkrTeoWxjLOYDw2I2/VoJkU=; b=JB5J4rtlvFETKD/ceTWpeVZE67YNZZfaWHuvGnFR0MUy0NZvuS6Q0diNITjQvjIVzu t13T5I85C1pezgHR+tOIjY/cHZxcQyVQfy418eKe7QDzX5PiwFr3cmgro7F4k1Tq0u3X 5AN++YCpNTsFqNtsp4mDViP6VkiOzfi58wW2c431FBLDsXkaGbnhz0iBRys6tZGp5gwH McqPRZaNDZynIHyzt0dRkIdihy4IKoYeGO7KCA3p8rogMcCOFHfQYzZOtf/lcTPejOuX vCyj+n8v14goKKHY8m7nZG5gHOqbzpP+3PvX5iGmwU4tDFWwDyHGEv+Jx3KWuPIX1akB 9gdA== X-Gm-Message-State: AOJu0YzqsweSejl3UPbIaXYTEQjzhQLVY0G26vBfemtbukzecFLfOZCw DGn4TpM8HMO/ZPzNFpZtlkb1caKuN6U2YyaMJ+hSlYxfxuc4NBR7UK3m5o40Oh4= X-Received: by 2002:a17:906:8315:b0:a2e:93d6:3680 with SMTP id j21-20020a170906831500b00a2e93d63680mr1934018ejx.43.1706798721404; Thu, 01 Feb 2024 06:45:21 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXeJzG0tsIH89YgeMZULH19Hzp5v5mM27kxBeCtFb4kukzeRP13p874DcpHhU+xT9boslD2j1H/T05C0OTf2OTHaMTqVAoEZHoY3wL583AQrXHPAVYXec/JSo5TPDfEmKpYz3T1p8uTNlXGiwV96g33tMDvyARHkjZL6x5PCkuhEOBL2v0suO5I9P8cvdjzaYGSeNK50eE1Z1HujCbGChDbjSzQm8/kT7KWi5SPzuKRLUeti4F5PzUtGZ4O2yLnhPCLqD4MMHQ1GQk+IPjJuuAkEMXoUcXoVYkbdx7ZUt1gNKOfZw4oichrbTsmcJIa+6sPHRvwsh/DVLH9IrhrnwRPzv7oQWoricpCli5lb3Fx73vdteC+kxTEYGr/rZ8mtQJgAzGv7gIAllu39yGoHGng20i1YL67mcRxn4KtogMb3MDk1Cq/xvLJbqvpRMUBxZvBWSzMn9AU9KUTWLjvgM2TuL8KXIvgzwkIzCl2zEsGSMELLRESpDm2LMgNmg88QaKtonMc5B1sfNztf3LK8WBxJWYMt7LEzejBlhApQtkW2aeORkOZM/FhAM6DFe3fng13c3L94HjZhXjr8O5pvC1OVUL/WKZrNGM8KmvlAtPWXLih4IPY2PZpq0XKZeG/ZzwPc238nPyv/abTQNGoHHvFrmj+lob2A7gm7gfqxmAhk9WJIr1+ Received: from [192.168.159.104] (178235179129.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.129]) by smtp.gmail.com with ESMTPSA id ci11-20020a170906c34b00b00a2f181266f6sm7372628ejb.148.2024.02.01.06.45.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Feb 2024 06:45:20 -0800 (PST) Message-ID: <610d5d7c-ec8d-42f1-81a2-1376b8a1a43f@linaro.org> Date: Thu, 1 Feb 2024 15:45:17 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 5/6] arm64: dts: qcom: sm8450: Add opp table support to PCIe To: Viresh Kumar , Manivannan Sadhasivam Cc: Krishna chaitanya chundru , Bjorn Andersson , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_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 References: <20240112-opp_support-v6-0-77bbf7d0cc37@quicinc.com> <20240112-opp_support-v6-5-77bbf7d0cc37@quicinc.com> <20240129160420.GA27739@thinkpad> <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> Content-Language: en-US From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL4HCEw+HW0DXcKDwARAQABzShLb25yYWQgRHli Y2lvIDxrb25yYWQuZHliY2lv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zZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20240131052335.6nqpmccgr64voque@vireshk-i7> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 31.01.2024 06:23, Viresh Kumar wrote: > On 30-01-24, 18:46, Manivannan Sadhasivam wrote: >> Agree. But what I'm saying is, right now there is no DT property in the >> interconnect consumer nodes to specificy the bw requirements. This is all >> hardcoded in the respective ICC consumer drivers. > > I thought there are a lot of users already in there.. > > $ git grep -i opp.*bps arch/arm64/boot/dts/ | wc -l > 864 > >> But when we use OPP to control bw, the bw requirements come from DT. This is >> what I see as a difference. Because, only nodes making use of OPP will specify >> bw in DT and other nodes making use of just ICC will not. >> >> Maybe I'm worrying too much about these details... But it looks like >> inconsistency to me. > > Right. So is there inconsistency right now ? Yes, there is. > > The important question we need to answer is where do we want to see > all these drivers (specially new ones) in the future. What's the right > thing to do eventually ? Hardcode stuff ? Or Move it to DT ? > > The answer is DT for me, so the code can be generic enough to be > reused. This is just one step in the right direction I guess. > Eventually the drivers must get simplified, which they are I guess. 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. Konrad