Skip to contentSkip to conversation

schemas: pci: bridge: Document PCI L0s & L1 entry delay and N_FTS

PATCH Applied Krishna Chaitanya Chundru 2 participants 4 messages Feb 16, 2025 – Feb 19, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 94b648f..a9309af 100644
@@ -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
#2 lore raw

PATCH v3 2/2 schemas: pci: bridge: Document PCIe N_FTS

In reply to Krishna Chaitanya Chundru

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.

---
 dtschema/schemas/pci/pci-bus-common.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)
dtschema/schemas/pci/pci-bus-common.yaml +10 -0
index a9309af..ca97a00 100644
@@ -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
Applied
#3 lore raw
In reply to Krishna Chaitanya Chundru
Quoted 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_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)

Quoted 6 lines

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(+)

Applied, thanks.

Rob