Skip to contentSkip to conversation

PCI: Document PCIE BUS MPS parameters

PATCH Superseded Yijing Wang 2 participants 4 messages Jan 25, 2013 – Jan 29, 2013

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 PCI: Document PCIE BUS MPS parameters

v0->v1: Update MPS parameters as non-arch and add MRRS
description into pcie_bus_perf parameter suggested by Andrew Murray.
v1->v2: Update some semantic problems and add MPS and MRRS
explanation suggested by Joe Lawrence and Randy Dunlap.
v2->v3: Update some semantic problems and the description
of pcie_bus_safe and pcie_bus_peer2peer suggested by Bjorn Helgaas.

Document PCIE BUS MPS parameters pcie_bus_tune_off, pcie_bus_safe, pcie_bus_peer2peer, pcie_bus_perf into Documentation/kernel-parameters.txt. These parameters were introduced by Jon Mason <[email protected]> at commit 5f39e6705 and commit b03e7495a8.

---
 Documentation/kernel-parameters.txt |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
Documentation/kernel-parameters.txt +13 -0
index 363e348..2997df2 100644
@@ -2227,6 +2227,19 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
 				This sorting is done to get a device
 				order compatible with older (<= 2.4) kernels.
 		nobfsort	Don't sort PCI devices into breadth-first order.
+		pcie_bus_tune_off	Disable PCIe MPS (Max Payload Size)
+				tuning and use the BIOS-configured MPS defaults.
+		pcie_bus_safe	Use the smallest supported MPS of any device
+				below a root complex.
+		pcie_bus_perf	Configure device MPS to the largest
+				allowable MPS based on its parent bus. Also set
+				MRRS (Max Read Request Size) to the largest supported
+				value (no larger than the MPS that the device or bus
+				can support) for best performance.
+		pcie_bus_peer2peer	Set every device's MPS to 128B, which
+				every device is guaranteed to support. This
+				configuration allows peer-to-peer DMA between any pair
+				of devices possibly at the cost of reduced performance.
 		cbiosize=nn[KMG]	The fixed amount of bus space which is
 				reserved for the CardBus bridge's IO window.
 				The default value is 256 bytes.
Signature · 1 line
1.7.1
#1 lore raw
Quoted 24 lines · Yijing Wang

v0->v1: Update MPS parameters as non-arch and add MRRS
description into pcie_bus_perf parameter suggested by Andrew Murray.
v1->v2: Update some semantic problems and add MPS and MRRS
explanation suggested by Joe Lawrence and Randy Dunlap.
v2->v3: Update some semantic problems and the description
of pcie_bus_safe and pcie_bus_peer2peer suggested by Bjorn Helgaas.

Document PCIE BUS MPS parameters pcie_bus_tune_off, pcie_bus_safe, pcie_bus_peer2peer, pcie_bus_perf into Documentation/kernel-parameters.txt. These parameters were introduced by Jon Mason <[email protected]> at commit 5f39e6705 and commit b03e7495a8.

---
 Documentation/kernel-parameters.txt |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
Documentation/kernel-parameters.txt +0 -0
index 363e348..2997df2 100644

Documentation/kernel-parameters.txt bytes respectively. Such letter suffixes can also be entirely omitted. · line 2233

Quoted 7 lines
Documentation/kernel-parameters.txt +4 -0
@@ -2227,6 +2227,19 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
                                This sorting is done to get a device
                                order compatible with older (<= 2.4) kernels.
                nobfsort        Don't sort PCI devices into breadth-first order.
+               pcie_bus_tune_off       Disable PCIe MPS (Max Payload Size)
+                               tuning and use the BIOS-configured MPS defaults.
+               pcie_bus_safe   Use the smallest supported MPS of any device
+                               below a root complex.

This isn't correct. It should be something like "The largest MPS common to all devices below the root complex".

Quoted 16 lines
Documentation/kernel-parameters.txt +9 -1
+               pcie_bus_perf   Configure device MPS to the largest
+                               allowable MPS based on its parent bus. Also set
+                               MRRS (Max Read Request Size) to the largest supported
+                               value (no larger than the MPS that the device or bus
+                               can support) for best performance.
+               pcie_bus_peer2peer      Set every device's MPS to 128B, which
+                               every device is guaranteed to support. This
+                               configuration allows peer-to-peer DMA between any pair
+                               of devices possibly at the cost of reduced performance.
                cbiosize=nn[KMG]        The fixed amount of bus space which is
                                reserved for the CardBus bridge's IO window.
                                The default value is 256 bytes.
--

1.7.1

#2 lore raw
Quoted 20 lines · Jon Mason
Quoted 19 lines · Yijing Wang

v0->v1: Update MPS parameters as non-arch and add MRRS
description into pcie_bus_perf parameter suggested by Andrew Murray.
v1->v2: Update some semantic problems and add MPS and MRRS
explanation suggested by Joe Lawrence and Randy Dunlap.
v2->v3: Update some semantic problems and the description
of pcie_bus_safe and pcie_bus_peer2peer suggested by Bjorn Helgaas.

Document PCIE BUS MPS parameters pcie_bus_tune_off, pcie_bus_safe, pcie_bus_peer2peer, pcie_bus_perf into Documentation/kernel-parameters.txt. These parameters were introduced by Jon Mason <[email protected]> at commit 5f39e6705 and commit b03e7495a8.

---
 Documentation/kernel-parameters.txt |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
Quoted 15 lines

Documentation/kernel-parameters.txt bytes respectively. Such letter suffixes can also be entirely omitted. · line 2233

Quoted 12 lines
Documentation/kernel-parameters.txt +4 -0
index 363e348..2997df2 100644
@@ -2227,6 +2227,19 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
                                This sorting is done to get a device
                                order compatible with older (<= 2.4) kernels.
                nobfsort        Don't sort PCI devices into breadth-first order.
+               pcie_bus_tune_off       Disable PCIe MPS (Max Payload Size)
+                               tuning and use the BIOS-configured MPS defaults.
+               pcie_bus_safe   Use the smallest supported MPS of any device
+                               below a root complex.

This isn't correct. It should be something like "The largest MPS common to all devices below the root complex".

Hi Jon,
Thanks for your review and comment!
What about "Set every device's MPS to the largest MPSS (Max Payload Size Support) common to all devices below the root complex" ?

Quoted 20 lines
Quoted 14 lines
Documentation/kernel-parameters.txt +9 -1
+               pcie_bus_perf   Configure device MPS to the largest
+                               allowable MPS based on its parent bus. Also set
+                               MRRS (Max Read Request Size) to the largest supported
+                               value (no larger than the MPS that the device or bus
+                               can support) for best performance.
+               pcie_bus_peer2peer      Set every device's MPS to 128B, which
+                               every device is guaranteed to support. This
+                               configuration allows peer-to-peer DMA between any pair
+                               of devices possibly at the cost of reduced performance.
                cbiosize=nn[KMG]        The fixed amount of bus space which is
                                reserved for the CardBus bridge's IO window.
                                The default value is 256 bytes.
--
Quoted 3 lines

1.7.1

.

Signature · 2 lines
Thanks!
Yijing
#3 lore raw
Quoted 37 lines · Yijing Wang
Quoted 20 lines · Jon Mason
Quoted 19 lines · Yijing Wang

v0->v1: Update MPS parameters as non-arch and add MRRS
description into pcie_bus_perf parameter suggested by Andrew Murray.
v1->v2: Update some semantic problems and add MPS and MRRS
explanation suggested by Joe Lawrence and Randy Dunlap.
v2->v3: Update some semantic problems and the description
of pcie_bus_safe and pcie_bus_peer2peer suggested by Bjorn Helgaas.

Document PCIE BUS MPS parameters pcie_bus_tune_off, pcie_bus_safe, pcie_bus_peer2peer, pcie_bus_perf into Documentation/kernel-parameters.txt. These parameters were introduced by Jon Mason <[email protected]> at commit 5f39e6705 and commit b03e7495a8.

---
 Documentation/kernel-parameters.txt |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
Quoted 15 lines

Documentation/kernel-parameters.txt bytes respectively. Such letter suffixes can also be entirely omitted. · line 2233

Quoted 12 lines
Documentation/kernel-parameters.txt +4 -0
index 363e348..2997df2 100644
@@ -2227,6 +2227,19 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
                                This sorting is done to get a device
                                order compatible with older (<= 2.4) kernels.
                nobfsort        Don't sort PCI devices into breadth-first order.
+               pcie_bus_tune_off       Disable PCIe MPS (Max Payload Size)
+                               tuning and use the BIOS-configured MPS defaults.
+               pcie_bus_safe   Use the smallest supported MPS of any device
+                               below a root complex.

This isn't correct. It should be something like "The largest MPS common to all devices below the root complex".

Quoted 4 lines

Hi Jon,
Thanks for your review and comment!
What about "Set every device's MPS to the largest MPSS (Max Payload Size Support) common to all devices below the root complex" ?

Sounds great! Thanks so much for documenting this.

Quoted 27 lines
Quoted 19 lines
Quoted 15 lines
Documentation/kernel-parameters.txt +9 -1
+               pcie_bus_perf   Configure device MPS to the largest
+                               allowable MPS based on its parent bus. Also set
+                               MRRS (Max Read Request Size) to the largest supported
+                               value (no larger than the MPS that the device or bus
+                               can support) for best performance.
+               pcie_bus_peer2peer      Set every device's MPS to 128B, which
+                               every device is guaranteed to support. This
+                               configuration allows peer-to-peer DMA between any pair
+                               of devices possibly at the cost of reduced performance.
                cbiosize=nn[KMG]        The fixed amount of bus space which is
                                reserved for the CardBus bridge's IO window.
                                The default value is 256 bytes.
--
Quoted 3 lines

1.7.1

Quoted 2 lines

.

--
Thanks!
Yijing