All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Saif Abrar <saif.abrar@linux.vnet.ibm.com>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, clg@kaod.org,
	npiggin@gmail.com, fbarrat@linux.ibm.com,
	marcel.apfelbaum@gmail.com, cohuck@redhat.com,
	pbonzini@redhat.com, thuth@redhat.com, lvivier@redhat.com,
	danielhb413@gmail.com
Subject: Re: [PATCH v3 0/9] : pnv/phb4: Update PHB4 to the latest PHB5 spec
Date: Fri, 20 Feb 2026 11:22:16 -0500	[thread overview]
Message-ID: <20260220112141-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20260210134110.1515322-1-saif.abrar@linux.vnet.ibm.com>

On Tue, Feb 10, 2026 at 07:40:50AM -0600, Saif Abrar wrote:
> Hello,
> 
> Addressing the review comments for the series v2:
> https://lists.gnu.org/archive/html/qemu-devel/2025-12/msg03768.html


breaks tsan build:


https://gitlab.com/mstredhat/qemu/-/jobs/13201554945

../hw/pci-host/pnv_phb4.c:968:9: error: expected expression
        PCIHostState *pci = PCI_HOST_BRIDGE(phb->phb_base);
        ^
../hw/pci-host/pnv_phb4.c:969:43: error: use of undeclared identifier 'pci'
        PCIDevice *pdev = pci_find_device(pci->bus, 0, 0);
                                          ^
../hw/pci-host/pnv_phb4.c:999:9: error: use of undeclared identifier 'pci'
        pci = PCI_HOST_BRIDGE(phb->phb_base);
        ^
../hw/pci-host/pnv_phb4.c:1000:32: error: use of undeclared identifier 'pci'
        pdev = pci_find_device(pci->bus, 0, 0);
                               ^
4 errors generated.


> 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
> - 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 (9):
>   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
>   pnv/phb4: Mask off LSI Source-ID based on number of interrupts
> 
>  hw/pci-host/pnv_phb.c               |   1 +
>  hw/pci-host/pnv_phb4.c              | 583 +++++++++++++++++++++++++---
>  include/hw/pci-host/pnv_phb4.h      |  16 +-
>  include/hw/pci-host/pnv_phb4_regs.h |  66 +++-
>  tests/qtest/meson.build             |   1 +
>  tests/qtest/pnv-phb4-test.c         | 228 +++++++++++
>  6 files changed, 837 insertions(+), 58 deletions(-)
>  create mode 100644 tests/qtest/pnv-phb4-test.c
> 
> -- 
> 2.47.3



  parent reply	other threads:[~2026-02-20 16:22 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-30 10:21 [PATCH v2 0/9] pnv/phb4: Update PHB4 to the latest PHB5 spec Saif Abrar
2025-12-30 10:21 ` [PATCH v2 1/9] qtest/phb4: Add testbench for PHB4 Saif Abrar
2025-12-30 10:21 ` [PATCH v2 2/9] pnv/phb4: Add reset logic to PHB4 Saif Abrar
2025-12-30 12:04   ` Michael S. Tsirkin
2025-12-30 10:21 ` [PATCH v2 3/9] pnv/phb4: Implement sticky reset logic in PHB4 Saif Abrar
2025-12-30 10:21 ` [PATCH v2 4/9] pnv/phb4: Implement read-only and write-only bits of registers Saif Abrar
2026-02-04  5:04   ` Michael S. Tsirkin
2026-02-04  5:11     ` Michael S. Tsirkin
2026-02-04  6:42       ` Michael S. Tsirkin
2026-02-09  5:35         ` Saif Abrar
2025-12-30 10:21 ` [PATCH v2 5/9] pnv/phb4: Implement write-clear and return 1's on unimplemented reg read Saif Abrar
2025-12-30 10:21 ` [PATCH v2 6/9] pnv/phb4: Set link-active status in HPSTAT and LMR registers Saif Abrar
2025-12-30 10:21 ` [PATCH v2 7/9] pnv/phb4: Set link speed and width in the DLP training control register Saif Abrar
2025-12-30 10:21 ` [PATCH v2 8/9] pnv/phb4: Implement IODA PCT table Saif Abrar
2025-12-30 10:21 ` [PATCH v2 9/9] pnv/phb4: Mask off LSI Source-ID based on number of interrupts Saif Abrar
2026-02-10 13:40 ` [PATCH v3 0/9] : pnv/phb4: Update PHB4 to the latest PHB5 spec Saif Abrar
2026-02-10 13:40   ` [PATCH v3 1/9] qtest/phb4: Add testbench for PHB4 Saif Abrar
2026-02-10 13:40   ` [PATCH v3 2/9] pnv/phb4: Add reset logic to PHB4 Saif Abrar
2026-02-10 13:40   ` [PATCH v3 3/9] pnv/phb4: Implement sticky reset logic in PHB4 Saif Abrar
2026-02-10 13:40   ` [PATCH v3 4/9] pnv/phb4: Implement read-only and write-only bits of registers Saif Abrar
2026-02-10 13:40   ` [PATCH v3 5/9] pnv/phb4: Implement write-clear and return 1's on unimplemented reg read Saif Abrar
2026-02-10 13:40   ` [PATCH v3 6/9] pnv/phb4: Set link-active status in HPSTAT and LMR registers Saif Abrar
2026-02-10 13:40   ` [PATCH v3 7/9] pnv/phb4: Set link speed and width in the DLP training control register Saif Abrar
2026-02-10 13:40   ` [PATCH v3 8/9] pnv/phb4: Implement IODA PCT table Saif Abrar
2026-02-10 13:40   ` [PATCH v3 9/9] pnv/phb4: Mask off LSI Source-ID based on number of interrupts Saif Abrar
2026-02-10 13:43   ` [PATCH v3 0/9] : pnv/phb4: Update PHB4 to the latest PHB5 spec Michael S. Tsirkin
2026-02-11  5:30     ` Saif Abrar
2026-02-20 16:22   ` Michael S. Tsirkin [this message]
     [not found]     ` <d65ab628-99e3-47af-839c-e059207b692e@linux.vnet.ibm.com>
2026-02-22 14:38       ` Michael S. Tsirkin
2026-03-05  6:09   ` [PATCH v4 0/9] " Saif Abrar
2026-03-05  6:09     ` [PATCH v4 1/9] qtest/phb4: Add testbench for PHB4 Saif Abrar
2026-05-01 13:59       ` Harsh Prateek Bora
2026-05-09 14:33       ` Aditya Gupta
2026-05-09 14:45         ` Aditya Gupta
2026-03-05  6:09     ` [PATCH v4 2/9] pnv/phb4: Add reset logic to PHB4 Saif Abrar
2026-05-01 14:37       ` Harsh Prateek Bora
2026-05-05 14:16       ` Harsh Prateek Bora
2026-05-09 14:42       ` Aditya Gupta
2026-03-05  6:09     ` [PATCH v4 3/9] pnv/phb4: Implement sticky reset logic in PHB4 Saif Abrar
2026-05-05 14:29       ` Harsh Prateek Bora
2026-05-05 15:08         ` Harsh Prateek Bora
2026-05-09 14:48       ` Aditya Gupta
2026-03-05  6:09     ` [PATCH v4 4/9] pnv/phb4: Implement read-only and write-only bits of registers Saif Abrar
2026-05-05 14:55       ` Harsh Prateek Bora
2026-05-09 14:54       ` Aditya Gupta
2026-03-05  6:09     ` [PATCH v4 5/9] pnv/phb4: Implement write-clear and return 1's on unimplemented reg read Saif Abrar
2026-05-09 14:56       ` Aditya Gupta
2026-03-05  6:09     ` [PATCH v4 6/9] pnv/phb4: Set link-active status in HPSTAT and LMR registers Saif Abrar
2026-05-05 17:46       ` Harsh Prateek Bora
2026-05-09 15:00       ` Aditya Gupta
2026-03-05  6:09     ` [PATCH v4 7/9] pnv/phb4: Set link speed and width in the DLP training control register Saif Abrar
2026-05-09 15:02       ` Aditya Gupta
2026-03-05  6:09     ` [PATCH v4 8/9] pnv/phb4: Implement IODA PCT table Saif Abrar
2026-05-09 15:03       ` Aditya Gupta
2026-05-11  7:24       ` Jishnu Warrier
2026-03-05  6:09     ` [PATCH v4 9/9] pnv/phb4: Mask off LSI Source-ID based on number of interrupts Saif Abrar
2026-05-09 15:04       ` Aditya Gupta
2026-05-11  8:46       ` Jishnu Warrier
2026-05-08 16:00     ` [PATCH v4 0/9] pnv/phb4: Update PHB4 to the latest PHB5 spec Aditya Gupta
2026-05-19  5:52     ` Saif Abrar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260220112141-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=clg@kaod.org \
    --cc=cohuck@redhat.com \
    --cc=danielhb413@gmail.com \
    --cc=fbarrat@linux.ibm.com \
    --cc=lvivier@redhat.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=npiggin@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=saif.abrar@linux.vnet.ibm.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.