* [PATCH 1/2] PCI: of: update max-link-speed for gen5 links @ 2023-05-31 9:21 Ben Dooks 2023-05-31 9:21 ` [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations Ben Dooks 0 siblings, 1 reply; 5+ messages in thread From: Ben Dooks @ 2023-05-31 9:21 UTC (permalink / raw) To: devicetree, linux-pci, bhelgaas Cc: Conor Dooley, Rob Herring, Sudip Mukherjee, Jude Onyenegecha, Greentime Hu, Jeegar Lakhani, Ben Dooks, Ben Dooks From: Ben Dooks <ben.dooks@sifive.com> Update max-link-speed to be up to 6, for newer systems that could have up to gen6 pci describe in device-tree. Signed-off-by: Ben Dooks <ben.dooks@sifive.com> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> --- drivers/pci/of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/of.c b/drivers/pci/of.c index 2c25f4fa0225..da0cc01e923e 100644 --- a/drivers/pci/of.c +++ b/drivers/pci/of.c @@ -639,7 +639,7 @@ int of_pci_get_max_link_speed(struct device_node *node) u32 max_link_speed; if (of_property_read_u32(node, "max-link-speed", &max_link_speed) || - max_link_speed == 0 || max_link_speed > 4) + max_link_speed == 0 || max_link_speed > 6) return -EINVAL; return max_link_speed; -- 2.39.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations 2023-05-31 9:21 [PATCH 1/2] PCI: of: update max-link-speed for gen5 links Ben Dooks @ 2023-05-31 9:21 ` Ben Dooks 2023-06-06 19:36 ` Conor Dooley 2023-06-07 21:17 ` Rob Herring 0 siblings, 2 replies; 5+ messages in thread From: Ben Dooks @ 2023-05-31 9:21 UTC (permalink / raw) To: devicetree, linux-pci, bhelgaas Cc: Conor Dooley, Rob Herring, Sudip Mukherjee, Jude Onyenegecha, Greentime Hu, Jeegar Lakhani, Ben Dooks, Krzysztof Kozlowski Add updated max-link-speed values for newer generation PCIe link speeds. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: devicetree@vger.kernel.org --- Documentation/devicetree/bindings/pci/pci.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentation/devicetree/bindings/pci/pci.txt index 6a8f2874a24d..56391e193fc4 100644 --- a/Documentation/devicetree/bindings/pci/pci.txt +++ b/Documentation/devicetree/bindings/pci/pci.txt @@ -22,8 +22,9 @@ driver implementation may support the following properties: If present this property specifies PCI gen for link capability. Host drivers could add this as a strategy to avoid unnecessary operation for unsupported link speed, for instance, trying to do training for - unsupported link speed, etc. Must be '4' for gen4, '3' for gen3, '2' - for gen2, and '1' for gen1. Any other values are invalid. + unsupported link speed, etc. Must be '6' for gen6, '5' for gen5, + '4' for gen4, '3' for gen3, '2' for gen2, and '1' for gen1. + Any other values are invalid. - reset-gpios: If present this property specifies PERST# GPIO. Host drivers can parse the GPIO and apply fundamental reset to endpoints. -- 2.39.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations 2023-05-31 9:21 ` [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations Ben Dooks @ 2023-06-06 19:36 ` Conor Dooley 2023-06-07 21:17 ` Rob Herring 1 sibling, 0 replies; 5+ messages in thread From: Conor Dooley @ 2023-06-06 19:36 UTC (permalink / raw) To: Ben Dooks Cc: devicetree, linux-pci, bhelgaas, Conor Dooley, Rob Herring, Sudip Mukherjee, Jude Onyenegecha, Greentime Hu, Jeegar Lakhani, Krzysztof Kozlowski [-- Attachment #1: Type: text/plain, Size: 1562 bytes --] On Wed, May 31, 2023 at 10:21:21AM +0100, Ben Dooks wrote: > Add updated max-link-speed values for newer generation PCIe link > speeds. Acked-by: Conor Dooley <conor.dooley@microchip.com> Cheers, Conor. > > Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> > Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> > Cc: devicetree@vger.kernel.org > --- > Documentation/devicetree/bindings/pci/pci.txt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentation/devicetree/bindings/pci/pci.txt > index 6a8f2874a24d..56391e193fc4 100644 > --- a/Documentation/devicetree/bindings/pci/pci.txt > +++ b/Documentation/devicetree/bindings/pci/pci.txt > @@ -22,8 +22,9 @@ driver implementation may support the following properties: > If present this property specifies PCI gen for link capability. Host > drivers could add this as a strategy to avoid unnecessary operation for > unsupported link speed, for instance, trying to do training for > - unsupported link speed, etc. Must be '4' for gen4, '3' for gen3, '2' > - for gen2, and '1' for gen1. Any other values are invalid. > + unsupported link speed, etc. Must be '6' for gen6, '5' for gen5, > + '4' for gen4, '3' for gen3, '2' for gen2, and '1' for gen1. > + Any other values are invalid. > - reset-gpios: > If present this property specifies PERST# GPIO. Host drivers can parse the > GPIO and apply fundamental reset to endpoints. > -- > 2.39.2 > [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations 2023-05-31 9:21 ` [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations Ben Dooks 2023-06-06 19:36 ` Conor Dooley @ 2023-06-07 21:17 ` Rob Herring 1 sibling, 0 replies; 5+ messages in thread From: Rob Herring @ 2023-06-07 21:17 UTC (permalink / raw) To: Ben Dooks Cc: devicetree, linux-pci, bhelgaas, Conor Dooley, Sudip Mukherjee, Jude Onyenegecha, Greentime Hu, Jeegar Lakhani, Krzysztof Kozlowski On Wed, May 31, 2023 at 10:21:21AM +0100, Ben Dooks wrote: > Add updated max-link-speed values for newer generation PCIe link > speeds. > > Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> > Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> > Cc: devicetree@vger.kernel.org > --- > Documentation/devicetree/bindings/pci/pci.txt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentation/devicetree/bindings/pci/pci.txt > index 6a8f2874a24d..56391e193fc4 100644 > --- a/Documentation/devicetree/bindings/pci/pci.txt > +++ b/Documentation/devicetree/bindings/pci/pci.txt > @@ -22,8 +22,9 @@ driver implementation may support the following properties: > If present this property specifies PCI gen for link capability. Host > drivers could add this as a strategy to avoid unnecessary operation for > unsupported link speed, for instance, trying to do training for > - unsupported link speed, etc. Must be '4' for gen4, '3' for gen3, '2' > - for gen2, and '1' for gen1. Any other values are invalid. > + unsupported link speed, etc. Must be '6' for gen6, '5' for gen5, > + '4' for gen4, '3' for gen3, '2' for gen2, and '1' for gen1. > + Any other values are invalid. This file is a deadend to be removed. Please update dtschema with the new values. Rob ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <ZHeZxPRGw+X83V1k@bhelgaas>]
* Re: [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations [not found] <ZHeZxPRGw+X83V1k@bhelgaas> @ 2023-06-06 12:21 ` Ben Dooks 0 siblings, 0 replies; 5+ messages in thread From: Ben Dooks @ 2023-06-06 12:21 UTC (permalink / raw) To: Bjorn Helgaas Cc: devicetree, linux-pci, bhelgaas, Conor Dooley, Rob Herring, Sudip Mukherjee, Jude Onyenegecha, Greentime Hu, Jeegar Lakhani, Krzysztof Kozlowski On 31/05/2023 20:02, Bjorn Helgaas wrote: > Possible subject: > > dt-bindings: Add gen5, gen6 max-link-speed values > > On Wed, May 31, 2023 at 10:21:21AM +0100, Ben Dooks wrote: >> Add updated max-link-speed values for newer generation PCIe link >> speeds. >> >> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> >> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> >> Cc: devicetree@vger.kernel.org >> --- >> Documentation/devicetree/bindings/pci/pci.txt | 5 +++-- >> 1 file changed, 3 insertions(+), 2 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentation/devicetree/bindings/pci/pci.txt >> index 6a8f2874a24d..56391e193fc4 100644 >> --- a/Documentation/devicetree/bindings/pci/pci.txt >> +++ b/Documentation/devicetree/bindings/pci/pci.txt >> @@ -22,8 +22,9 @@ driver implementation may support the following properties: >> If present this property specifies PCI gen for link capability. Host >> drivers could add this as a strategy to avoid unnecessary operation for >> unsupported link speed, for instance, trying to do training for >> - unsupported link speed, etc. Must be '4' for gen4, '3' for gen3, '2' >> - for gen2, and '1' for gen1. Any other values are invalid. >> + unsupported link speed, etc. Must be '6' for gen6, '5' for gen5, >> + '4' for gen4, '3' for gen3, '2' for gen2, and '1' for gen1. >> + Any other values are invalid. > > I really wish we'd used values with some connection to the actual > speed, e.g., "16" for 16 GT/s. These "gen X" values are a real hassle > to convert back to the speed. But I guess that's water under the > bridge. > > Maybe we should annotate the documentation here, though, e.g., > > '6' for gen6 (64.0 GT/s), '5' for gen5 (32.0 GT/s), ... > > Do I have that right? I don't see "gen5" etc in the specs themselves, > so this is just based on Google. > > Bjorn I checked the wikipedia, I've been working on a yet-to-be-released device that uses a gen5 phy so updating this would be useful. -- Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius https://www.codethink.co.uk/privacy.html ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-07 21:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-31 9:21 [PATCH 1/2] PCI: of: update max-link-speed for gen5 links Ben Dooks
2023-05-31 9:21 ` [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations Ben Dooks
2023-06-06 19:36 ` Conor Dooley
2023-06-07 21:17 ` Rob Herring
[not found] <ZHeZxPRGw+X83V1k@bhelgaas>
2023-06-06 12:21 ` Ben Dooks
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).