Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp827140iob; Wed, 18 May 2022 14:01:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyE4brT32hVLu6qOs/Mt1VOlWxZmm01VJQYj8k3x/57gwmJ6IgCyv73FywEO0XXR03ZiUlk X-Received: by 2002:a63:5b17:0:b0:3f6:1c2a:28f9 with SMTP id p23-20020a635b17000000b003f61c2a28f9mr1073667pgb.182.1652907667489; Wed, 18 May 2022 14:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652907667; cv=none; d=google.com; s=arc-20160816; b=QuUwWGQ1Cq6FXkx52jlZsr4N8M3g1yl2cBxid4154qXPjWYdVOF1mcVDqf2cL9QeZJ ulJ/qNKR+V+ZPMvpdjSfk9nG69QHHDwBxtyTMeSBV12FnrEnH3BVKzw2qXw7K2X8gFGf elTPI9h7C+Up8JrVavTQKg4RXVhemMuxwlt4EYW6mM1oor9p0z0Tvc1OsP+RdaIEZUV/ Hzx96/Jr1F3dn1Y8jAXmCymJavJy8o39n2nW09fml7C74qzCRUqXZ1fDP2flVPksryLX 4ItMXj4QQI/JEKNDI4re5vROJCT3ZtfU+ab1I1hSGJ/T+ofeHfdzmVdjw9JlmXCwrtye NFdg== 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=GGZytWTFLG82JL28oj5yBN5xRMB57MT2y/zGvzKExtw=; b=L/+foKRvNdwAXuOw5errhBEDZ4SYc5GeGIAdDekkYfapJhRk+Ex7xhWrbXqyiI5psQ UB4XbznPIrBD0KdbQ3ygBfEI978jeLpugrmZOnnJ7h/fARhR/Ls4LAdD4+NTg3/rOdBB nohLZzogyzeFmGYXg6uHNxI5JKcOLQ8eL0P3lsGNJYvbqOYyQUlZu92X+G3GlsfnIISM iVixFg5xYftep0gPK+PVqMzOle6pKEgkzM7lp1rKXAkV3z3jESiXBx6HWEBzI7pwTbNh bie+zmBpbdqEx29DWvi8QIyTV9m0XbvhUHmY2JZqtFbB5WXYFyML9xvEgV9ZvWWOgSFu HWKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CuZjhfWt; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id y2-20020a1709029b8200b0015d02c4c78esi3727850plp.487.2022.05.18.14.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 14:01:07 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CuZjhfWt; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 03B20224A5D; Wed, 18 May 2022 13:58:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242803AbiERU6B (ORCPT + 99 others); Wed, 18 May 2022 16:58:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242719AbiERU54 (ORCPT ); Wed, 18 May 2022 16:57:56 -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 93B8521AAA8; Wed, 18 May 2022 13:57:55 -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 301D960A51; Wed, 18 May 2022 20:57:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A187C385A5; Wed, 18 May 2022 20:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652907474; bh=GGZytWTFLG82JL28oj5yBN5xRMB57MT2y/zGvzKExtw=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=CuZjhfWtKmePehG5GHb3Adbwl42OdlGFKBUSCdTaGdQUAQ+OTOsFICncz9Exq4wTg 5QXIqPdxaaRnqvfl2DO9WkauN+euSoVLxb7v9hCtlJYGe4AEkq26l+VheqzqoKho/z dy5nP25UVndU3FJUordcTLkHGF2udsGpS0h7WZO2TENoo/w7UfyM+gMjhytVGohZRq 7H1GnZuY020lWEcLLr6ZYvMsQFSJ2h4fNAB578EEvXXqoiJ26+nQp6XWG7KS7Y/nS3 IVKc2+ptCpZ45BEmD+FGDux1nfKdx0o3AZD1FvIsU1sQ+muPFMVzK1dfFGLeI9NpQx v9NggMoTtnJTw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220428164454.17908-3-aidanmacdonald.0x0@gmail.com> References: <20220428164454.17908-1-aidanmacdonald.0x0@gmail.com> <20220428164454.17908-3-aidanmacdonald.0x0@gmail.com> Subject: Re: [PATCH v2 2/3] clk: ingenic: Mark critical clocks in Ingenic SoCs From: Stephen Boyd Cc: paulburton@kernel.org, paul@crapouillou.net, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org To: Aidan MacDonald , mturquette@baylibre.com, tsbogend@alpha.franken.de Date: Wed, 18 May 2022 13:57:52 -0700 User-Agent: alot/0.10 Message-Id: <20220518205754.8A187C385A5@smtp.kernel.org> X-Spam-Status: No, score=-2.6 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 Aidan MacDonald (2022-04-28 09:44:53) > Consider CPU, L2 cache, and memory clocks as critical to prevent > them -- and the parent clocks -- from being automatically gated, > since nothing calls clk_get() on these clocks. >=20 > Gating the CPU clock hangs the processor, and gating memory makes > external DRAM inaccessible. Normal kernel code can't hope to deal > with either situation so those clocks have to be critical. >=20 > The L2 cache is required only if caches are running, and could be > gated if the kernel takes care to flush and disable caches before > gating the clock. There's no mechanism to do this, and probably no > reason to do it, so it's simpler to mark the L2 cache as critical. >=20 > Signed-off-by: Aidan MacDonald > Reviewed-by: Paul Cercueil > --- Applied to clk-next