Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2901794rwb; Fri, 2 Dec 2022 17:30:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf7YV9sNrC4ErcGWnOeqK/zOYZvI8TWBP6sLjpFIij9bcc6/VknPM79JLkVGqIQYJ9K+vUJ3 X-Received: by 2002:a17:90a:8d0c:b0:219:9a0d:dfe4 with SMTP id c12-20020a17090a8d0c00b002199a0ddfe4mr3644407pjo.150.1670031051684; Fri, 02 Dec 2022 17:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670031051; cv=none; d=google.com; s=arc-20160816; b=ztu4Pl4a/GKzJbLQOgIC/v7sKo9eseeqJk2o4Jt5TRuoQ89g4Ik9v/yQA1jshPfl0z 7DvuvMH8+Co5udqTvnJJvtoYwTfpPKQHbGEt5fcCzSpsVWx5sCWQ3MdsV357mzarad7a nPSaRTUadlK7vEHi/tmu4FNQJ0H0+Bcguof/j1h5x/hXvGooA4X1wtXSiDAjXzUhg06u 9mXq9nUtZFiwA5I6G7rdtN/Iaonq4Gzny9mzf+Qs45yME7lXOVLYwAnigxNbDgLZhGRP eoriqihjDvQPGHI8MnSMJp6u3Ii6BPXFGoV3EczvIzQSOyDhWZ3BgfvLCFzsI5zTw5dX 7C7Q== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=ZveIlDcDOH2OOk45va0hrJKPUr5jh5TolNTbteDkelM=; b=qd0l2K9HP6v7UUUSksjCv6aEO+C0asViYbKiGWFjBtjMCUge54QdbYl2ylLgLhx+n0 stPZi9NpPlqsMtw7jqBIXdgDCv7y+gp9GHp2jkyPvjfxU75fk63dtGQn4xbGt5r+Gt8X raoktdUGicY4GUJ6SpjsB6ZPCt5h+a5a/GN23B3kyafXRh17YbVpW3ENfZ4pVCEghP5t l6b499aGIqsFtTx034gNQUoGz7GK7I7f/zETJWbdFtplXVrfvXvF+n5FincvrfuVNtMa Hl+lP5rPBjUj+txrpqN2gvSzXDuGgMJiiX7GKgfIbT20SQpOxNRFweQPBsIyFDPqE+KN DZlA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g22-20020a632016000000b0046b3ba2c806si8120629pgg.145.2022.12.02.17.30.40; Fri, 02 Dec 2022 17:30:51 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234148AbiLCAX4 convert rfc822-to-8bit (ORCPT + 82 others); Fri, 2 Dec 2022 19:23:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbiLCAXy (ORCPT ); Fri, 2 Dec 2022 19:23:54 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B01787CA0; Fri, 2 Dec 2022 16:23:53 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A96323A; Fri, 2 Dec 2022 16:24:00 -0800 (PST) Received: from slackpad.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 817DF3F73B; Fri, 2 Dec 2022 16:23:51 -0800 (PST) Date: Sat, 3 Dec 2022 00:22:05 +0000 From: Andre Przywara To: Samuel Holland Cc: Chen-Yu Tsai , Jernej Skrabec , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Philipp Zabel , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, =?UTF-8?B?QW5kcsOhcyBTemVtesWR?= Subject: Re: [PATCH 4/5] clk: sunxi-ng: d1: Mark cpux clock as critical Message-ID: <20221203002205.0f97d3bf@slackpad.lan> In-Reply-To: <20221126191319.6404-5-samuel@sholland.org> References: <20221126191319.6404-1-samuel@sholland.org> <20221126191319.6404-5-samuel@sholland.org> Organization: Arm Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.31; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 On Sat, 26 Nov 2022 13:13:18 -0600 Samuel Holland wrote: > From: András Szemző > > Some SoCs in the D1 family feature ARM CPUs instead of a RISC-V CPU. > In that case, the CPUs are driven from the 'cpux' clock, so it needs > to be marked as critical. Yes, my board hangs without that patch somewhere into the boot, and this patch fixes it. Can you also explain in the commit message why this is needed? IIRC the CPU node itself does not "consume" the clock, this would only be done by DVFS code? And it might be worth noting that we do this for every other Allwinner SoC as well. > Signed-off-by: András Szemző > Signed-off-by: Samuel Holland Reviewed-by: Andre Przywara Cheers, Andre > --- > > drivers/clk/sunxi-ng/ccu-sun20i-d1.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/sunxi-ng/ccu-sun20i-d1.c b/drivers/clk/sunxi-ng/ccu-sun20i-d1.c > index 8ef3cdeb7962..c5a7df93602c 100644 > --- a/drivers/clk/sunxi-ng/ccu-sun20i-d1.c > +++ b/drivers/clk/sunxi-ng/ccu-sun20i-d1.c > @@ -240,7 +240,7 @@ static const struct clk_parent_data cpux_parents[] = { > { .hw = &pll_periph0_800M_clk.common.hw }, > }; > static SUNXI_CCU_MUX_DATA(cpux_clk, "cpux", cpux_parents, > - 0x500, 24, 3, CLK_SET_RATE_PARENT); > + 0x500, 24, 3, CLK_SET_RATE_PARENT | CLK_IS_CRITICAL); > > static const struct clk_hw *cpux_hws[] = { &cpux_clk.common.hw }; > static SUNXI_CCU_M_HWS(cpux_axi_clk, "cpux-axi",