Skip to content

ppc/pnv: HOMER and OCC fixes and improvements

Nicholas Piggin qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ppc/pnv/homer: Fix OCC registershw/ppc/pnv_homer.c+29 -120 replies
2/9ppc/pnv/homer: Make dummy reads return 0hw/ppc/pnv_homer.c+2 -20 replies
3/9ppc/pnv/occ: Fix common area sensor offsetshw/ppc/pnv_occ.c+15 -180 replies
4/9ppc/pnv/homer: class-based base and sizehw/ppc/pnv_homer.c include/hw/ppc/pnv.h include/hw/ppc/pnv_homer.h+41 -180 replies
5/9ppc/pnv/occ: Better document OCCMISC bitshw/ppc/pnv_occ.c+9 -50 replies
6/9ppc/pnv: Make HOMER memory a RAM regionhw/ppc/pnv.c hw/ppc/pnv_homer.c hw/ppc/pnv_occ.c +2 more+488 -2460 replies
7/9ppc/pnv/occ: Update pstate frequency tableshw/ppc/pnv_occ.c+4 -40 replies
8/9ppc/pnv/occ: Add POWER10 OCC-OPAL data formathw/ppc/pnv_occ.c+42 -10 replies
9/9ppc/pnv/occ: Implement a basic dynamic OCC modelhw/ppc/pnv_occ.c include/hw/ppc/pnv_occ.h+148 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] ppc/pnv: HOMER and OCC fixes and improvements

This series makes a bunch of fixes and improvements to the HOMER and OCC unit models for powernv. It gets OPAL OCC code happier again, but requires this series of skiboot fixes (which I will hope to get upstream and then into QEMU in the same release as this series is merged.

https://lists.ozlabs.org/pipermail/skiboot/2024-November/019013.html

Big changes is moving HOMER from mmio register implementation to a RAM memory region which better maches hardware and is much easier to work with; and the addition of some dynamic OCC behaviour to the device model.

I wouldn't expect any review of OCC details. It's neglected and this series gets it in better shape than before. But anything on the basic structure and QEMU details is welcome. I will add some test cases to help ensure it doesn't regress in future, I will have to juggle the skiboot fixes as well though, so will do that later.

Thanks,
Nick

Nicholas Piggin (9):
ppc/pnv/homer: Fix OCC registers ppc/pnv/homer: Make dummy reads return 0 ppc/pnv/occ: Fix common area sensor offsets ppc/pnv/homer: class-based base and size ppc/pnv/occ: Better document OCCMISC bits ppc/pnv: Make HOMER memory a RAM region ppc/pnv/occ: Update pstate frequency tables ppc/pnv/occ: Add POWER10 OCC-OPAL data format ppc/pnv/occ: Implement a basic dynamic OCC model

 include/hw/ppc/pnv.h       |   6 +-
 include/hw/ppc/pnv_homer.h |  12 +-
 include/hw/ppc/pnv_occ.h   |   9 +
 hw/ppc/pnv.c               |  87 +++--
 hw/ppc/pnv_homer.c         | 230 +++----------
 hw/ppc/pnv_occ.c           | 668 +++++++++++++++++++++++++++++++++++--
 6 files changed, 742 insertions(+), 270 deletions(-)
Signature · 1 line
2.45.2