qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] pci_expander_brdige:acpi:Support pxb-pcie for ARM
@ 2020-02-25  1:50 Yubo Miao
  2020-02-25  1:50 ` [PATCH v4 1/3] acpi:Extract two APIs from acpi_dsdt_add_pci Yubo Miao
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Yubo Miao @ 2020-02-25  1:50 UTC (permalink / raw)
  To: peter.maydell, shannon.zhaosl
  Cc: berrange, mst, qemu-devel, xiexiangyou, miaoyubo, imammedo

From: miaoyubo <miaoyubo@huawei.com>

Currently pxb-pcie is not supported by arm, the reason for it is
pxb-pcie is not described in DSDT table and only one main host bridge
is described in acpi tables, which means it is not impossible to
present different io numas for different devices, especially
host-passthrough devices.

This series of patches make arm to support PXB-PCIE.

Users can configure pxb-pcie with certain numa, Example command
is:

   -device pxb-pcie,id=pci.7,bus_nr=128,numa_node=0,bus=pcie.0,addr=0x9

Since the bus of pxb-pcie is root bus, devices could not be plugged
into pxb-pcie directly,pcie-root-port or pci-bridge should be defined
and plugged on pxb-pcie, then the device could be plugged onto the
pcie-root-port or pci-bridge.

With the patches,io numa could be presented to the guest by define a
pxb-pcie with the numa and plug the device on it.

miaoyubo (3):
  acpi:Extract two APIs from acpi_dsdt_add_pci
  acpi:pci-expender-bus: Add pxb support for arm
  ACPI/unit-test: Add a new test for pxb-pcie for arm

 hw/arm/virt-acpi-build.c                    | 232 +++++++++++++++-----
 hw/arm/virt.c                               |   3 +
 include/hw/arm/virt.h                       |   7 +
 tests/data/acpi/virt/DSDT.pxb               | Bin 0 -> 8048 bytes
 tests/qtest/bios-tables-test-allowed-diff.h |   1 +
 tests/qtest/bios-tables-test.c              |  54 ++++-
 6 files changed, 233 insertions(+), 64 deletions(-)
 create mode 100644 tests/data/acpi/virt/DSDT.pxb

-- 
2.19.1




^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-02-26 10:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-25  1:50 [PATCH v4 0/3] pci_expander_brdige:acpi:Support pxb-pcie for ARM Yubo Miao
2020-02-25  1:50 ` [PATCH v4 1/3] acpi:Extract two APIs from acpi_dsdt_add_pci Yubo Miao
2020-02-25  1:50 ` [PATCH v4 2/3] acpi:pci-expender-bus: Add pxb support for arm Yubo Miao
2020-02-25  9:47   ` Philippe Mathieu-Daudé
2020-02-25 11:20     ` Michael S. Tsirkin
2020-02-25 12:12     ` miaoyubo
2020-02-25 12:27       ` Michael S. Tsirkin
2020-02-25 12:44         ` miaoyubo
2020-02-25 13:11           ` Michael S. Tsirkin
2020-02-26 10:42             ` miaoyubo
2020-02-25 13:14   ` Michael S. Tsirkin
2020-02-26 10:56     ` miaoyubo
2020-02-25  1:50 ` [PATCH v4 3/3] ACPI/unit-test: Add a new test for pxb-pcie " Yubo Miao
2020-02-25 11:24   ` Michael S. Tsirkin
2020-02-25 12:25     ` miaoyubo
2020-02-25  2:23 ` [PATCH v4 0/3] pci_expander_brdige:acpi:Support pxb-pcie for ARM no-reply

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).