]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/pnv/occ: Fix common area sensor offsets
authorNicholas Piggin <npiggin@gmail.com>
Mon, 9 Dec 2024 09:55:58 +0000 (19:55 +1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 22 Mar 2025 07:52:25 +0000 (10:52 +0300)
commit12e3833b2981a25169041450084e94a6647daeef
treebb49d74316478a251bf65c04c061184da269785a
parent4ffa569f32d95f96e0d4d9de4a6b1600b9da064d
ppc/pnv/occ: Fix common area sensor offsets

The commit to fix the OCC common area sensor mappings didn't update the
register offsets to match.

Before this change, skiboot reports:

[    0.347100086,3] OCC: Chip 0 sensor data invalid

Afterward, there is no error and the sensor_groups directory appears
under /sys/firmware/opal/.

The SLW_IMAGE_BASE address looks like a workaround to intercept firmware
memory accesses, but that does not seem to be required now (and would
have been broken by the OCC common area region mapping change anyway).
So it can be removed.

Fixes: 3a1b70b66b5cb4 ("ppc/pnv: Fix OCC common area region mapping")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
(cherry picked from commit 29c041ca7f8d6910c894788482efff892789dcd2)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/ppc/pnv_occ.c