From nobody Sun Nov 08 23:22:28 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jN88N6qx3z705b9 for ; Sun, 08 Nov 2026 23:22:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jN88N68MVz4Z6y for ; Sun, 08 Nov 2026 23:22:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794180148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MUB3rpOElBtoj1Upkp0Yn3UhZgx92/yNwhLUhhD59MA=; b=B8elQ4wBgtxUJ/MK9xEGLnW4McV6DzsQuFmgcluATf3xJZmuzhRG1p8QFwJBsh0EUSqr7j Wjk0s2mJSaXY1q2O/XsBppsrLwlSCZsrYFczPbNjC2zDR+aJLN6w1ynNdF8xR6RoJMxn3k sUuih7f4AdqRopydy/doVjozczSQlUlJxGmZOuyjsk6/TbJY79ikobasCo/vZejkdEKeFj KWOl3jO81VSYUF7U51Z4MdpUv0jGx6XY5EPIRdL54YJRgrkbDPrlOrpb+JkE7hLTOLisGl nuSLC0qsND3WSHkSyRMei2RtIkRwGPVfRvKhjVBW1FCO1iup3rk5SEvHLDE+wA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794180148; b=nbUkYTmmm734MZoeud9YyCv7GRcQYw97I0zTqv2VnMttzw5HQy50hElw/8QsOm8frwcUHO Mc9FL5LL8rEHRkcPs2csEpt/CFCW2jQOd2LgZdKJ5PgCpiEXKLezGPXfVJnrJ9KjWllj7/ jVLCEZfCZBdCV5r/B3gV7y2VBRB6pyp/f5UtG8F1YfiuJ9uNu/DDVd7jaLFRetW096nfJA /xp1LfY4Wdba2La6H9GW5OOFYforKVkUD6GMG1CfOBpvhIWw4XV0hnZlntIc2H7DHJM7jP qnj3mRry27ECOOOh/zzINyhgetU5agyEq+6AALNE1y1ATexqHZBTjRtoPBM/LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794180148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MUB3rpOElBtoj1Upkp0Yn3UhZgx92/yNwhLUhhD59MA=; b=FO8Z7vWrG8tpbTcbqvFtaV6wQzV7drs1YQCgXoChqfWUbvYt4k8L7ZQugO0OvbKDRW0jYr U/UFlWldCUB53o8htiOWTnIr2texQTHlDzVGg65RmBUO5Y5KtomZvh1gPVPARxNb5jTg3B m8ypBJrHIu5Yazc7CszEnubf7iQs9/+8QD2/kU8amygi03btmVRRvd9hqd3ZHH5V6jgTmv Si5eKyTCoyZ3YUvaK3ydgHHKRTReFXXc/bsLdH2PJuByTl28e0cDSP5p/+KG38gqX13VXw jwuRkaXOdAfubGUIPGJPRXRe6S5JcJOrDuRsUxzwTsP8N/7TMk4jZFhKfV/QCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jN88N5py6z1RHB for ; Sun, 08 Nov 2026 23:22:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1fba0 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 08 Nov 2026 23:22:28 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: 04a3a6e3a8d9 - main - powerpc/idle: Set 'RL' field in PSSCR on POWER9 List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 04a3a6e3a8d9c27847caa4b807e777720bb6bf99 Auto-Submitted: auto-generated Date: Sun, 08 Nov 2026 23:22:28 +0000 Message-Id: <6af10434.1fba0.2afbd22c@gitrepo.freebsd.org> The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=04a3a6e3a8d9c27847caa4b807e777720bb6bf99 commit 04a3a6e3a8d9c27847caa4b807e777720bb6bf99 Author: Justin Hibbits AuthorDate: 2026-11-08 23:17:13 +0000 Commit: Justin Hibbits CommitDate: 2026-11-08 23:21:49 +0000 powerpc/idle: Set 'RL' field in PSSCR on POWER9 The POWER9 does not do automatic state transitions when idling, so the 'MTL' field (Maximum Transition Level) is ignored. Thus, setting '0' for the 'RL' field (Requested Level) as was done means it doesn't transition to any power saving level. To fix this, set both the 'MTL' and the 'RL' fields to the same level. On a Talos II at idle this drops the reported temperatures by ~10-15%. MFC after: 3 days --- sys/powerpc/powerpc/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/powerpc/powerpc/cpu.c b/sys/powerpc/powerpc/cpu.c index 37eb01e2b74f..b3e9bc8147cf 100644 --- a/sys/powerpc/powerpc/cpu.c +++ b/sys/powerpc/powerpc/cpu.c @@ -890,7 +890,8 @@ cpu_idle_power9(sbintime_t sbt) } /* Set the stop state to lowest latency, wake up to next instruction */ - mtspr(SPR_PSSCR, (max_stop_state << PSSCR_MTL_S) | (0 << PSSCR_RL_S)); + mtspr(SPR_PSSCR, + (max_stop_state << PSSCR_MTL_S) | (max_stop_state << PSSCR_RL_S)); /* Shut down core using "stop" instruction (PowerISA 3.0) */ __asm __volatile (".long 0x4c0002e4");