diff mbox series

arm64: dts: ti: k3-am65: restrict PCIe to Gen2 speed

Message ID 20200802165356.10285-1-nsekhar@ti.com (mailing list archive)
State New, archived
Headers show
Series arm64: dts: ti: k3-am65: restrict PCIe to Gen2 speed | expand

Commit Message

Sekhar Nori Aug. 2, 2020, 4:53 p.m. UTC
Per errata i2104 documented in AM65x device errata document (TI document
number SPRZ452E, revised June 2019), Gen3 operation is not supported for
both PCIe Root Complex and Endpoint modes of operation.

See: https://www.ti.com/lit/er/sprz452e/sprz452e.pdf

Restrict speed to Gen2 to address the errata.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Sekhar Nori Aug. 27, 2020, 4:43 a.m. UTC | #1
Hi Nishanth,

On 02/08/20 10:23 PM, Sekhar Nori wrote:
> Per errata i2104 documented in AM65x device errata document (TI document
> number SPRZ452E, revised June 2019), Gen3 operation is not supported for
> both PCIe Root Complex and Endpoint modes of operation.
> 
> See: https://www.ti.com/lit/er/sprz452e/sprz452e.pdf
> 
> Restrict speed to Gen2 to address the errata.
> 
> Signed-off-by: Sekhar Nori <nsekhar@ti.com>

Is this in your queue or should I rebase and resend?

Thanks,
Sekhar
Nishanth Menon Aug. 28, 2020, 12:43 a.m. UTC | #2
On 10:13-20200827, Sekhar Nori wrote:
> Hi Nishanth,
> 
> On 02/08/20 10:23 PM, Sekhar Nori wrote:
> > Per errata i2104 documented in AM65x device errata document (TI document
> > number SPRZ452E, revised June 2019), Gen3 operation is not supported for
> > both PCIe Root Complex and Endpoint modes of operation.
> > 
> > See: https://www.ti.com/lit/er/sprz452e/sprz452e.pdf
> > 
> > Restrict speed to Gen2 to address the errata.
> > 
> > Signed-off-by: Sekhar Nori <nsekhar@ti.com>
> 
> Is this in your queue or should I rebase and resend?

Thanks for the reminder. I have put it on my staging branch for now.
Once rc3 gets tagged with irqchip related changes, I will move this
over to next.

Now, that said, Please consider converting
Documentation/devicetree/bindings/pci/pci-keystone.txt to yaml
sometime in near future, if possible.

We might also want to spend a little more time with W=2 dtbs build and
dtbs_check to cleanup.
Sekhar Nori Aug. 28, 2020, 3:04 a.m. UTC | #3
On 28/08/20 5:54 AM, Nishanth Menon wrote:
> On 10:13-20200827, Sekhar Nori wrote:
>> Hi Nishanth,
>>
>> On 02/08/20 10:23 PM, Sekhar Nori wrote:
>>> Per errata i2104 documented in AM65x device errata document (TI document
>>> number SPRZ452E, revised June 2019), Gen3 operation is not supported for
>>> both PCIe Root Complex and Endpoint modes of operation.
>>>
>>> See: https://www.ti.com/lit/er/sprz452e/sprz452e.pdf
>>>
>>> Restrict speed to Gen2 to address the errata.
>>>
>>> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
>>
>> Is this in your queue or should I rebase and resend?
> 
> Thanks for the reminder. I have put it on my staging branch for now.
> Once rc3 gets tagged with irqchip related changes, I will move this over
> to next.

Hmm, this is errata fix and fair game for -rc cycle. Can we have this in
v5.9 itself?

> 
> Now, that said, Please consider converting
> Documentation/devicetree/bindings/pci/pci-keystone.txt to yaml sometime
> in near future, if possible.
> 
> We might also want to spend a little more time with W=2 dtbs build and
> dtbs_check to cleanup.

Sure, will add to TODO.

Thanks,
Sekhar
Nishanth Menon Aug. 28, 2020, 11:32 a.m. UTC | #4
On 08:34-20200828, Sekhar Nori wrote:
> On 28/08/20 5:54 AM, Nishanth Menon wrote:
> > On 10:13-20200827, Sekhar Nori wrote:
> >> Hi Nishanth,
> >>
> >> On 02/08/20 10:23 PM, Sekhar Nori wrote:
> >>> Per errata i2104 documented in AM65x device errata document (TI document
> >>> number SPRZ452E, revised June 2019), Gen3 operation is not supported for
> >>> both PCIe Root Complex and Endpoint modes of operation.
> >>>
> >>> See: https://www.ti.com/lit/er/sprz452e/sprz452e.pdf
> >>>
> >>> Restrict speed to Gen2 to address the errata.
> >>>
> >>> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
> >>
> >> Is this in your queue or should I rebase and resend?
> > 
> > Thanks for the reminder. I have put it on my staging branch for now.
> > Once rc3 gets tagged with irqchip related changes, I will move this over
> > to next.
> 
> Hmm, this is errata fix and fair game for -rc cycle. Can we have this in
> v5.9 itself?

We could, but does'nt seem urgent enough for 5.9 cycle since the dts node
was'nt introduced in this cycle, I think it was introduced around 5.3 or
so?

> 
> > 
> > Now, that said, Please consider converting
> > Documentation/devicetree/bindings/pci/pci-keystone.txt to yaml sometime
> > in near future, if possible.
> > 
> > We might also want to spend a little more time with W=2 dtbs build and
> > dtbs_check to cleanup.
> 
> Sure, will add to TODO.

Thanks.
Sekhar Nori Aug. 28, 2020, 11:56 a.m. UTC | #5
On 28/08/20 5:02 PM, Nishanth Menon wrote:
> On 08:34-20200828, Sekhar Nori wrote:
>> On 28/08/20 5:54 AM, Nishanth Menon wrote:
>>> On 10:13-20200827, Sekhar Nori wrote:
>>>> Hi Nishanth,
>>>>
>>>> On 02/08/20 10:23 PM, Sekhar Nori wrote:
>>>>> Per errata i2104 documented in AM65x device errata document (TI document
>>>>> number SPRZ452E, revised June 2019), Gen3 operation is not supported for
>>>>> both PCIe Root Complex and Endpoint modes of operation.
>>>>>
>>>>> See: https://www.ti.com/lit/er/sprz452e/sprz452e.pdf
>>>>>
>>>>> Restrict speed to Gen2 to address the errata.
>>>>>
>>>>> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
>>>>
>>>> Is this in your queue or should I rebase and resend?
>>>
>>> Thanks for the reminder. I have put it on my staging branch for now.
>>> Once rc3 gets tagged with irqchip related changes, I will move this over
>>> to next.
>>
>> Hmm, this is errata fix and fair game for -rc cycle. Can we have this in
>> v5.9 itself?
> 
> We could, but does'nt seem urgent enough for 5.9 cycle since the dts node
> was'nt introduced in this cycle, I think it was introduced around 5.3 or
> so?

Isn't this too early in -rc cycle to be regressions only?

I can provide a fixes tag if you want to ensure backporting. I felt odd
about it because its workaround for hardware issue, nothing wrong in the
original commit when it was written.

But if you are uncomfortable, fine :)

Thanks,
Sekhar
Nishanth Menon Aug. 28, 2020, 1:08 p.m. UTC | #6
On 17:26-20200828, Sekhar Nori wrote:
> On 28/08/20 5:02 PM, Nishanth Menon wrote:
> > On 08:34-20200828, Sekhar Nori wrote:
> >> On 28/08/20 5:54 AM, Nishanth Menon wrote:
> >>> On 10:13-20200827, Sekhar Nori wrote:
> >>>> Hi Nishanth,
> >>>>
> >>>> On 02/08/20 10:23 PM, Sekhar Nori wrote:
> >>>>> Per errata i2104 documented in AM65x device errata document (TI document
> >>>>> number SPRZ452E, revised June 2019), Gen3 operation is not supported for
> >>>>> both PCIe Root Complex and Endpoint modes of operation.
> >>>>>
> >>>>> See: https://www.ti.com/lit/er/sprz452e/sprz452e.pdf
> >>>>>
> >>>>> Restrict speed to Gen2 to address the errata.
> >>>>>
> >>>>> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
> >>>>
> >>>> Is this in your queue or should I rebase and resend?
> >>>
> >>> Thanks for the reminder. I have put it on my staging branch for now.
> >>> Once rc3 gets tagged with irqchip related changes, I will move this over
> >>> to next.
> >>
> >> Hmm, this is errata fix and fair game for -rc cycle. Can we have this in
> >> v5.9 itself?
> > 
> > We could, but does'nt seem urgent enough for 5.9 cycle since the dts node
> > was'nt introduced in this cycle, I think it was introduced around 5.3 or
> > so?
> 
> Isn't this too early in -rc cycle to be regressions only?

are'nt we in rc3 already.. But anyways..
> 
> I can provide a fixes tag if you want to ensure backporting. I felt odd
> about it because its workaround for hardware issue, nothing wrong in the
> original commit when it was written.
> 
> But if you are uncomfortable, fine :)

Thanks. yeah, I'd rather do this for 5.10, too much mayhem in 5.9
cycle already. Need to quiet things a bit here.
Nishanth Menon Aug. 31, 2020, 6:07 p.m. UTC | #7
On Sun, 2 Aug 2020 22:23:56 +0530, Sekhar Nori wrote:
> Per errata i2104 documented in AM65x device errata document (TI document
> number SPRZ452E, revised June 2019), Gen3 operation is not supported for
> both PCIe Root Complex and Endpoint modes of operation.
> 
> See: https://www.ti.com/lit/er/sprz452e/sprz452e.pdf
> 
> Restrict speed to Gen2 to address the errata.

Hi Sekhar Nori,

I have applied the following to branch ti-k3-dts-next on [1].
Thank you!

[1/1] arm64: dts: ti: k3-am65: restrict PCIe to Gen2 speed
      commit: 269a5641b1ed0ac00e9d75b43985407b34540d77

[1] git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux.git
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
index 61815228e230..22712d503290 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
@@ -650,7 +650,7 @@ 
 		ti,syscon-pcie-mode = <&pcie0_mode>;
 		bus-range = <0x0 0xff>;
 		num-viewport = <16>;
-		max-link-speed = <3>;
+		max-link-speed = <2>;
 		dma-coherent;
 		interrupts = <GIC_SPI 340 IRQ_TYPE_EDGE_RISING>;
 		msi-map = <0x0 &gic_its 0x0 0x10000>;
@@ -664,7 +664,7 @@ 
 		ti,syscon-pcie-mode = <&pcie0_mode>;
 		num-ib-windows = <16>;
 		num-ob-windows = <16>;
-		max-link-speed = <3>;
+		max-link-speed = <2>;
 		dma-coherent;
 		interrupts = <GIC_SPI 340 IRQ_TYPE_EDGE_RISING>;
 	};
@@ -682,7 +682,7 @@ 
 		ti,syscon-pcie-mode = <&pcie1_mode>;
 		bus-range = <0x0 0xff>;
 		num-viewport = <16>;
-		max-link-speed = <3>;
+		max-link-speed = <2>;
 		dma-coherent;
 		interrupts = <GIC_SPI 355 IRQ_TYPE_EDGE_RISING>;
 		msi-map = <0x0 &gic_its 0x10000 0x10000>;
@@ -696,7 +696,7 @@ 
 		ti,syscon-pcie-mode = <&pcie1_mode>;
 		num-ib-windows = <16>;
 		num-ob-windows = <16>;
-		max-link-speed = <3>;
+		max-link-speed = <2>;
 		dma-coherent;
 		interrupts = <GIC_SPI 355 IRQ_TYPE_EDGE_RISING>;
 	};