Skip to contentSkip to conversation

ARM: dts: meson8b: add ethernet fifo sizes

PATCH In review Jerome Brunet 4 participants 4 messages Jul 18, 2019 – Aug 5, 2019

Subsystems (2)
lore
Share & tools
lore

Jerome Brunet

author reviewer
#0 lore raw

PATCH 1/1 ARM: dts: meson8b: add ethernet fifo sizes

If unspecified in DT, the fifo sizes are not automatically detected by the dwmac1000 dma driver and the reported fifo sizes default to 0. Because of this, flow control will be turned off on the device.

Add the fifo sizes provided by the datasheet in the SoC in DT so flow control may be enabled if necessary.

---
 arch/arm/boot/dts/meson8b.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/meson8b.dtsi +2 -0
index fba2c70c2fda..b044ad78b475 100644
@@ -410,6 +410,8 @@
 		 <&clkc CLKID_MPLL2>,
 		 <&clkc CLKID_MPLL2>;
 	clock-names = "stmmaceth", "clkin0", "clkin1";
+	rx-fifo-depth = <4096>;
+	tx-fifo-depth = <2048>;
 
 	resets = <&reset RESET_ETHERNET>;
 	reset-names = "stmmaceth";
Signature · 1 line
2.21.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Jerome Brunet

If unspecified in DT, the fifo sizes are not automatically detected by the dwmac1000 dma driver and the reported fifo sizes default to 0. Because of this, flow control will be turned off on the device.

Add the fifo sizes provided by the datasheet in the SoC in DT so flow control may be enabled if necessary.

I wonder if this "fixes" some of the performance issues on Odroid-C1 testing this is now on my TODO-list for the weekend

#2 lore raw

Le 23/07/2019 à 21:56, Martin Blumenstingl a écrit :

Quoted 5 lines · Jerome Brunet
Quoted 4 lines

If unspecified in DT, the fifo sizes are not automatically detected by the dwmac1000 dma driver and the reported fifo sizes default to 0. Because of this, flow control will be turned off on the device.

Quoted 8 lines
Quoted 4 lines

Add the fifo sizes provided by the datasheet in the SoC in DT so flow control may be enabled if necessary.

I wonder if this "fixes" some of the performance issues on Odroid-C1 testing this is now on my TODO-list for the weekend

Good! and maybe that will fix the stability issue I'm seeing when using the board with a 1 gigabit link! (cf
http://lists.infradead.org/pipermail/linux-amlogic/2019-June/012341.html)

I'll try that asap on my board too :)

Thanks.

Signature · 1 line
Aymeric
maintainer
#3 lore raw
In reply to Jerome Brunet
Quoted 8 lines · Jerome Brunet

If unspecified in DT, the fifo sizes are not automatically detected by the dwmac1000 dma driver and the reported fifo sizes default to 0. Because of this, flow control will be turned off on the device.

Add the fifo sizes provided by the datasheet in the SoC in DT so flow control may be enabled if necessary.

Queued for v5.4,

Thanks,

Kevin