All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: rockchip: fix rk3328-roc-cc gmac2io tx/rx_delay
@ 2019-02-28 22:29 Leonidas P. Papadakos
       [not found] ` <20190228222923.30418-1-papadakospan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Leonidas P. Papadakos @ 2019-02-28 22:29 UTC (permalink / raw
  To: Levin Du
  Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Heiko Stuebner,
	Leonidas P. Papadakos

The rk3328-roc-cc board exhibits tx stability issues with large packets,
as does the rock64 board, which was fixed with this patch
https://patchwork.kernel.org/patch/10178969/

A similar patch was merged for the rk3328-roc-cc here
https://patchwork.kernel.org/patch/10804863/
but it doesn't include the tx/rx_delay tweaks, and I find that they
help with an issue where large transfers would bring the ethernet
link down, causing a link reset regularly.

Signed-off-by: Leonidas P. Papadakos <papadakospan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
index 33c44e857..0e34354b2 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
@@ -108,8 +108,8 @@
 	snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
 	snps,reset-active-low;
 	snps,reset-delays-us = <0 10000 50000>;
-	tx_delay = <0x25>;
-	rx_delay = <0x11>;
+	tx_delay = <0x24>;
+	rx_delay = <0x18>;
 	status = "okay";
 };
 
-- 
2.21.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: rockchip: fix rk3328-roc-cc gmac2io tx/rx_delay
       [not found] ` <20190228222923.30418-1-papadakospan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2019-03-03 14:10   ` Heiko Stuebner
  2019-03-06  1:36     ` Leonidas P. Papadakos
  0 siblings, 1 reply; 4+ messages in thread
From: Heiko Stuebner @ 2019-03-03 14:10 UTC (permalink / raw
  To: Leonidas P. Papadakos
  Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Levin Du

Am Donnerstag, 28. Februar 2019, 23:29:23 CET schrieb Leonidas P. Papadakos:
> The rk3328-roc-cc board exhibits tx stability issues with large packets,
> as does the rock64 board, which was fixed with this patch
> https://patchwork.kernel.org/patch/10178969/
> 
> A similar patch was merged for the rk3328-roc-cc here
> https://patchwork.kernel.org/patch/10804863/
> but it doesn't include the tx/rx_delay tweaks, and I find that they
> help with an issue where large transfers would bring the ethernet
> link down, causing a link reset regularly.
> 
> Signed-off-by: Leonidas P. Papadakos <papadakospan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

applied as fix for the 5.1-rc cycle starting in about 2 weeks.

Thanks
Heiko

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: rockchip: fix rk3328-roc-cc gmac2io tx/rx_delay
  2019-03-03 14:10   ` Heiko Stuebner
@ 2019-03-06  1:36     ` Leonidas P. Papadakos
       [not found]       ` <1551836219.5698.0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Leonidas P. Papadakos @ 2019-03-06  1:36 UTC (permalink / raw
  To: Heiko Stuebner; +Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Levin Du



Στις Κυρ, 3 Μαρ, 2019 at 4:10 ΜΜ, ο/η Heiko Stuebner 
<heiko@sntech.de> έγραψε:
> Am Donnerstag, 28. Februar 2019, 23:29:23 CET schrieb Leonidas P. 
> Papadakos:
>>  The rk3328-roc-cc board exhibits tx stability issues with large 
>> packets,
>>  as does the rock64 board, which was fixed with this patch
>>  https://patchwork.kernel.org/patch/10178969/
>> 
>>  A similar patch was merged for the rk3328-roc-cc here
>>  https://patchwork.kernel.org/patch/10804863/
>>  but it doesn't include the tx/rx_delay tweaks, and I find that they
>>  help with an issue where large transfers would bring the ethernet
>>  link down, causing a link reset regularly.
>> 
>>  Signed-off-by: Leonidas P. Papadakos <papadakospan@gmail.com>
> 
> applied as fix for the 5.1-rc cycle starting in about 2 weeks.
> 
> Thanks
> Heiko
> 
> 
It seems like the delays for the rk3328-roc-cc should be like this:
	tx_delay = <0x28>;
	rx_delay = <0x16>;
What should I do? Make a new patch? If so, what tree do I base it on?



_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: rockchip: fix rk3328-roc-cc gmac2io tx/rx_delay
       [not found]       ` <1551836219.5698.0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2019-03-06  7:43         ` Heiko Stübner
  0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stübner @ 2019-03-06  7:43 UTC (permalink / raw
  To: Leonidas P. Papadakos
  Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Levin Du

Hi,

Am Mittwoch, 6. März 2019, 02:36:59 CET schrieb Leonidas P. Papadakos:
> Στις Κυρ, 3 Μαρ, 2019 at 4:10 ΜΜ, ο/η Heiko Stuebner
> 
> <heiko@sntech.de> έγραψε:
> > Am Donnerstag, 28. Februar 2019, 23:29:23 CET schrieb Leonidas P.
> > 
> > Papadakos:
> >>  The rk3328-roc-cc board exhibits tx stability issues with large
> >> 
> >> packets,
> >> 
> >>  as does the rock64 board, which was fixed with this patch
> >>  https://patchwork.kernel.org/patch/10178969/
> >>  
> >>  A similar patch was merged for the rk3328-roc-cc here
> >>  https://patchwork.kernel.org/patch/10804863/
> >>  but it doesn't include the tx/rx_delay tweaks, and I find that they
> >>  help with an issue where large transfers would bring the ethernet
> >>  link down, causing a link reset regularly.
> >>  
> >>  Signed-off-by: Leonidas P. Papadakos <papadakospan@gmail.com>
> > 
> > applied as fix for the 5.1-rc cycle starting in about 2 weeks.
> > 
> > Thanks
> > Heiko
> 
> It seems like the delays for the rk3328-roc-cc should be like this:
> 	tx_delay = <0x28>;
> 	rx_delay = <0x16>;
> What should I do? Make a new patch? If so, what tree do I base it on?

yeah just make a new patch, replacing the old one. The original patch
is targeted at 5.2, so is sitting in a temporary branch right now - so 
replacing the whole patch it is possible without hickups right now.

Heiko



_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-06  7:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-28 22:29 [PATCH] arm64: dts: rockchip: fix rk3328-roc-cc gmac2io tx/rx_delay Leonidas P. Papadakos
     [not found] ` <20190228222923.30418-1-papadakospan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-03-03 14:10   ` Heiko Stuebner
2019-03-06  1:36     ` Leonidas P. Papadakos
     [not found]       ` <1551836219.5698.0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-03-06  7:43         ` Heiko Stübner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.