Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp550734lqp; Fri, 5 Apr 2024 01:30:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJ00uPx0mT7GJTr+Gu4RaxRuGwOVMGg7TtUkmRrQd3t7QQjsNnb1BAQbsP+5Ihe9+7nDbdloDMJGHUiMpKF/1Qb33mPZDJJxpeBwqYTA== X-Google-Smtp-Source: AGHT+IEf8OHxi7ls8RsvucWaGUu4Y6/wITMfTVD+kOzNogA2n7DLOrcVE/ZdTA6jY8LZOgPXjggt X-Received: by 2002:a17:906:e285:b0:a51:a09c:16ae with SMTP id gg5-20020a170906e28500b00a51a09c16aemr433923ejb.71.1712305809732; Fri, 05 Apr 2024 01:30:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712305809; cv=pass; d=google.com; s=arc-20160816; b=f44/zMDEnxwnSiLMxzmm/CDGt0mmtKAU3477Zu1MN7Ao3JdjWNwgiMYFRbFhf7in0X ePbRtgkioLp5o29kEg7xAZgufDv0LxjfTO0ba3UorO4YzlZ/xmeKAYsmywcN8YuP+32u h63rfOpqfTEW1ujrAXvEYJGd0A7J1aP9H3QhJTzqgi9mFRIp2S7+LQkffvaaTZZ3gXjl KXMr/aoZoWk0a0FxfbhWjGyekUKN5/1zvHmzsch1rYLejs/CstMbiqnLNFq9FImb62Rn NPWbkz3r1FftQYZ3zoN3GAsWoWsIBxnzGtJMXuGNzOmbP1gNvX+pDgo6kbTB6ygrYN8r XOrw== 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=rR1zqEQ6gV0serK4ZU5Idt7eTSP3O0neSsshusGJNEM=; fh=lL8SXHFesFlcF5lsuchrDZxW5hlfq6apjNTuKxp7y1M=; b=sMgWYVCChD2CMk2xYUATpBNiesCj4IogL2JSg9CwdM5YFj68XFqxyiuwUsSQ86qlu0 5BS18MVZ6TXSsG7MhnuyMU6nvJzHv3ojeXVSFiCZaEDEHEY2BDlffuLbfZBFbHp0/3iX Vku3KroXFcZEE+Wp2lobv939/3cG6/F+dZrTH5hOzyTHaRvhAhKYwKHWiE/EicaS/rlD Cf4EwPz3S1TQ/0taavVlPjHU7oyqGCvxCs686QRf6533M3kk8gtJOdBEWgHK4NCJqJ7S nvRYc7oWHAMe6Lzhftbujnm7Os0iHEjYlmjLqxKeN4OUpokGMOCG+jbLdZYmQXWvdauT Pelg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XtdK2RmT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132653-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132653-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. [147.75.80.249]) by mx.google.com with ESMTPS id um16-20020a170906cf9000b00a5191363319si494627ejb.509.2024.04.05.01.30.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 01:30:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132653-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=@kernel.org header.s=k20201202 header.b=XtdK2RmT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132653-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132653-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 76EF21F22EC9 for ; Fri, 5 Apr 2024 08:30:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3683146A98; Fri, 5 Apr 2024 08:29:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XtdK2RmT" 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 D2A81145B3A; Fri, 5 Apr 2024 08:29:58 +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=1712305798; cv=none; b=NXdiDWFpXKvt98qjeUVoZht/VZWDrnBmJXC1J5dCeTU2GtumbtkC2Cb1fmWoeMiyJHDdRJLaNQsUHBwO3LoruUOdbo/60X4VFN0yo7+MjKky1y175SnC5qAf9k20kO4RrYx7JK1nQYzPOqKPuxuCMyN1fTNRPaIbSD7V1yiBDsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305798; c=relaxed/simple; bh=FoeVOgMwFaoVJU8txrUpqriYLH8fDMf3kDQnY5ZpSRo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MEZfMBEM58+wuyrfOJoa/T6BCGEhHHjoN1nCY0RSLhvDLutKeghieoGPT4b+l2pNWYY3e/otuwX/fevxdWqAFvPjdl+hwekmIrqSqqMtULj4XdqYeREXVD5YMZomC3DYNg+i0aeTSCj7f3Rofw+oGDmWxMQERACs74dB/gBlim8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XtdK2RmT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 012A8C433F1; Fri, 5 Apr 2024 08:29:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712305798; bh=FoeVOgMwFaoVJU8txrUpqriYLH8fDMf3kDQnY5ZpSRo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XtdK2RmTKX9NwDlPKJRn6RvGiZ1ugZMbMyFsjacOnfc1xkvxIM+IDh3VN2V+lU9vp 63FowDkfBUJPv4VU5bdLRNzExflstBbhGVnXcen+/8WQYB31Xb0Kn7TndT68usQnQT Dz0MIDpkA5N0SOibLFuMW20u6KM11yjzmZbAAEmj6zXYcFJvFf6A76hByKQ1UCTs9l pMfJmUqSpK4R4AhkTp5o6YtVyO2a/qEpSyqHXa7tUltEjufO0bJFtDUciLmvmxLNW2 EhsBUUvyfdtpVfWNfW7ZmYHrrtMFNgcwp6bEymLOVAw2/YtHRF9m5NKNfD2S2JsoW7 qlxw4qRKDaZ8g== Date: Fri, 5 Apr 2024 13:59:44 +0530 From: Manivannan Sadhasivam 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, Bryan O'Donoghue Subject: Re: [PATCH v8 3/7] PCI: qcom: Add ICC bandwidth vote for CPU to PCIe path Message-ID: <20240405082944.GE2953@thinkpad> References: <20240302-opp_support-v8-0-158285b86b10@quicinc.com> <20240302-opp_support-v8-3-158285b86b10@quicinc.com> <20240304174111.GB31079@thinkpad> <9d878f69-c9d1-1ee4-f80e-1d8f16c6920e@quicinc.com> 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: <9d878f69-c9d1-1ee4-f80e-1d8f16c6920e@quicinc.com> On Tue, Mar 05, 2024 at 04:23:21PM +0530, Krishna Chaitanya Chundru wrote: > > > On 3/4/2024 11:11 PM, Manivannan Sadhasivam wrote: > > On Sat, Mar 02, 2024 at 09:29:57AM +0530, Krishna chaitanya chundru wrote: > > > To access PCIe registers, PCIe BAR space, config space the CPU-PCIe > > > ICC (interconnect consumers) path should be voted otherwise it may > > > lead to NoC (Network on chip) timeout. We are surviving because of > > > other driver vote for this path. > > > > > > As there is less access on this path compared to PCIe to mem path > > > add minimum vote i.e 1KBps bandwidth always. > > > > Please add the info that 1KBps is what shared by the HW team. > > > Ack to all the comments > > > > > > When suspending, disable this path after register space access > > > is done. > > > > > > Reviewed-by: Bryan O'Donoghue > > > Signed-off-by: Krishna chaitanya chundru > > > --- > > > drivers/pci/controller/dwc/pcie-qcom.c | 38 ++++++++++++++++++++++++++++++++-- > > > 1 file changed, 36 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c > > > index 10f2d0bb86be..a0266bfe71f1 100644 > > > --- a/drivers/pci/controller/dwc/pcie-qcom.c > > > +++ b/drivers/pci/controller/dwc/pcie-qcom.c [...] > > > + ret = icc_disable(pcie->icc_cpu); > > > + if (ret) { > > > + dev_err(dev, "failed to disable icc path of cpu-pcie: %d\n", ret); > > > > "CPU-PCIe" > > > > > + if (pcie->suspended) { > > > + qcom_pcie_host_init(&pcie->pci->pp); > > > > Interesting. So if icc_disable() fails, can the IP continue to function? > > > As the ICC already enable before icc_disable() fails, the IP should work. If icc_disable() fails, then most likely something is wrong with RPMh. How can the IP continue to work in that case? - Mani -- மணிவண்ணன் சதாசிவம்