Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1534645rdb; Wed, 31 Jan 2024 01:15:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBFaXiKuha+zNLLhp1VE19R6EKzCmJdsZuavTubWEap9o67W244aoxzvf33xcHhX5gSzlL X-Received: by 2002:a17:90a:b288:b0:290:2f5f:4b48 with SMTP id c8-20020a17090ab28800b002902f5f4b48mr4184617pjr.16.1706692558244; Wed, 31 Jan 2024 01:15:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706692558; cv=pass; d=google.com; s=arc-20160816; b=uvsYDvOmyHqe8USATz3Tdli5RU2BZ+3h5vcvZ7DHosPDu2UT+0r2MxBgM4gdFsFcH/ /Gt1QL1ugdG1oyEkay93or8GCw21mSI20jQBG9XlJgB6rkn2mFXhmr1eEQF5I730kfpT lG4sPHuToBwT0FQ9A06B95nVE29B0bh84H4kbHfx7m/8vZFm+5lfhzkwozmGEdracDQT c4MyjKJMqn1Erf6cuTqCIeQjyqMboufsGPlZMkZthZKIKhMsTT9aIKIcPR9+Yy4XAKKZ YHX7J5lNZbgcQmKApeiL0dimqyZYTIrwOhU9cNZGNV7Ry4Yd70HySGJ8u47U99LNgG87 YxOw== 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=7HMURh80B1yXeHVUexLhCcJIUAVhPcbLz4gMaV+3E/o=; fh=xWY6NEQHo3hCxCW3XCPHn3e76EG1HTdnz0oLhICGdC8=; b=h3LPzQ4sWX2u+nYoRJ6mEc2Mn4ZnwRsoRY6s+iMdXAa4qV08Tp9Z4sr9bDQWbNypm3 llimqhkfZn/++/b4rGt3OvpJEbpXsN6pK1p7ftX0wdj9qaXJ3NB7UB+fWUIg/3lFeBgC axeZZ4HkGOcxgbVOKCWGWqMUtDj0iJjoBfwQFRcGczdwlef8Ym7GO5D8hR1X8R7M4LqL zstm7slEacD8iAwK/u7bNxfA7p+6TEiOce94ZJIAAMxi8J8EsiVvDuepBfc9Aup3T+w/ EDZoZHmCtKSLo/0Yi4iUB8qajrW3WRoUi0QPQVBdjMLXw2d1OcM2NYveCgfHwEzErWEb uP5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iqYyOtWz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46057-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXFX0hJB1RDyTAFDiPGKtO7SH8DELKFdkw1E9Tr75o3x9D7kWlWPRNrSTkBQzU5QsHWNIS/d18trUCfnarvknTzUe6RJbNeDxbwDQdIEQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l6-20020a17090a49c600b0028ffc454251si798766pjm.177.2024.01.31.01.15.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:15:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46057-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iqYyOtWz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-46057-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46057-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6732CB2984D for ; Wed, 31 Jan 2024 08:55:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26FCC69D20; Wed, 31 Jan 2024 08:46:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iqYyOtWz" 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 3F388605DD; Wed, 31 Jan 2024 08:46:57 +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=1706690818; cv=none; b=Jpmj7Rs8fzpzve2n2GCw+Ea52tp+bdFTi3lBrrwCu/fWd9a4t6MvmcqIRkilsH2fpmaIYv+hi9cvCG/Am/d5a2fLQtPrihZr3Hu3qn3JBIzqSin3v9gFs0B7+qAveUmk4IuR+GORs3GNHRmr6xyxxGDHSUcwqcDOHhnntxR4UMU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706690818; c=relaxed/simple; bh=4BkvKFgglVdCeGCFuHgP4W0v2mzK44qTzIo31u8u7+c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dEpazUu1yI0zqMeFwphBwb+mNsdxaSphcSEL3JQCNs2lcD6Bx/GMxIh3JPTd6fmwmBlWPfjG8/W5ms3MTQ/zP+/PDZMb3pDBZdd9WTOQ4jXtqmm0tlM2pvHmzrTLQZk/aMYo8GdB3hwXG0Nlx5peLgIOZIY4Tjt/Bw28B9MYEYQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iqYyOtWz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 632E0C433C7; Wed, 31 Jan 2024 08:46:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706690817; bh=4BkvKFgglVdCeGCFuHgP4W0v2mzK44qTzIo31u8u7+c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iqYyOtWzgUP5d3v0ololIBtkDRw9WWO09sd7gzCIIZgBxAVy9xat/jVBxOlXH+Ota YllfHjS+fywz95pELreHMdcRlqvYFz4jsazUgYcpK+JUOomn95jfjK2JzWKm6LhjNF Sw3frW+HAnotWiExQZFAHpvynylQmuOMLTnCWCw/JEPkwWco4Lk/KNihcL57pCHTwi yQv9czAHewVkFrRyByVCT4EgG8MlFLQF8x664CKTKg2PXEClUz0pSurPWpB9YnUqui nPxYK89diN8aDA5sgV5J6Anwow34s92tz/Dz6OAyi0s0exKKSK5qWNNnYx3HU1Fm55 kJu35LRJzFDoQ== Date: Wed, 31 Jan 2024 14:16:45 +0530 From: Manivannan Sadhasivam To: Viresh Kumar Cc: Manivannan Sadhasivam , Krishna chaitanya chundru , Bjorn Andersson , Konrad Dybcio , 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: <20240131084645.GA3481@thinkpad> 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> 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: <20240131052335.6nqpmccgr64voque@vireshk-i7> On Wed, Jan 31, 2024 at 10:53:35AM +0530, 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 Most of the hits are from CPU nodes... For some reasons, peripheral drivers are sticking to hardcoded values. > > > 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 completely agree that hardcoding the bw values is not the right thing, but was worried about the inconsistency. But anyway, I hope either ICC will also move towards DT for bw or we will convert all the drivers to use OPP in the future. Thanks for the discussion so far! It clarified. - Mani -- மணிவண்ணன் சதாசிவம்