Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6372310rwn; Tue, 13 Sep 2022 03:22:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR6lNW9+l1pPvPyn1dkQ2tgi03ChhdaY2erB2S2RcbpbPVozOTRIHu0noAAgv6WiT5bi/DyP X-Received: by 2002:a17:90b:4b0f:b0:202:b64f:ac10 with SMTP id lx15-20020a17090b4b0f00b00202b64fac10mr3174044pjb.145.1663064540155; Tue, 13 Sep 2022 03:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663064540; cv=none; d=google.com; s=arc-20160816; b=hqFuG2+HA5AQTkzRwxU6CeAFT90Pc9P0QJ+278+zW0BI5xwC8eLplBT6mT4oMF/aKU xSynTkc6C4h/VGWmz19WdgmqIWln+q+4ylCpOrNUEWcOl11OAwL0Hf8JZmQCm183jme6 Tf6uINyR20hpcSIlFioMR0zwGf1FOzmojqJ+P7SA3uGqqpY/otEo7y7nvgaaRGYWpxj2 zRyfmH0je4P0umdRzYMSLFjW9Y/GCI51qhmmbTodkaFAlH/ga8vM4PbzlwfgLGAcsykn QxiNWF9YyXx0LayFHaWd7iNLhSr03mkCaYO0jD9Bf3mDfGuKIFk6KII0gXGS7OdiC5xF qpKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=CesIsMeSAuN11uLEEcY6nzqg44xgClKzHEqFMlpVQZ8=; b=0UpKPblNiTWO+y+ZvDAcbJaLgZ6imB3Ob2XPC9rSr573sB2CeXcHhLGXpEHn5/1uNQ 3NhvhT4A5n4UNI0sP9mIrVGUbe2LjNjxfM1o7B0PX5FSWkqhyLmr1KG7/o0hzyROifXL 02JYVYTYnDbZNKi7QwqULd6h2gHzwZD1rH0nOVEEa8pAVvXWC3oZwoL/qkeP+0XhXkF2 2ux1fF+Qq+ApyzPV4JStaIdEj+0pUZLkKzeshf+M1IzDZm72cVrrvWdKkymh5s7kQafZ Zjw1v6B0qkiecPmRsAobAjiB7onBzYurOBd1+bGxD64BdUOoPxw6bOdHpx/Z7QzCYxPD dNbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b="lOF/crQ9"; dkim=pass header.i=@tq-group.com header.s=key1 header.b="ZPcis/4K"; 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=tq-group.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a63544b000000b00434c05007d5si11703769pgm.845.2022.09.13.03.22.07; Tue, 13 Sep 2022 03:22:19 -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=@tq-group.com header.s=key1 header.b="lOF/crQ9"; dkim=pass header.i=@tq-group.com header.s=key1 header.b="ZPcis/4K"; 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=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbiIMKD0 (ORCPT + 99 others); Tue, 13 Sep 2022 06:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbiIMKDQ (ORCPT ); Tue, 13 Sep 2022 06:03:16 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D4005B7A0; Tue, 13 Sep 2022 03:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1663063393; x=1694599393; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CesIsMeSAuN11uLEEcY6nzqg44xgClKzHEqFMlpVQZ8=; b=lOF/crQ9hXjkgs8LXshm1r0gRQKPzpCKWoQcN523dW8yDEgnVAokIPEj 9H4OfVNqNuU5cRfuB8JyuqCLBPmFM1RXAu7ymUUtsPnzdo3lTHnf63TUL VohfT0I6+GoRgZ+HIU9T18RmOg9muV65R666jRJQS7jtcB+IXcw7uuQ1g ZUAda/qX6IqTWLBQY6aJV8yVVa3lIVZDAMmclQjw/JDXLz1QJTToHG4Ib tjlr3iHJZx5mJOXRsNNLGaIOMGCQol94dZCiptbqqrLmzD4pqt9bQTn4B zvsQ2iVBk3lj2bzLmI5ZRuxGFS0gU+UeHHeY5s8Z4t4HLvC89fGFfziEK w==; X-IronPort-AV: E=Sophos;i="5.93,312,1654552800"; d="scan'208";a="26145945" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 13 Sep 2022 12:03:10 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 13 Sep 2022 12:03:10 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 13 Sep 2022 12:03:10 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1663063390; x=1694599390; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CesIsMeSAuN11uLEEcY6nzqg44xgClKzHEqFMlpVQZ8=; b=ZPcis/4KD5e93wKAUZs+EVjX8hVaqzyKwfA/f444WkpnTykouIQoaH6K Bjc2N6Ki1FNOBWy4ODFOjXmM1rZhFBme2cSgQSAy5/ZJS+X+57WbsmDeO URyaHj+A0UhDzIpNSVdmUe/if0dSDtkIGH0J6NH3KOOPuafGKz0QZavAf 5JqHeqoChiTFkPDqOuF4OCDci/wv+fGdUH6TsC0aTo6sne+TYBq2Q7WQc y5YwbTHJ0buGigNC+zD45sjdWXGrMsWnNwZME60XWBhsRB4kCqmiPeqQW W8IGEEzXxKnPEvD5hA7vO5KEQOYvHwDKf35NSP5J0N9PH0S+ybi9bCPcU A==; X-IronPort-AV: E=Sophos;i="5.93,312,1654552800"; d="scan'208";a="26145944" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 13 Sep 2022 12:03:09 +0200 Received: from steina-w.localnet (unknown [10.123.49.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 77509280056; Tue, 13 Sep 2022 12:03:09 +0200 (CEST) From: Alexander Stein To: "Peng Fan (OSS)" Cc: krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: Re: [PATCH V3 0/2] clk: imx: introduce fsl,always-on-clocks Date: Tue, 13 Sep 2022 12:03:07 +0200 Message-ID: <13097869.uLZWGnKmhe@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <20220913092136.1706263-1-peng.fan@oss.nxp.com> References: <20220913092136.1706263-1-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,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 Hello, Am Dienstag, 13. September 2022, 11:21:34 CEST schrieb Peng Fan (OSS): > From: Peng Fan > > V3: > Rename to fsl,always-on-clocks > > V2: > Use protected-clocks > https://lore.kernel.org/all/20220816130327.2987710-1-peng.fan@oss.nxp.com/ > > V1: > Use fsl,protected-clocks > https://lore.kernel.org/all/20220815033632.1687854-1-peng.fan@oss.nxp.com/ > > There are two cases that I wanna this property could serve: > Virtualization: root cell linux run in parallel with inmate cell > AMP: M7/4 runs in parallel with A53 > > The major case is: > Jailhouse hypervisor only support partition, so devices are partitioned. > But there is only CCM module that provides clock, the CCM is handled by > root cell linux, need make sure the root cell linux not shutdown the > clocks using by inmate cell. > > I was thinking whether need to provide a rate entry to ask root cell > configure the clk rate for inmate cell. But NXP downstream not have it, > see > https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/clk/imx/c > lk-imx8mp.c?h=lf-5.15.y#n690 So just leave the property as uint32-array. > > This patchset could also benifit AMP case, check the two commits > commit 19565ea12d61 ("clk: imx: add mcore_booted module paratemter") > commit d097cc045b64 ("clk: imx8mp: remove SYS PLL 1/2 clock gates") > Although I not plan to drop the upper two patches, this patchset > exposes opportunity for better power consumption. Has this the same intention/effect as 'critical-clocks' from [1]? I guess in both cases you want to keep clocks enabled, even though there is no (local) user. Best regards, Alexander [1] https://lore.kernel.org/linux-clk/20220517235919.200375-1-marex@denx.de/ > Peng Fan (2): > dt-bindings: clock: imx8m/imx93: introduce fsl,always-on-clocks > property > clk: imx: support fsl,always-on-clocks > > .../bindings/clock/imx8m-clock.yaml | 4 ++++ > .../bindings/clock/imx93-clock.yaml | 4 ++++ > drivers/clk/imx/clk-imx8mm.c | 2 ++ > drivers/clk/imx/clk-imx8mn.c | 2 ++ > drivers/clk/imx/clk-imx8mp.c | 2 ++ > drivers/clk/imx/clk-imx8mq.c | 2 ++ > drivers/clk/imx/clk.c | 21 +++++++++++++++++++ > drivers/clk/imx/clk.h | 2 ++ > 8 files changed, 39 insertions(+)