Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1455162rwd; Thu, 15 Jun 2023 10:43:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7RkHOyC/ekIqhoZWPQJ/h+bxDJmGiVngvm0+Gy42bmdKWqSrYDjzAmAHuvA2FCy4EsW/Fp X-Received: by 2002:a17:902:e812:b0:1b0:4a63:3099 with SMTP id u18-20020a170902e81200b001b04a633099mr17670905plg.50.1686851002642; Thu, 15 Jun 2023 10:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686851002; cv=none; d=google.com; s=arc-20160816; b=fNRPJjep7AKyP6NQtqh8ZRppTn0kjtXsVeO04yfSnu6B4gl1Iv72DZen9sPMNsm34b qKkCWO4g0pJyvUCNIX7WGp30Fh+MRS3GDWBk0iJS6h5RGYCa2GotACepWlFUpCjvYApf /mGopAQTKYQtTfCNZ69aDmQuViIX+23jwEUHQDWLPcPYA4qpkm/Qkkyki9bl30lpVTbg PaMbMqPae0gV1XGjiBr9B9XEIn4Am4+TseL5bI7+hbnVoiJsopJxCl69zvNdvQMBzam+ yWUcXKOS388pMCmxUcU6p6Suw5qdK+QR1OT7g+JwE3CQ1YeFk7I4MMTbKSBkzBVtATiD s0Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=eytVQozSp5fHlb2lwlxS5ELbxStscUfBgPeyJcDtnm4=; b=cixbRWiPlE3kytTv7nRH0MQqgRuzhjLB6Icdkftu5Q+TUh/+42LG3EUwNefzmLzMcK dgxRWDOgJKU0erDQK0+4oV3p2D2LFXVWIdxQxUoQ35eSoPKQjAilVPVfC8AqGWC5KJSn BLOXYhn7hGf24NKQqZL1bn46VL0FrLNQ0YaxRb7DPuFWRLIxpGE0phT6vLqHkDfQ5mTy yFamMAGawdKVeeUt3uOuyOZdiNuA0LH6lFGV+dX0CEARZq0seGMYpvj1i06nV11r3fZM yo/o8+3SbYFs4ogORlOBUVRCS4h9egwWwsCV6174h+JDvjkNvi3Y+xJdImpKePRgZsTA AKkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lz+GZOxN; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u16-20020a17090341d000b001b176ba9f1asi13976419ple.551.2023.06.15.10.43.09; Thu, 15 Jun 2023 10:43:22 -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=@kernel.org header.s=k20201202 header.b=Lz+GZOxN; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237826AbjFORfS (ORCPT + 99 others); Thu, 15 Jun 2023 13:35:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230392AbjFORfR (ORCPT ); Thu, 15 Jun 2023 13:35:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57F1E1FDD; Thu, 15 Jun 2023 10:35:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E037E63974; Thu, 15 Jun 2023 17:35:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F052C433C8; Thu, 15 Jun 2023 17:35:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686850515; bh=MRH2gBGbTm6Nfz0Le3aIme9e/tvq/PhgScHQ4D5E9Z0=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Lz+GZOxNuTy/88ASn7yaHQLEjS8IJ8PcCqlKzfQV4y67dWEiq2AbdK2aeuVYURTj7 xQmwR0hGKKuTAtjCcbmSQ5C3yjS7Qw8uV7cA1meILJ45yl8TnB4PYghKuuf24p5FNM ex7DTia6S85aEtAOWFqixnYSdG6YuoEySjWN4q1NzGACwP5s2ssAL/AnJF8R+23Clm rpdgJWhq7sqrynlaFkIQCh31olY2CYTAvNnFE7IFlSCw3XVonbTnKfNfRyjsv22thD Yu2AQDJffYWyRkT6nUbZokdMFG/gN5LYgVTnmOB3DYj+ZDi/dsbgVp6WpNaEmqYdTO 5SKSVaGapc0lA== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <8568eead-90f6-ce15-d483-4d72dbab6294@linaro.org> References: <20230526-topic-smd_icc-v6-0-263283111e66@linaro.org> <0764b5fda92acb995ffbd05c4b3d2b2f.sboyd@kernel.org> <8568eead-90f6-ce15-d483-4d72dbab6294@linaro.org> Subject: Re: [PATCH v6 00/22] Restructure RPM SMD ICC From: Stephen Boyd 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 To: Andy Gross , Bjorn Andersson , Conor Dooley , Evan Green , Georgi Djakov , Konrad Dybcio , Krzysztof Kozlowski , Leo Yan , Michael Turquette , Rob Herring Date: Thu, 15 Jun 2023 10:35:12 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 an= y. > >> > >> 3. There's less overhead - instead of going through layers and layers = of > >> the CCF, ratesetting comes down to calling max() and sending a sing= le > >> 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 drive= r, > >> 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. > >=20 > > 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 function= al > interconnect driver. The DVFS call concerns both bus and !bus clocks. >=20 That's the intent. Probe the interconnect driver to get bus clk rate setting. What are the !bus clocks managed by RPM?