Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1655524pxp; Thu, 17 Mar 2022 13:44:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykdKKpM1TJmiXLtBoJzEr2Z5xXVUgTt8sOR4PYkh8ooc056mpCfKp//vCDr2tgm/nMHHA2 X-Received: by 2002:a05:6a00:8d4:b0:4f6:6da0:f380 with SMTP id s20-20020a056a0008d400b004f66da0f380mr6411160pfu.34.1647549887060; Thu, 17 Mar 2022 13:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647549887; cv=none; d=google.com; s=arc-20160816; b=r+z9javjfMA8IkdAlH0FU3Whc24ufwAFkyOn8JIHZiymE8BN/EF7xiutjzkLUAJ8jL VlDwx2glzx3pPn6951alvhdcjDl9KpLfLnljeiHYVbx+CjY1/7AV07JUCp9BMbgqc7tx aMTsNuyQB+7GkUj20wNzmcPrLdrBs4blvplBafEWg0y4os1i29hZypBftrlFH5JAIJv5 FSRpw+jIbqGIld0NxcSO5NdRYypg8KoEovlIoF5cIeQqX2IUCK66olfUA9DIGnMoQixd 2jZ4bE8dittzGcBIEfNFl1BGwZKZldVfnu8C4iAnRxN0aKWZOmnXZue+SRnW3x1bMyCg nBEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=qQ19g2muXPeiVAsGMKiXvGvizpGqEr9Wpd3h8Egh/6A=; b=Kas7tanWKhYO92sPj+BUpSf2jm5uO2v3D16lUmRaolwqziBbJaaQr6mCFqWj5fgVIA 3KsPOsVcpqUpmbAg/bliEebclSJxHNqg9d7JbLZSteVnCE9aMlQQ5kX8GYJf6QvvLJTv C8ik1NMHnfzbJBxO339wpugCMiOrsULjHgAvq88VsbN6QzCTAB5/eRn4+QmyaBwi0tiA 9F/MH2Lqqx24u5I8KWG4s00VqCQW1KIvwbt9wuf5fiw9Z6q7rhUjab4MTMOFnhtw0BiU 6+uz7T6yhgSf9XMr1RlWXHCb8mH9vcCu04Vdm3mTjxSOCrHqB6O9GBPiq3U9fP/BlLyI gadA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hxtB08nD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c5-20020a656185000000b003816043f12dsi2908025pgv.802.2022.03.17.13.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:44:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hxtB08nD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 606AF1C3484; Thu, 17 Mar 2022 13:12:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231265AbiCQTig (ORCPT + 99 others); Thu, 17 Mar 2022 15:38:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbiCQTie (ORCPT ); Thu, 17 Mar 2022 15:38:34 -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 3C15122C6D4; Thu, 17 Mar 2022 12:37:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D3276618A9; Thu, 17 Mar 2022 19:37:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33264C340E9; Thu, 17 Mar 2022 19:37:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647545837; bh=wZADvi8AH8u7rrJ6fm+rJHZo13IxweiVHExl3Kx7B8w=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=hxtB08nDB74+ElGeDdXkWH2FwFo4gBAPQhiuOUh6fiSJfkzsO9ah0hwNQZenA/2th knoPfLRHIgJRHROWhmzJTG6F9Fq+0/Zh5mk1NQJiWYukgxxHc/hvBkXrluk/dPk2NU qkFORdIDaAGS2ottyyHKj5SJQnYlXq2XJN69JdWRSEW7N8ytZOLmZnmP/z610zzvCu Nk1pkksgr4jUvI6cnWW1Sdz3ngU4P0226G1+zvejoiISo33DYMD/URR3oOf/dErLxX 8+8mguAIhlrHNj5hau8+szip14RmlbPiL01ExsNKXhGXXwobUN/RBIIIrcIsst1Lnd QbY9JPVh18gxA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220228124112.3974242-1-peng.fan@oss.nxp.com> References: <20220228124112.3974242-1-peng.fan@oss.nxp.com> Subject: Re: [PATCH V2 1/2] clk: imx: add mcore_booted module paratemter From: Stephen Boyd Cc: 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 To: Peng Fan (OSS) , abel.vesa@nxp.com, s.hauer@pengutronix.de, shawnguo@kernel.org Date: Thu, 17 Mar 2022 12:37:15 -0700 User-Agent: alot/0.10 Message-Id: <20220317193717.33264C340E9@smtp.kernel.org> X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 Quoting Peng Fan (OSS) (2022-02-28 04:41:11) > From: Peng Fan >=20 > Add mcore_booted boot parameter which could simplify AMP clock > management. To i.MX8M, there is CCM(clock control Module) to generate > clock root clock, anatop(analog PLL module) to generate PLL, and CCGR > (clock gating) to gate clocks to peripherals. As below: > anatop->ccm->ccgr->peripheral >=20 > Linux handles the clock management and the auxiliary core is under > control of Linux. Although there is per hardware domain control for CCGR > and CCM, auxiliary core normally only use CCGR hardware domain control > to avoid linux gate off the clk to peripherals and leave CCM ana anatop > to Linux. >=20 > Per NXP hardware design, because CCGR already support gate to > peripherals, and clk root gate power leakage is negligible. So > when in AMP case, we could not register the clk root gate. >=20 > Signed-off-by: Peng Fan > --- >=20 > V2: > Switch to use module parameter, tested on i.MX8MP-EVK Why is a module parameter being used? I'd expect this informatioon that mcore is booted to come from devicetree/firmware somehow.