Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp418302lqp; Wed, 12 Jun 2024 05:54:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHozsemfxbJwXjMBwRzLyiOhWmEe9TV2edWChIiB6DhpUMghPXtnvxpNHhLbBT972b1l+fSqiwZHX+jYTifys6oXpOM5Z81o/oaNvOhA== X-Google-Smtp-Source: AGHT+IHZdLH2MkpuhdXHTzdkW+EN4nOCjqyy91lRHrDuVHJJtN2O0NLlspu75zWda9I5O6OW4XvC X-Received: by 2002:a17:906:a08:b0:a6e:f763:1c87 with SMTP id a640c23a62f3a-a6f47c9b66bmr115395266b.13.1718196880447; Wed, 12 Jun 2024 05:54:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718196880; cv=pass; d=google.com; s=arc-20160816; b=acHnv2w0CUSifhb05dWLxk5qLF9c9VysFtKa7fDr/qozrTdL0izXt0z3tn0YqNOOyg M2kmBClXi2t/wXzWCKl2AfDHu+FY7t8FXpp30pu7IC1gf1F2/ojTOPvSmbSL7qN5MaSN oK2BLoDliMDA9A3+hBhA3Zea4RrmSoOPgVxLBFVKV94704CXBfrK9qq/vXORabhZ83ER cgnUbUNB1VY6WMK8yBbF1Fwzo/K7JWTievU7c7tZzN6r21b4/SA0BmJtsX/6K8gMBfBx 2TUonw2Vy2nlHT7/Hbgq0HQADAc5BuSzHJ+wOTX0sbFUTRLyvrwmh3aKCmW+SuMwg6L8 SKRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Y6oPSHX8n7gm2h44QOCzx/wY6pNHjLcvz/kNJ7WWxiM=; fh=Hpz6Q0m3+KaMXIKhsF/Dus6NuQXIBMuosCbafF2KMTs=; b=hQqEtm6BdxT3Gg9rELjUNGzINjtiCRA5RBDLo242dw4m6c4RqsgkaPj0E6jAC4tDZN ZKHgetOn4gKAd+ZQ/MggFWZwIrU/dINoU2iR3SQkMhtiu/gr44PYB8mZC/s5YjOclipI AZjlm6ggoKZ23UhqZhORHHVdiFX483h/r7QbC45jsanUgFTdP6euVWj9+nz80AvrSJPe p1AcjVut1b44T8wce/q3h2ddu9QZEahMj8JA+CCorUCKz1UVa6SLeZWvSBuMon4kjnAm 6TSD2ZQcM4jq3wwMhUBfCZ+X5vyQ8H+quXw5ntXWLXIM68v1rQ7Uc7seVg6XGBdKC2OY 5XEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HIpK+x9m; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211520-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f0e858d68si422921266b.235.2024.06.12.05.54.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 05:54:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HIpK+x9m; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211520-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211520-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 9EE271F2446B for ; Wed, 12 Jun 2024 12:53:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83618178398; Wed, 12 Jun 2024 12:52:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HIpK+x9m" 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 8CFC517B50C; Wed, 12 Jun 2024 12:52: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=1718196777; cv=none; b=crkdssjU7t43QVx2/iW66M5MD7zZB5pNOUia2HNHc2Hkc3HSviema7JE+q+fsSzxe+9sqvnQryBoRLpK1b6dE2soImrMYQGs66wN1ShD5w1EuJbtdLmwWPQDWhR/TuxbIbxZ/QxBnxEQuSKOYe1V1NzTpG+chNATZUQaOZxRKm8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718196777; c=relaxed/simple; bh=UJ4JudAfMWR1kYmv/khSHntL+ff+3UTdSYyO7febHfQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MWs7Hjnfic5gMeOQUWNXpkP80ETs4cywj/O8MQuPF4ggLV/BwOinkcspUlE89ARIobHArhuPdmLMxYjRACu215qbg52pbagisKWT2FFD1QO9tbsAg9NVPwq3z6OuTzSX9fHwMxmx23D06LNCYIhdNsN0+8TIaQDRrv60NftoYhU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HIpK+x9m; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBD71C3277B; Wed, 12 Jun 2024 12:52:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718196777; bh=UJ4JudAfMWR1kYmv/khSHntL+ff+3UTdSYyO7febHfQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=HIpK+x9mXFva2OYweYMjCSux8vWn5J5v/aJqWoVm+ATzMjGtGEAYmI+7O5DFPfYfy WBZvR5Uqwl7lrkcGStsaHJWnTxySi5/ae9AJLMgzi7RwzsJ+UY9jmKHZZIh9z81NY0 GQBwRbcepXzHDwqrYwfhr2YE8iC2tjfEI0GAC+4Pke+yIzytho7+riZOUe8dJtecNT lAVf9MN1liynoKwkVBM5jvs6QmMV0AXhCMeqpsa8SyiYPsH26lp6Sqh9xPDkp3bIc/ zkdQduCZp1FVmH7468ScwcdlFBAH8rpTbk8L15UH5kbNmOd6r664VxC2Kexnsia/b4 3r7JPkcyXGrYQ== Message-ID: <8e32a8be-dbbf-49ca-92a1-2fe3c8bfb571@kernel.org> Date: Wed, 12 Jun 2024 15:52:51 +0300 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 v9 6/6] arm64: dts: qcom: ipq9574: Add icc provider ability to gcc To: Varadarajan Narayanan Cc: Konrad Dybcio , Dmitry Baryshkov , andersson@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, quic_anusha@quicinc.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org References: <27f4f3dd-9375-40cf-8c8f-1c4edf66e31b@linaro.org> <1a08ef42-b52f-4c97-90d7-e7fdee7725b4@linaro.org> <176137e5-6312-4d46-97b6-c4494bc1c61b@kernel.org> Content-Language: en-US From: Georgi Djakov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12.06.24 13:28, Varadarajan Narayanan wrote: > On Wed, Jun 12, 2024 at 11:48:17AM +0300, Georgi Djakov wrote: >> On 12.06.24 9:30, Varadarajan Narayanan wrote: >>> On Tue, Jun 11, 2024 at 02:29:48PM +0300, Georgi Djakov wrote: >>>> On 11.06.24 12:42, Varadarajan Narayanan wrote: >>>>> On Thu, Jun 06, 2024 at 04:06:01PM +0200, Konrad Dybcio wrote: >>>>>> On 8.05.2024 10:10 AM, Dmitry Baryshkov wrote: >>>>>>> On Wed, 8 May 2024 at 09:53, Varadarajan Narayanan >>>>>>> wrote: >>>>>>>> >>>>>>>> On Fri, May 03, 2024 at 04:51:04PM +0300, Georgi Djakov wrote: >>>>>>>>> Hi Varada, >>>>>>>>> >>>>>>>>> Thank you for your work on this! >>>>>>>>> >>>>>>>>> On 2.05.24 12:30, Varadarajan Narayanan wrote: >>>>>>>>>> On Tue, Apr 30, 2024 at 12:05:29PM +0200, Konrad Dybcio wrote: >>>>>>>>>>> On 25.04.2024 12:26 PM, Varadarajan Narayanan wrote: >>>>>>>>>>>> On Tue, Apr 23, 2024 at 02:58:41PM +0200, Konrad Dybcio wrote: >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On 4/18/24 11:23, Varadarajan Narayanan wrote: >>>>>>>>>>>>>> IPQ SoCs dont involve RPM in managing NoC related clocks and >>>>>>>>>>>>>> there is no NoC scaling. Linux itself handles these clocks. >>>>>>>>>>>>>> However, these should not be exposed as just clocks and align >>>>>>>>>>>>>> with other Qualcomm SoCs that handle these clocks from a >>>>>>>>>>>>>> interconnect provider. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Hence include icc provider capability to the gcc node so that >>>>>>>>>>>>>> peripherals can use the interconnect facility to enable these >>>>>>>>>>>>>> clocks. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Reviewed-by: Dmitry Baryshkov >>>>>>>>>>>>>> Signed-off-by: Varadarajan Narayanan >>>>>>>>>>>>>> --- >>>>>>>>>>>>> >>>>>>>>>>>>> If this is all you do to enable interconnect (which is not the case, >>>>>>>>>>>>> as this patch only satisfies the bindings checker, the meaningful >>>>>>>>>>>>> change happens in the previous patch) and nothing explodes, this is >>>>>>>>>>>>> an apparent sign of your driver doing nothing. >>>>>>>>>>>> >>>>>>>>>>>> It appears to do nothing because, we are just enabling the clock >>>>>>>>>>>> provider to also act as interconnect provider. Only when the >>>>>>>>>>>> consumers are enabled with interconnect usage, this will create >>>>>>>>>>>> paths and turn on the relevant NOC clocks. >>>>>>>>>>> >>>>>>>>>>> No, with sync_state it actually does "something" (sets the interconnect >>>>>>>>>>> path bandwidths to zero). And *this* patch does nothing functionally, >>>>>>>>>>> it only makes the dt checker happy. >>>>>>>>>> [..] > > nsscc_ipq9574 was not using icc_sync_state. After adding that, I > can see the following messages printed from icc_sync_state. I > also added a print to confirm if 'p->set(n, n);' is called. Ok, that's good! So now when all providers are using sync_state, we can go back to the initial comment from Konrad. I think you should re-check the tests that you did, as the current results just lead to more questions than answers. Maybe it was just the sync-state that was missing, or there is some other issue. BR, Georgi [..] > > The gcc based interconnect paths are referenced by PCIe controller > nodes. Please refer to this patch > > [PATCH V5 4/6] arm64: dts: qcom: ipq9574: Add PCIe PHYs and controller nodes > https://lore.kernel.org/linux-arm-msm/20240512082858.1806694-5-quic_devipriy@quicinc.com/ > > Sorry, did not post the nsscc related patches since this base ICC > patch hasn't reached closure. The nsscc patches are very similar > to this gcc based series. Wanted to gather the issues raised in > this and address them in nsscc so that it is in a more acceptable > shape. > > Thanks > Varada