]> 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:51 +0000 (10:52 +0300)
commita545ecd4de8d160133da03fb3616589fbe11aa0d
tree28d4d7e277ec6976952cc5adb7fc4718de1cf647
parent8778ae6a048067b3be2e25c3aa1fcbc8daeababd
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