]> 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>
Tue, 18 Mar 2025 06:02:48 +0000 (09:02 +0300)
commitf3da6934cdbb1599918ae31c33f957c5cd9070dd
treebdae382fb7d3d957ad35c157ddf5adc3e1f7953d
parentc96b8c0e39330e15ad020d332f1fbf458a3ab047
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