Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1055304iob; Fri, 13 May 2022 21:20:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrlN4vrb0+C+iVGkZB8zlmQP9pAi4Md6lsy7lHUMBMI/Qbhju1aaZ6VG4UPzZWidtTB6Cm X-Received: by 2002:a1c:a101:0:b0:392:942f:3aa with SMTP id k1-20020a1ca101000000b00392942f03aamr7106926wme.1.1652502016873; Fri, 13 May 2022 21:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652502016; cv=none; d=google.com; s=arc-20160816; b=Ve9D7HT0zXny4xsy5qvNzFxRn1CO90d51Kx/ZQ07KO5j/NdNoT51P1VN8sCZPVPly9 RWp+pdc5bnshzV/D/KulgketirTBhpla2foJhsr0nbdRPvRD9t/ZM/kgHz0cHJhtSZjN DWwwbrLB1mi3rlu5WjMbA9So2uyWQgPvpx0ylVgAjE81gShNPbLK7yGInThA+aT1RDq/ UUcnY9xWRva91KxFgHFRWFb13GWbwbIweGJ9gJKrkA6NDidNEv11oOzLjnC1huqjbZfB J4jbVfmTyJlgTLCUvHDSQTxEnCIKLI+EyXfHgPoNdXycx0JPKnXJurMe96OlEmmzWS9G 1mTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=I1PW+UgrxtpOrGKAmIK6mKmMXNBZW3K0uImlgxDg5uk=; b=HHKeP/509/3exGByKnKMKqx36aw5/3KnZ4ea2DOYG2LHka53iot1gA/mm+lTgSIbRu X61P3eEwk4l01EypvRxMTZg+04stUNy+ktZcnh/+D+hdw3Bo2C4y8FLuTOcKrDvHperp YUWbr11/GRDOK7yZHgJKTX2bh4S7IVQwD5EBwSyisORyktWC3lB5YX9SVBbMh8ncLItX TqRVKUd5wa6gzmUmCtG2QCxCwSJAJD/kylFNoFGHzbrMFsZUJ4m0EiaZOdkhXwv0Lkcc tSokrj1cld5Kud5fvmRqJ/6Sm+4oPEOXAjVCyUY+Vdt6+YEvJG3DUpwpu53DrzjMC8tX RWuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=LomQvD4C; 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=163.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p1-20020a056000018100b0020abf47f475si3317152wrx.416.2022.05.13.21.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:20:16 -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=@163.com header.s=s110527 header.b=LomQvD4C; 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=163.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0B90C4FFDF6; Fri, 13 May 2022 17:51:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377869AbiEMHtk (ORCPT + 99 others); Fri, 13 May 2022 03:49:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377872AbiEMHtg (ORCPT ); Fri, 13 May 2022 03:49:36 -0400 Received: from m12-18.163.com (m12-18.163.com [220.181.12.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 41B51134E1D; Fri, 13 May 2022 00:49:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Message-ID:Date:MIME-Version:Subject:From; bh=I1PW+ UgrxtpOrGKAmIK6mKmMXNBZW3K0uImlgxDg5uk=; b=LomQvD4CK/f2fzw6gLHeW 9p3/uY6i69F9rBDSzSdN0wmUuQC5KcOIG+B8yEJtJnxOblL4sgXEghC7MLiUzA2F CaIdcukEgvSzMC0bin2E1nzvRZ2cJFhonh51eyS5wC3KqjjKQ6HVvBxFZraZCjey 8QXsvnC3KnjlkrCrYxbGso= Received: from [192.168.3.102] (unknown [218.201.129.19]) by smtp14 (Coremail) with SMTP id EsCowABnVAViDX5iXlrTCA--.56204S2; Fri, 13 May 2022 15:48:50 +0800 (CST) Message-ID: <1352b9d7-5219-af09-948b-6462def39ea5@163.com> Date: Fri, 13 May 2022 15:48:50 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v3 2/2] ARM: dts: sun8i-r40: Add "cpu-supply" node for sun8i-r40 based board Content-Language: en-US To: Maxime Ripard Cc: linux-sunxi@lists.linux.dev, Rob Herring , Chen-Yu Tsai , Jernej Skrabec , "Rafael J . Wysocki" , Viresh Kumar , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org References: <20220512071858.10805-1-qianfanguijin@163.com> <20220512071858.10805-2-qianfanguijin@163.com> <20220513073849.cu4jzykefat2sepg@houat> From: qianfan In-Reply-To: <20220513073849.cu4jzykefat2sepg@houat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: EsCowABnVAViDX5iXlrTCA--.56204S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxJr1DZF13AF45KrykXr4Utwb_yoW8Cr4rp3 yxuF4DCrs7WF1rKry2grWUJry7AFyrWr4jqF15Gw1rJrn8XF9rtrn3KwnakrZ8Xr4fGw40 vrW8ur97Ww4DZa7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UGQ6XUUUUU= X-Originating-IP: [218.201.129.19] X-CM-SenderInfo: htld0w5dqj3xxmlqqiywtou0bp/xtbB2AIA7WBHKY57KgAAsm X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 在 2022/5/13 15:38, Maxime Ripard 写道: > Hi, > > On Thu, May 12, 2022 at 03:18:58PM +0800, qianfanguijin@163.com wrote: >> From: qianfan Zhao >> >> sun8i-r40 actived cpufreq feature now, let's add "cpu-supply" node on >> board. >> >> Signed-off-by: qianfan Zhao >> --- >> arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 4 ++++ >> arch/arm/boot/dts/sun8i-r40-feta40i.dtsi | 4 ++++ >> arch/arm/boot/dts/sun8i-t3-cqa3t-bv3.dts | 4 ++++ >> arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts | 4 ++++ >> 4 files changed, 16 insertions(+) >> >> diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts >> index a6a1087a0c9b..4f30018ec4a2 100644 >> --- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts >> +++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts >> @@ -113,6 +113,10 @@ &ahci { >> status = "okay"; >> }; >> >> +&cpu0 { >> + cpu-supply = <®_dcdc2>; >> +}; >> + > This will break bisection on those boards. Indeed, you added the OPPs on > the first patch, and if you only apply that patch, the boards in the > second patch will be missing their CPU regulator. The kernel will then > ramp up the frequency to the highest OPP, but will not change the > voltage, resulting in a crash. This is a good point and I will merge those two patch. > > There's a similar issue for all the boards that don't have a regulator > in the first place. > > The way we worked around this for the other SoCs is to have a DTSI with > the OPPs with a frequency higher than what U-Boot boots with (1008MHz?), > and only include that DTSI on boards that have a CPU regulator hooked in. Is this really necessary? It seems like every board based on sun8i-r40 have a cpu regulator. > > Maxime