schemas: pci: bridge: Document PCI L0s & L1 entry delay and N_FTS
Subsystems (2)
v3 cover schemas: pci: bridge: Document PCI L0s & L1 entry delay and N_FTS
Some controllers and endpoints provide provision to program the entry delays of L0s & L1 which will allow the link to enter L0s & L1 more aggressively to save power.
Per PCIe r6.0, sec 4.2.5.1, during Link training, a PCIe component captures the N_FTS value it receives. Per 4.2.5.6, when transitioning the Link from L0s to L0, it must transmit N_FTS Fast Training Sequences to enable the receiver to obtain bit and Symbol lock.
Components may have device-specific ways to configure N_FTS values to advertise during Link training. Define an n-fts array with an entry for each supported data rate.
---
changes in v3:-
- Update the description to specfify about entries of the array (rob) changes in v2:-
- Split N_FTS & L1 and L0s entry delay in two patches (bjorn)
- Update the commit text, description (bjorn)
Krishna Chaitanya Chundru (2):
schemas: pci: bridge: Document PCI L0s & L1 entry delay
schemas: pci: bridge: Document PCIe N_FTS
dtschema/schemas/pci/pci-bus-common.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Signature · 1 line
2.34.1
PATCH v3 1/2 schemas: pci: bridge: Document PCI L0s & L1 entry delay
Some controllers and endpoints provide provision to program the entry delays of L0s & L1 which will allow the link to enter L0s & L1 more aggressively to save power.
These values needs to be programmed before link training.
--- dtschema/schemas/pci/pci-bus-common.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
dtschema/schemas/pci/pci-bus-common.yaml +6 -0
@@ -150,6 +150,12 @@ properties: description: Disables ASPM L0s capability type: boolean + aspm-l0s-entry-delay-ns: + description: ASPM L0s entry delay + + aspm-l1-entry-delay-ns: + description: ASPM L1 entry delay + vpcie12v-supply: description: 12v regulator phandle for the slot
Signature · 1 line
2.34.1
PATCH v3 2/2 schemas: pci: bridge: Document PCIe N_FTS
In reply to Krishna Chaitanya ChundruPer PCIe r6.0, sec 4.2.5.1, during Link training, a PCIe component captures the N_FTS value it receives. Per 4.2.5.6, when transitioning the Link from L0s to L0, it must transmit N_FTS Fast Training Sequences to enable the receiver to obtain bit and Symbol lock.
Components may have device-specific ways to configure N_FTS values to advertise during Link training. Define an n_fts array with an entry for each supported data rate.
--- dtschema/schemas/pci/pci-bus-common.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)
dtschema/schemas/pci/pci-bus-common.yaml +10 -0
@@ -128,6 +128,16 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 enum: [ 1, 2, 4, 8, 16, 32 ] + n-fts: + description: + The number of Fast Training Sequences (N_FTS) required by the + Receiver (this component) when transitioning the Link from L0s + to L0; advertised during initial Link training. Each entry in + the array specifies a PCIe data rate + $ref: /schemas/types.yaml#/definitions/uint8-array + minItems: 1 + maxItems: 5 + reset-gpios: description: GPIO controlled connection to PERST# signal maxItems: 1
Signature · 1 line
2.34.1
Rob Herring
AppliedQuoted 22 lines · Krishna Chaitanya Chundru
Some controllers and endpoints provide provision to program the entry delays of L0s & L1 which will allow the link to enter L0s & L1 more aggressively to save power.
Per PCIe r6.0, sec 4.2.5.1, during Link training, a PCIe component captures the
N_FTSvalue it receives. Per 4.2.5.6, when transitioning the Link from L0s to L0, it must transmitN_FTSFast Training Sequences to enable the receiver to obtain bit and Symbol lock.Components may have device-specific ways to configure
N_FTSvalues to advertise during Link training. Define an n-fts array with an entry for each supported data rate.Signed-off-by Krishna Chaitanya Chundru <[email protected]>---
changes in v3:-
- Update the description to specfify about entries of the array (rob) changes in v2:-
- SplitN_FTS& L1 and L0s entry delay in two patches (bjorn)
- Update the commit text, description (bjorn)
Quoted 6 lines
Krishna Chaitanya Chundru (2):
schemas: pci: bridge: Document PCI L0s & L1 entry delay
schemas: pci: bridge: Document PCIeN_FTSdtschema/schemas/pci/pci-bus-common.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Applied, thanks.
Rob