Re: [PATCH v3 2/3] PCI: sandbox: Add PCI bridge emulation

Simon Glass
2026-01-13T20:03:40Z

On Mon, 12 Jan 2026 at 18:21, Sean Anderson <sean.anderson@linux.dev> wrote:
>
> Add a PCI bridge emulation device. Although real bridges need to be
> configured in order to forward requests, this happens automatically for
> now (see arch/sandbox/lib/pci_io.c). So just record the window registers
> and check them in a test to make sure pci_auto is sane.
>
> As each bridge consume at least 4k I/O registers, increase the root
> port's I/O space so we have some left for other devices.
>
> Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
> ---
>
> Changes in v3:
> - New
>
> arch/sandbox/dts/test.dts | 35 +++++-
> arch/sandbox/include/asm/test.h | 1 +
> drivers/pci/Makefile | 2 +-
> drivers/pci/pci_sandbox_bridge.c | 192 +++++++++++++++++++++++++++++++
> test/dm/pci.c | 142 +++++++++++++++++++++++
> 5 files changed, 370 insertions(+), 2 deletions(-)
> create mode 100644 drivers/pci/pci_sandbox_bridge.c

Reviewed-by: Simon Glass <simon.glass@canonical.com>