Skip to contentSkip to conversation

PCI: Document PCIE BUS MPS parameters

PATCH Superseded Yijing Wang 2 participants 5 messages Jan 23, 2013 – Jan 24, 2013

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: Document PCIE BUS MPS parameters

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. Document these into kernel-parameters.txt can help users to understand and use the parameters.

---
 Documentation/kernel-parameters.txt |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
Documentation/kernel-parameters.txt +15 -0
index 363e348..1fb269b 100644
@@ -2227,6 +2227,21 @@ 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 PCI-E MPS turning and using
+				the BIOS configured MPS defaults.
+		pcie_bus_safe	Use the smallest common denominator MPS
+				of the entire tree below a root complex for every device
+				on that fabric. Can avoid inconsistent mps problem caused
+				by hotplug.
+		pcie_bus_perf	Configure pcie device MPS to the largest allowable
+				MPS based on its parent bus. And also set MRRS to the
+				largest supported value but cannot be configured larger
+				than the MPS the device or the bus can support for Max
+				performance.
+		pcie_bus_peer2peer	Make the system wide MPS the smallest
+				possible value (128B).This configuration could prevent it
+				from working by having the MPS on one root port different
+				than the MPS on another.
 		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
reviewer
#1 lore raw
Quoted 16 lines · Yijing Wang

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. Document these into kernel-parameters.txt can help users to understand and use the parameters.

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

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

Quoted 5 lines
Documentation/kernel-parameters.txt +2 -0
@@ -2227,6 +2227,21 @@ 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 PCI-E MPS turning and using
+				the BIOS configured MPS defaults.

BIOS-configured

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

Quoted 3 lines
Documentation/kernel-parameters.txt +3 -0
+		pcie_bus_safe	Use the smallest common denominator MPS
+				of the entire tree below a root complex for every device
+				on that fabric. Can avoid inconsistent mps problem caused

s/mps/MPS/
i.e., use "MPS" consistently.

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

Quoted 3 lines
Documentation/kernel-parameters.txt +3 -0
+				by hotplug.
+		pcie_bus_perf	Configure pcie device MPS to the largest allowable
+				MPS based on its parent bus. And also set MRRS to the

"And also" is redundant. Just say Also.

What is (are) MRRS?

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

Quoted 4 lines
Documentation/kernel-parameters.txt +4 -0
+				largest supported value but cannot be configured larger
+				than the MPS the device or the bus can support for Max
+				performance.
+		pcie_bus_peer2peer	Make the system wide MPS the smallest

system-wide

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

Quoted 1 line
Documentation/kernel-parameters.txt +1 -0
+				possible value (128B).This configuration could prevent it

^ Space before "This"

Quoted 6 lines
Documentation/kernel-parameters.txt +2 -0
+				from working by having the MPS on one root port different
+				than the MPS on another.
 		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
~Randy
#2 lore raw

Hi Randy,
Thanks for your review and comments! please refer to inlined comments below.

Quoted 12 lines · Randy Dunlap
Quoted 11 lines · Yijing Wang

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. Document these into kernel-parameters.txt can help users to understand and use the parameters.

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

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

Quoted 10 lines
Documentation/kernel-parameters.txt +2 -0
index 363e348..1fb269b 100644
@@ -2227,6 +2227,21 @@ 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 PCI-E MPS turning and using
+				the BIOS configured MPS defaults.

BIOS-configured

Will update it.

Quoted 7 lines

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

Quoted 4 lines
Documentation/kernel-parameters.txt +3 -0
+		pcie_bus_safe	Use the smallest common denominator MPS
+				of the entire tree below a root complex for every device
+				on that fabric. Can avoid inconsistent mps problem caused

s/mps/MPS/
i.e., use "MPS" consistently.

Will use mps consistently.

Quoted 6 lines

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

Quoted 4 lines
Documentation/kernel-parameters.txt +3 -0
+				by hotplug.
+		pcie_bus_perf	Configure pcie device MPS to the largest allowable
+				MPS based on its parent bus. And also set MRRS to the

"And also" is redundant. Just say Also.

Ok.

Quoted 2 lines

What is (are) MRRS?

MRRS is "Max Read Request Size" and MPS is "Max Payload Size". Need use "Max Read Request Size" instead of MRRS ?

Quoted 7 lines

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

Quoted 5 lines
Documentation/kernel-parameters.txt +4 -0
+				largest supported value but cannot be configured larger
+				than the MPS the device or the bus can support for Max
+				performance.
+		pcie_bus_peer2peer	Make the system wide MPS the smallest

system-wide

Will update it.

Quoted 5 lines

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

Quoted 2 lines
Documentation/kernel-parameters.txt +1 -0
+				possible value (128B).This configuration could prevent it

^ Space before "This"

Thanks for reminder.

Quoted 8 lines
Quoted 6 lines
Documentation/kernel-parameters.txt +2 -0
+				from working by having the MPS on one root port different
+				than the MPS on another.
 		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 · 2 lines
Thanks!
Yijing
reviewer
#3 lore raw
Quoted 11 lines · Yijing Wang

Hi Randy,
Thanks for your review and comments! please refer to inlined comments below.

Quoted 4 lines · Randy Dunlap

On 01/23/13 04:28, Yijing Wang wrote:

What is (are) MRRS?

MRRS is "Max Read Request Size" and MPS is "Max Payload Size". Need use "Max Read Request Size" instead of MRRS ?

Where is MRRS documented?

I would probably do it like so:

Also set MRRS (Max Read Request Size) to the ....

Signature · 1 line
~Randy
#4 lore raw
Quoted 8 lines · Randy Dunlap
Quoted 7 lines · Yijing Wang

Hi Randy,
Thanks for your review and comments! please refer to inlined comments below.

Quoted 3 lines · Randy Dunlap

On 01/23/13 04:28, Yijing Wang wrote:

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

What is (are) MRRS?

MRRS is "Max Read Request Size" and MPS is "Max Payload Size". Need use "Max Read Request Size" instead of MRRS ?

Where is MRRS documented?

The description of MRRS can be found at PCIe Spec 2.0/3.0 7.8.4 Device Control Register.

Quoted 4 lines

I would probably do it like so:

Also set MRRS (Max Read Request Size) to the ....

Hmm, I will explain MPS and MRRS when they appear first time like,

pcie_bus_tune_off Disable PCIe MPS (Max Payload Size) turning and using
the BIOS-configured MPS defaults.

pcie_bus_perf ......Also set MRRS (Max Read Request Size) to the......

Thanks!
Yijing

Quoted 1 line
Signature · 2 lines
Thanks!
Yijing