Skip to contentSkip to conversation

hw/arm/sbsa-ref: add XHCI controller on PCIe

PATCH In review Yuquan Wang 2 participants 3 messages Jun 1, 2023

lore
Share & tools
lore
#0 lore raw

v2 cover hw/arm/sbsa-ref: add XHCI controller on PCIe

Please review the change.
- sbsa-ref: Add an XHCI on PCIe bus to provide an availiable usb controller.

Yuquan Wang (1):
hw/arm/sbsa-ref: add XHCI controller on PCIe

 hw/arm/sbsa-ref.c | 2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/1 hw/arm/sbsa-ref: add XHCI controller on PCIe

The current sbsa-ref cannot use EHCI controller which is only able to do 32-bit DMA, since sbsa-ref doesn't have RAM below 4GB. Hence, this add an XHCI on PCIe to provide a usb controller with 64-bit DMA capablity.

---
 hw/arm/sbsa-ref.c | 2 ++
 1 file changed, 2 insertions(+)
hw/arm/sbsa-ref.c +2 -0
index de21200ff9..a33cd80d69 100644
@@ -668,6 +668,8 @@ static void create_pcie(SBSAMachineState *sms)
 
     pci_create_simple(pci->bus, -1, "bochs-display");
 
+    pci_create_simple(pci->bus, -1, "qemu-xhci");
+
     create_smmu(sms, pci->bus);
 }
 
Signature · 1 line
2.34.1
#2 lore raw
Quoted 15 lines · Yuquan Wang

The current sbsa-ref cannot use EHCI controller which is only able to do 32-bit DMA, since sbsa-ref doesn't have RAM below 4GB. Hence, this add an XHCI on PCIe to provide a usb controller with 64-bit DMA capablity.

---
  hw/arm/sbsa-ref.c | 2 ++
  1 file changed, 2 insertions(+)
hw/arm/sbsa-ref.c +0 -0
index de21200ff9..a33cd80d69 100644

hw/arm/sbsa-ref.c static void create_pcie(SBSAMachineState *sms) · line 671

Quoted 4 lines
hw/arm/sbsa-ref.c +1 -0
@@ -668,6 +668,8 @@ static void create_pcie(SBSAMachineState *sms)
 
      pci_create_simple(pci->bus, -1, "bochs-display");
 
+    pci_create_simple(pci->bus, -1, "qemu-xhci");

Better to use TYPE_QEMU_XHCI.
Need to remove the EHCI controler.

r~