Skip to content

pnv/phb4: Update PHB4 to the latest spec PH5

Saif Abrar qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10qtest/phb4: Add testbench for PHB4tests/qtest/meson.build tests/qtest/pnv-phb4-test.c+75 -01 reply
2/10pnv/phb4: Add reset logic to PHB4hw/pci-host/pnv_phb4.c include/hw/pci-host/pnv_phb4_regs.h tests/qtest/pnv-phb4-test.c+127 -31 reply
3/10pnv/phb4: Implement sticky reset logic in PHB4hw/pci-host/pnv_phb4.c include/hw/pci-host/pnv_phb4_regs.h tests/qtest/pnv-phb4-test.c+196 -100 replies
4/10pnv/phb4: Implement read-only and write-only bits of registershw/pci-host/pnv_phb4.c include/hw/pci-host/pnv_phb4.h include/hw/pci-host/pnv_phb4_regs.h +1 more+150 -131 reply
5/10pnv/phb4: Implement write-clear and return 1's on unimplemented reg readhw/pci-host/pnv_phb4.c include/hw/pci-host/pnv_phb4_regs.h tests/qtest/pnv-phb4-test.c+170 -411 reply
6/10pnv/phb4: Set link-active status in HPSTAT and LMR registershw/pci-host/pnv_phb4.c+56 -10 replies
7/10pnv/phb4: Set link speed and width in the DLP training control registerhw/pci-host/pnv_phb4.c+19 -21 reply
8/10pnv/phb4: Implement IODA PCT tablehw/pci-host/pnv_phb4.c include/hw/pci-host/pnv_phb4.h include/hw/pci-host/pnv_phb4_regs.h+9 -01 reply
9/10hw/pci: Set write-mask bits for PCIE Link-Control-2 registerhw/pci/pcie.c include/standard-headers/linux/pci_regs.h+9 -02 replies
10/10pnv/phb4: Mask off LSI Source-ID based on number of interruptshw/pci-host/pnv_phb4.c+8 -24 replies

Reviews trailers per patch

3 of 10 patches have a Reviewed-by or Acked-by.

PatchCédric Le Goater
1/10
2/10
3/10
4/10
5/10R-b
6/10
7/10R-b
8/10R-b
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] pnv/phb4: Update PHB4 to the latest spec PH5

Hello,

This series updates the existing PHB4 model to the latest spec:
"Power Systems Host Bridge 5 (PHB5) Functional Specification Version 0.5_00".

Updates include the following:
- implemented sticky reset logic
- implemented read-only, write-only, W1C and WxC logic
- return all 1's on read to unimplemented registers
- update PCIE registers for link status, speed and width
- implement IODA PCT debug table without any functionality
- set write-mask bits for PCIE Link-Control-2 register that is read/written by PHB4
- update LSI Source-ID register based on small/big PHB number of interrupts

Also, a new testbench for PHB4 model is added that does XSCOM read/writes to various registers of interest and verifies the values.

Regards.

Saif Abrar (10):
qtest/phb4: Add testbench for PHB4
pnv/phb4: Add reset logic to PHB4
pnv/phb4: Implement sticky reset logic in PHB4
pnv/phb4: Implement read-only and write-only bits of registers pnv/phb4: Implement write-clear and return 1's on unimplemented reg read pnv/phb4: Set link-active status in HPSTAT and LMR registers pnv/phb4: Set link speed and width in the DLP training control register pnv/phb4: Implement IODA PCT table
hw/pci: Set write-mask bits for PCIE Link-Control-2 register pnv/phb4: Mask off LSI Source-ID based on number of interrupts

 hw/pci-host/pnv_phb4.c                    | 601 ++++++++++++++++++++--
 hw/pci/pcie.c                             |   6 +
 include/hw/pci-host/pnv_phb4.h            |   9 +
 include/hw/pci-host/pnv_phb4_regs.h       |  66 ++-
 include/standard-headers/linux/pci_regs.h |   3 +
 tests/qtest/meson.build                   |   1 +
 tests/qtest/pnv-phb4-test.c               | 177 +++++++
 7 files changed, 805 insertions(+), 58 deletions(-)
 create mode 100644 tests/qtest/pnv-phb4-test.c
Signature · 1 line
2.39.3