Skip to contentSkip to conversation

q35: Add PCIe switch to example q35 configuration

PATCH Applied Alex Williamson 3 participants 3 messages Aug 20, 2013 – Aug 21, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 q35: Add PCIe switch to example q35 configuration

---
 docs/q35-chipset.cfg |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
docs/q35-chipset.cfg +23 -0
index 1b6efc0..e4ddb7d 100644
@@ -91,6 +91,29 @@
   port = "4"
   chassis = "4"
 
+##
+# Example PCIe switch with two downstream ports
+#
+#[device "pcie-switch-upstream-port-1"]
+#  driver = "x3130-upstream"
+#  bus = "ich9-pcie-port-4"
+#  addr = "00.0"
+#
+#[device "pcie-switch-downstream-port-1-1"]
+#  driver = "xio3130-downstream"
+#  multifunction = "on"
+#  bus = "pcie-switch-upstream-port-1"
+#  addr = "00.0"
+#  port = "1"
+#  chassis = "5"
+#
+#[device "pcie-switch-downstream-port-1-2"]
+#  driver = "xio3130-downstream"
+#  multifunction = "on"
+#  bus = "pcie-switch-upstream-port-1"
+#  addr = "00.1"
+#  port = "1"
+#  chassis = "6"
 
 [device "ich9-ehci-1"]
   driver = "ich9-usb-ehci1"
#1 lore raw
Quoted 29 lines · Alex Williamson
---
 docs/q35-chipset.cfg |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
docs/q35-chipset.cfg +16 -0
index 1b6efc0..e4ddb7d 100644
@@ -91,6 +91,29 @@
   port = "4"
   chassis = "4"
 
+##
+# Example PCIe switch with two downstream ports
+#
+#[device "pcie-switch-upstream-port-1"]
+#  driver = "x3130-upstream"
+#  bus = "ich9-pcie-port-4"
+#  addr = "00.0"
+#
+#[device "pcie-switch-downstream-port-1-1"]
+#  driver = "xio3130-downstream"
+#  multifunction = "on"
+#  bus = "pcie-switch-upstream-port-1"
+#  addr = "00.0"
+#  port = "1"
+#  chassis = "5"
+#

docs/q35-chipset.cfg line 119

Quoted 10 lines
docs/q35-chipset.cfg +7 -0
+#[device "pcie-switch-downstream-port-1-2"]
+#  driver = "xio3130-downstream"
+#  multifunction = "on"
+#  bus = "pcie-switch-upstream-port-1"
+#  addr = "00.1"
+#  port = "1"
+#  chassis = "6"
 
 [device "ich9-ehci-1"]
   driver = "ich9-usb-ehci1"

Yes, please!

I decommented the three device definitions, and the result looks fine in info qtree.

A brief hint at why you would want a PCIe switch in the comment would perhaps be nice.

#2 lore raw
In reply to Alex Williamson
Quoted 1 line · Alex Williamson

Thanks, applied.

Quoted 38 lines
---
 docs/q35-chipset.cfg |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
docs/q35-chipset.cfg +23 -0
index 1b6efc0..e4ddb7d 100644
@@ -91,6 +91,29 @@
   port = "4"
   chassis = "4"
 
+##
+# Example PCIe switch with two downstream ports
+#
+#[device "pcie-switch-upstream-port-1"]
+#  driver = "x3130-upstream"
+#  bus = "ich9-pcie-port-4"
+#  addr = "00.0"
+#
+#[device "pcie-switch-downstream-port-1-1"]
+#  driver = "xio3130-downstream"
+#  multifunction = "on"
+#  bus = "pcie-switch-upstream-port-1"
+#  addr = "00.0"
+#  port = "1"
+#  chassis = "5"
+#
+#[device "pcie-switch-downstream-port-1-2"]
+#  driver = "xio3130-downstream"
+#  multifunction = "on"
+#  bus = "pcie-switch-upstream-port-1"
+#  addr = "00.1"
+#  port = "1"
+#  chassis = "6"
 
 [device "ich9-ehci-1"]
   driver = "ich9-usb-ehci1"