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 EB244C87FCC for ; Sun, 27 Jul 2025 17:12:57 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=by9BF+J3otMxut4zKh9Orrm/ZaHCEDPuuqvC6YfEP98=; b=KNeJ/oAXkphAwE OD5BOA7CpZujhj3+fVumszXK6iCmNWpZBBTFTfUt7P9la/17adWy4mjB8TKg8rGufItPsZfGJcY5j QW4r0mHmTduAMws9a/urc8Zs1gUwR3UB/8wrCLfgJ+xtlBxe/g1ZyzZqnY4/SC25nORbx28ZJ7C2V 0mAAA+V6+Dymf40zDdExmrz2BkS/4cIn/U0zSj16JcNRTFHuugtRvjjnwi4hsQiSGTKUx3dnEio3D 5KzVwM4aJLvpmObKQ7ZSLpm4BkHKfZNUEZPYZ5P/TIrbwnsyYQZa0OxUSoOe9VdehenksPBN62WMB 64HnbgYAnCSHbBSgsU5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ug4vb-0000000CzNG-35tF; Sun, 27 Jul 2025 17:12:51 +0000 Received: from ded1.1wt.eu ([163.172.96.212] helo=1wt.eu) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ug4uQ-0000000CzKj-2ZkG for linux-rockchip@lists.infradead.org; Sun, 27 Jul 2025 17:11:40 +0000 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 56RH9lBm018749; Sun, 27 Jul 2025 19:09:47 +0200 Date: Sun, 27 Jul 2025 19:09:47 +0200 From: Willy Tarreau To: Chukun Pan Cc: alchark@gmail.com, conor+dt@kernel.org, devicetree@vger.kernel.org, heiko@sntech.de, jonas@kwiboo.se, krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, ziyao@disroot.org Subject: Re: [PATCH v2 1/1] arm64: dts: rockchip: rk3528: Add CPU frequency scaling support Message-ID: <20250727170947.GA19379@1wt.eu> References: <20250720140010.218235-1-amadeus@jmu.edu.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20250720140010.218235-1-amadeus@jmu.edu.cn> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250727_101139_236022_12B9F315 X-CRM114-Status: GOOD ( 34.99 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Hello, On Sun, Jul 20, 2025 at 10:00:10PM +0800, Chukun Pan wrote: > Hi, > > > > Because the actual frequency generated by 850mV is closer to 1008MHz. > > > > Which likely means that you have an -L5 chip. It will be different on > > other chips - it's a lottery of silicon quality. > > The rk3528 board I have has -L3 and -L5 levels. > -L3 level tested at 850mV (mainline kernel) actual frequency is 1055MHz. > > Frankly speaking, I have always doubted whether the voltage value of BSP > is correct. The voltage of BSP kernel at 1800MHz and 2016MHz is too low, > and no board can reach the corresponding actual frequency. > For example, if we set the CPU frequency to 2016MHz when running the BSP > kernel, the actual frequency can only reach 1800MHz. I've tried the patch on my E20C and am seeing a frequency drop compared to cpufreq disabled (2016 MHz stock frequency). By default, without the OPP, my CPU cores are showing the following frequencies: # ncpu=$(nproc);for ((i=0; i