From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DDDC15D1; Sun, 8 Jun 2025 07:24:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749367466; cv=none; b=PPQAzh09hxDB3pIZHsAFRy06rOiFVisqMntwLmvNond7Gq6a4T5M0vSW4DW4S9tUlQqudNOftqjmtVQ2p7Yrgg5OuTmwSYTdujJFTvR6KCsDitiQ7Pt7AOmIllBneou8SaTOL2DeRTqOqqyMezAP9+HUfoXlAMPSx2sfRfoHpLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749367466; c=relaxed/simple; bh=57hSiaTP5shRl7ezdEzQTTVn75tu6DF7CI6RglBP6D4=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=AqC7fEAhm09OnW1JTFPJxR5Jj6DvtxZZI5luTM3KNbxF4o5DlGa59nKJ+S+h8HVBsX4GOYTMBGSFDDtKqPa2cg2qljJQgzqvuLczaD+aaHFFAKucdWqoUgf/haQKSr0l6qc1C3Lqn2Iv7xq2B7qZeKtbwE9kHRlMQlRVNM96/eU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EzeHcGu4; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EzeHcGu4" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-ad89c32a7b5so538945666b.2; Sun, 08 Jun 2025 00:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749367463; x=1749972263; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eME8R9QRUtbMs6yNjgukeDUBZeLszNLIRLLaAcTHowg=; b=EzeHcGu4H0u5AeUarGh98PNi15CCaNX9qKG5Q3S0dIqhI3yBf1GcevBwcVRGmgIwVJ Cumv2RWDdrY3LJo0NJlNSP2es+sd911PXimueeJLH9t2X9jBpL3GzWFsBhQEq7kEqwnU LslXFwFWqro/0W+smOogpB44JG3GeuHtcK58wk+9UXFBpC4ANWYgOqOgWO0XcqU8xazJ 0ob2wypQ5eTB1jjxjmsORntCkLnVl+u92j+DNi3vksh9xKnhHb5Ee63GczpjQBese8qI roT9iBlW9sf2pL0i+emDlAOASfBXY3khbFGDydkh5SBeUf+h8wdZegsExfuGMbaPNjEU BwnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749367463; x=1749972263; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eME8R9QRUtbMs6yNjgukeDUBZeLszNLIRLLaAcTHowg=; b=xVgylB3fxjxLac/7MfbDvqUfPrX8YK9OV1l9qest9gfP5Bju11EGhIVITU5qKjRT39 lilgHezvIoCWx2sS41pCbf8399TPmDxfLG+WGayHbGrxsMZdUpSzNgBhAfYXxpLoUad1 8aZRIjnICY5MAa/7LkQdDolOXfXCAdNGqJrPxi+KDAYKgUdFU9XRRBBp1LzkljHeb7Ga x87Tl+rcM4hCKDMI7/VukXDoS6oQwKRMjlbqG87iK1jXIT0oePZz9LUaYf7kYMOPdSeZ xh9UmwUSN5j0aOvgH13q+1B4w/V7WuwbgRFEKDabEM3woe98dftTClOJmb/qcEV2J9WG lWgw== X-Forwarded-Encrypted: i=1; AJvYcCUZ+WdWRgLjflrGeBhWleT6EM6katyd1WrHsrScwD2CGjt4JfwHewF5GHeLNphahPDAo4X1PeVYOvNo0upU@vger.kernel.org, AJvYcCV6LwR6ZgLRA82aXe6Tjc7ZZEQT2Q0v/u3jIZbclaivLSUOZr+Gz2WRJMLqjUCmpnmeo9XK36dSTSRe@vger.kernel.org X-Gm-Message-State: AOJu0YznCGkzF0oQAYUAhNgqHqZa0MYK9FELzvJ8JsASfBq/xQizQUvY 6WvFZsexlxtl1l21VClfLjDd56Z8lGqqUGTMQzKG+RM/Hjjr4HopUqoC X-Gm-Gg: ASbGncvQmG3gvNbLbytxXbdds97DDX19TwnfNrLZ05n1eMt6nJunb/KKWOKXCSgQT76 oY7vEFWDwtBkDlXFlwxvihprZ2zajCtq1NWpkkE9KqE77Eq92yDtlTJUQXFT+p25HbuxD3XTPse Gqgo0uxy0ganfZEXFM+oYK6HtWP6bECEOkL+rr3EvQxshH/4KBV1p7RYhTZfDL2xe44BIF/5/JI +yM/oyM520m7SVs2SeuAIruDNR9nI9qZ3xuAyf3aKOVKkYJEj4Lk2hxxKoEEaTozmOd7eIP5t6b OIYNVPYPtt+CeAq5E2zE2bU+4WOZAUzR9tK6zGcYyU4QIzAoHaXRc8k/D3FsBeeZ70NjgNWvt5H 7zqIk3UlH5g== X-Google-Smtp-Source: AGHT+IHs2Im8ufOJ5O1PoZh7we14S+ZSLXjoRhkB7jNicHTv/HzPCNoDXtBRaSPrY7thT1gbcil+tA== X-Received: by 2002:a17:907:6d0e:b0:ad8:8efe:3201 with SMTP id a640c23a62f3a-ade1aaba1cemr833053066b.43.1749367462288; Sun, 08 Jun 2025 00:24:22 -0700 (PDT) Received: from smtpclient.apple ([89.66.237.154]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ade44af8215sm180104366b.15.2025.06.08.00.24.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jun 2025 00:24:21 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: [PATCH 1/4] arm64: dts: rockchip: list all CPU supplies on ArmSoM Sige5 From: Piotr Oniszczuk In-Reply-To: Date: Sun, 8 Jun 2025 09:24:09 +0200 Cc: Nicolas Frattaroli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <90218D7B-0CF5-4F5D-969A-909A44E6044F@gmail.com> References: <20250603-sige5-updates-v1-0-717e8ce4ab77@gmail.com> <20250603-sige5-updates-v1-1-717e8ce4ab77@gmail.com> <6656934.DvuYhMxLoT@workhorse> <512E950E-E8CB-443B-8E47-79F073D217E8@gmail.com> To: Alexey Charkov X-Mailer: Apple Mail (2.3826.600.51.1.1) > Wiadomo=C5=9B=C4=87 napisana przez Alexey Charkov = w dniu 5 cze 2025, o godz. 15:42: >>=20 >>>=20 >>>=20 >>=20 >> Alexey, >> I see you are using rk3576 board like me (nanopi-m5) >> Have you on your board correctly working cpu dvfs? >> I mean: [1][desired clocks reported by kernel sysfs are in pair with = [2[]cur clocks? >> In my case i see mine cpu lives totally on it=E2=80=99s own with = dvfs: >=20 > Hi Piotr, >=20 > I haven't tried to validate actual running frequencies vs. requested > frequencies, but subjective performance and power consumption seem to > be in line with what I expect. well - my subjective l&f is that - currently - my rk3576 seems = =E2=80=9Eslower" than i.e. 4xA53 h618.=20 This directed me to investigate this issue. Test run was media player (mythtv) where ui has gl effects and ui gl = transitions =E2=80=9Espeed=E2=80=9D are quite proportional to cpu speed = (and gpu). My overall feeling is: ux is comparable to slow socs 4xA53@1.4GHz/G31. = This is with mainline atf + collabora uboot [1] and on-demand gov. I done test with replacing uboot from mainline atf + collabora uboot to = bin. dump of vendor uboot (2017.09) and with this ux become almost as = expected (i mean comparable with i.e. rk3399). I done test with perf gov. and 1.collabora uboot[1] + mainline atf 2.13 2.collabora uboot[1] + rockchip rkbin bl31 blob [2] 3.vendor uboot (bin dump from friendlyelec ubuntu image) =20 [a] on vendor uboot: Requested CPU4: 2304 MHz=20 Requested CPU0: 2208 MHz=20 Running CPU4: 1008 MHz=20 Running CPU0: 1008 MHz=20 Measured on HW: 1580.11 MHz=20 [b] on collabora uboot + mainline atf: Requested CPU4: 2304 MHz Requested CPU0: 2208 MHz Running CPU4: 816 MHz Running CPU0: 816 MHz Measured on HW: 808.72 MHz =20 [c] on collabora uboot + rockchip rkbin bl31 blob: Requested CPU4: 2304 MHz Requested CPU0: 2208 MHz Running CPU4: 816 MHz Running CPU0: 816 MHz Measured on HW: 812.49 MHz in all cases all clocks are constant as they should Interesting that on collabora uboot [b][c] measured clock is 808 vs 1580 = on vendor uboot [a]... sw video decode conforms this diff: hd h264 gets cpu load: 172%[b][c] vs = 87%[a] =E2=80=A6. >=20 >=20 > Are these taken on the mainline kernel or Rockchip one? I tested: 6.15 mainline + some collabora patches 1.collabora uboot[1] + mainline atf 2.13 2.collabora uboot[1] + rockchip rkbin bl31 blob [2] 3.vendor uboot (bin dump from friendlyelec ubuntu image) =20 > Binary BL31 > from Rockchip or opensource TF-A? With big-core CPUs linked up to > their supply regulator (as per this patch) yes So summarising: 1. i see kind of issue with clock values (e.g. perf gov gives 800MHz on = mainline atf).=20 imho rot cause seems to be in collabora uboot 2. on-demand gov. seems behave much more like powersave. this seems to be 3576 specific:=20 -on 3588 change from perf to on_demand is hardly noticeable in ux -on 3576 such change makes ux feeling noticeable slow (like 4xA53 soc) i think this is more related to diff between scmi mcu gov algo in 3576 = vs. 3588 (imho 3576 algo has high latency in clock increases when demand happens = + too short delay for clocks decreases to save power) =20 [1] = https://gitlab.collabora.com/hardware-enablement/rockchip-3588/u-boot [2] = https://github.com/rockchip-linux/rkbin/blob/master/bin/rk35/rk3576_bl31_v= 1.15.elf