git: 04a3a6e3a8d9 - main - powerpc/idle: Set 'RL' field in PSSCR on POWER9
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 08 Nov 2026 23:22:28 UTC
The branch main has been updated by jhibbits:
URL: https://cgit.FreeBSD.org/src/commit/?id=04a3a6e3a8d9c27847caa4b807e777720bb6bf99
commit 04a3a6e3a8d9c27847caa4b807e777720bb6bf99
Author: Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2026-11-08 23:17:13 +0000
Commit: Justin Hibbits <jhibbits@FreeBSD.org>
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");