From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D0F2C6FA82 for ; Tue, 13 Sep 2022 10:04:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KyB4Nv+ECa5zuOlAeu/Zh1NLafSBxVTmoIBtL72vq7g=; b=niK9Y20UQKz9Cn 87syIeeQ2yrHlX8/oUePLvGMW62N+mrLSMBuyg8QNYMLu4+XxSFMxDFTOXOuN8rw24Lm9F2qhSOZp riHLee7xi8+Er5yir3VId7mH6VOzlEBmQUZwAQ+HTr8ho3TdYKZQGP7LYjwRKXAqv86gICFyofrIR HbKUKTPUjPduyjOEVEgQQV/jrh/U7O1kK050tKkd2p0Ghuxr9/8ObX3LO4mWBfXVT6R5HEZqMXtMR LRxdgksnDAK5E2mj3DyrcdmmQD6GKoJNriUSzL9xSPCut62Yq3NrPlnq9BDlHnQPimpfVre/3nbxe C+4ht6Uf+T4aZReBXrRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY2lM-005xfi-DJ; Tue, 13 Sep 2022 10:03:28 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY2lA-005xEm-7z for linux-arm-kernel@lists.infradead.org; Tue, 13 Sep 2022 10:03:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1663063396; x=1694599396; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CesIsMeSAuN11uLEEcY6nzqg44xgClKzHEqFMlpVQZ8=; b=dF94rTn6wc1wudwrt/4Scttr15u1j/K7PLKpbDnu7EzVm0NA6a3ofhlD RMN9EdEejd7MCxFi/TdCu25WQ9NZXZvTi1VHlqxotsslKIrp7HE58WwKv g3cBP1PGYyAWt75/lrZ+L62jg8NyaGNzKUO0Wc4hw7FqZXLKwWW36zIbo ZjH96lVIMkogvG5aPi81HqDYCLWdwFfC5DeQ+bo4kxBLtoYSYi3Bvqf6X KO7Thn9WE+Fz0Cj4IC7c9qdzjEtHObIQ7zFzlAy3i7vDVgXYrbSXq3x8F qrVyXVLOInsDffTaR9xO5Zyh41i4ivQ8R9AvE8lHhceIwiVtILK7wGl/f g==; 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220913_030316_731575_931D7185 X-CRM114-Status: GOOD ( 21.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(+) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel