]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/pnv/homer: Fix OCC registers
authorNicholas Piggin <npiggin@gmail.com>
Mon, 9 Dec 2024 13:16:35 +0000 (23:16 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 11 Mar 2025 12:43:30 +0000 (22:43 +1000)
commitf24ff35af9b242163ac0d209a70240f13fd9f163
tree6204e90a1d930c7c4dbffd49ca3efb46de0e061e
parent6b56bb6dbce5cfa185c34c0519ab8015f30699f7
ppc/pnv/homer: Fix OCC registers

The HOMER OCC registers seem to have bitrotted and fail for various
reasons on powernv8, 9, and 10.

The major problems are that POWER8 has the wrong version value and its
pstate ordering is incorrect. POWER9/10 have not set the OCC state to
active. Non-zero chips are also set to OCC slaves for POWER9/10.

Unfortunately skiboot has also bitrotted and requires fixes that are
not yet in the bios files to run. With a patched skiboot, before this
change, powernv9/10 report:

[    0.262050394,3] OCC: Chip: 0: OCC not active
[    0.262128603,3] OCC: Initialization on all chips did not complete(timed out)

powernv8 reports:

[    0.173572100,3] OCC: Unknown OCC-OPAL interface version.
[    0.173812059,3] OCC: Initialization on all chips did not complete(timed out)

After this patch, all report:

[    0.176815668,5] OCC: All Chip Rdy after 0 ms

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/pnv_homer.c