Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1481069rwd; Thu, 15 Jun 2023 11:04:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4kUzLQHOiCGeXYqMQJfEzJLvtbVFsZ2YKFocVUo/mm7luoLaR/hcx9lrxFfRTpASHrdSIX X-Received: by 2002:a05:6402:7cc:b0:51a:1fbf:ff8f with SMTP id u12-20020a05640207cc00b0051a1fbfff8fmr2852868edy.7.1686852263865; Thu, 15 Jun 2023 11:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686852263; cv=none; d=google.com; s=arc-20160816; b=c3hy7I8tsbTx7Lwx5cYxIWfS1rbof4ziXWvqNCwkUHdj7V3SIY9iZe+GimHJf6EWRq x7dDzvEbxznKmVGvet7ja4PxjMrGmMLXLvZDnZGZUMLDm6hLV0vPhXgY9dF9iroq/PLh hf1qGrJ4+iVLnbobJijmyC2Qdbq/+ynq3PCVwwuXhBjzSiW9MzNMNDOTNXHLbwBF7FNe lxhdAArcA0ntYx1R7HYWDkeVgmnqNPvxnwej6fGkIDZD6pVcXVw79VkeDS3Ezxk5PwaJ QPyF6euIy5UHyuM6X8fP5ahsER8Iz6vZEM+0cpI7nZHGvb17Z/4K0quM+IPvdPwDha5o 9snQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sS/MT18TbbX2jMpeAwwA0bIb+s3HEO/Echw+aOl6/GU=; b=cmZOmO95XvLplykOoZZAa7FZMo9w8I4BUtUyyYIM0evvy1I7mETo0erzRwxBVks2ZI m7DXJzNUCpKa8KVgUHIz8fSfWOu1Tyvrj/BwWP7ubZSmd5flbv+kM8/mHD8VDkzk4Vi5 jv3LjAnZWm6FU2H05kqB0uQ/yh85Mzi9QW0jW9pdDfUFmSMLCuVdVQ6oPZZ3r1m6/5Fs qqmED3WyftKNbO8qgfKPgkwGU/iAa8jK2FDc/eFvYZTDI4T3Dg8y6LfaBeGr7uUDrKxu 2J5jXAWlhjtSpNIWPODYr75htt/Zt5D9D7erIb7Ok10Q9sO9vBCuprr4ZA9TuO2X6p+b cD5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B8mvzhf5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a056402068a00b0051893bfdd10si2137332edy.545.2023.06.15.11.03.58; Thu, 15 Jun 2023 11:04:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B8mvzhf5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbjFORha (ORCPT + 99 others); Thu, 15 Jun 2023 13:37:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238201AbjFORh1 (ORCPT ); Thu, 15 Jun 2023 13:37:27 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50C91271E for ; Thu, 15 Jun 2023 10:37:25 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f764e9295dso3646387e87.0 for ; Thu, 15 Jun 2023 10:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686850643; x=1689442643; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sS/MT18TbbX2jMpeAwwA0bIb+s3HEO/Echw+aOl6/GU=; b=B8mvzhf5WuhVLMVRcYuGUdxnA8Ti5Zs8skswNJ4NaD7+LQGIONc31ByGCSjGiQ9hfE wgjCbIIyb/KExyzgjkkVdiv3XZ3DzGRyTuDIPAGSYJRO7kSgxRzgfdzIx4eMg+FsrBnC pGnT4R4qlqPJ/PYbgHsbquU+PZz7f3te2xiNOlwOzR8mzkbbUaIUkrqdhDl1LsLv+0UC MUlx/7H83JDlPDytp20YRpeFRUs98jRdAK96EU+5HkT5bbodsPT+WbnPK+amgdY/F4JQ AtXT/AsqvkiI9f6KyxEOQJXmzmJFVjGL1JHIiAsTbK8QZPf06/zNcaTRL/jLOwIHhveO sNTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686850643; x=1689442643; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sS/MT18TbbX2jMpeAwwA0bIb+s3HEO/Echw+aOl6/GU=; b=iFPoiHWGctXoy+jGFZ6Wm5kJtD37+aIvE2juey+5VWRV64rfchky1glCv9voZ7StWA Dq4z3CCU03M9oQi3W8snaKpGOUXdU3CmEBIWwDuWkn09pdUUc8Ch7ooOzBj/j1fRDDCH +OT4dCVIrtA8BGtVNizjV6QY6Tgq6LdCgor52zHT5ydL7SlPiC0kSQsWdZIe0G62kXJc ApLGOROCN1yqjq+2DANQzBWYoNXkH+Znc7/oyFHTA2gvpkM2ONHCQeaIxmsS0RGhOwXS O8nFg2BavnoctuE5YRVSH8csztwSAHcIWCwcfPH2AQk//cTHfDNXfBF5+53LjqSP/bx4 QXLA== X-Gm-Message-State: AC+VfDwOKzLihTafZbc/wpnnU83Uw7CHSgFNUYs+sQcgH+QGHEpM/Hsd myW4nSfZ8IEopUoDg8Ml5uKzcg== X-Received: by 2002:ac2:5b1b:0:b0:4f7:69ca:4e71 with SMTP id v27-20020ac25b1b000000b004f769ca4e71mr3957509lfn.34.1686850643464; Thu, 15 Jun 2023 10:37:23 -0700 (PDT) Received: from [192.168.1.101] (abyj190.neoplus.adsl.tpnet.pl. [83.9.29.190]) by smtp.gmail.com with ESMTPSA id c26-20020ac244ba000000b004ec8b638115sm2640405lfm.193.2023.06.15.10.37.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Jun 2023 10:37:23 -0700 (PDT) Message-ID: <278f3baa-a760-18cf-1a43-2814793af987@linaro.org> Date: Thu, 15 Jun 2023 19:37:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v6 00/22] Restructure RPM SMD ICC Content-Language: en-US To: Stephen Boyd , Andy Gross , Bjorn Andersson , Conor Dooley , Evan Green , Georgi Djakov , Krzysztof Kozlowski , Leo Yan , Michael Turquette , Rob Herring Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski , Dmitry Baryshkov , Stephan Gerhold References: <20230526-topic-smd_icc-v6-0-263283111e66@linaro.org> <0764b5fda92acb995ffbd05c4b3d2b2f.sboyd@kernel.org> <8568eead-90f6-ce15-d483-4d72dbab6294@linaro.org> From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.06.2023 19:35, Stephen Boyd wrote: > Quoting Konrad Dybcio (2023-06-15 00:52:07) >> On 15.06.2023 02:49, Stephen Boyd wrote: >>> Quoting Konrad Dybcio (2023-06-14 11:04:19) >>>> This series reshuffles things around, moving the management of SMD RPM >>>> bus clocks to the interconnect framework where they belong. This helps >>>> us solve a couple of issues: >>>> >>>> 1. We can work towards unused clk cleanup of RPMCC without worrying >>>> about it killing some NoC bus, resulting in the SoC dying. >>>> Deasserting actually unused RPM clocks (among other things) will >>>> let us achieve "true SoC-wide power collapse states", also known as >>>> VDD_LOW and VDD_MIN. >>>> >>>> 2. We no longer have to keep tons of quirky bus clock ifs in the icc >>>> driver. You either have a RPM clock and call "rpm set rate" or you >>>> have a single non-RPM clock (like AHB_CLK_SRC) or you don't have any. >>>> >>>> 3. There's less overhead - instead of going through layers and layers of >>>> the CCF, ratesetting comes down to calling max() and sending a single >>>> RPM message. ICC is very very dynamic so that's a big plus. >>>> >>>> The clocks still need to be vaguely described in the clk-smd-rpm driver, >>>> as it gives them an initial kickoff, before actually telling RPM to >>>> enable DVFS scaling. After RPM receives that command, all clocks that >>>> have not been assigned a rate are considered unused and are shut down >>>> in hardware, leading to the same issue as described in point 1. >>> >>> Why can't we move the enable of DVFS scaling call to the interconnect >>> driver as well? We want the clk driver to not reference the interconnect >>> resources at all. >> That would result in no rpmcc ratesetting on platforms without a functional >> interconnect driver. The DVFS call concerns both bus and !bus clocks. >> > > That's the intent. Probe the interconnect driver to get bus clk rate > setting. > > What are the !bus clocks managed by RPM? Depending on the platform, that includes IPA, GPU, OCMEM, RF.. everything that's not been separated out in patch 18. Konrad