]> 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)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 11 Mar 2025 12:43:30 +0000 (22:43 +1000)
commit29c041ca7f8d6910c894788482efff892789dcd2
tree0484cef7ded1473051b8576e6968078b11f36e4d
parent634cf61e463a8020cb8eb835fae4e2939f387975
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>
hw/ppc/pnv_occ.c