2020-01-14 16:11:36

by Jose Abreu

[permalink] [raw]
Subject: [PATCH net 0/4] net: stmmac: Fix selftests in Synopsys AXS101 board

Set of fixes for sefltests so that they work in Synopsys AXS101 board.

Final output:

$ ethtool -t eth0
The test result is PASS
The test extra info:
1. MAC Loopback 0
2. PHY Loopback -95
3. MMC Counters 0
4. EEE -95
5. Hash Filter MC 0
6. Perfect Filter UC 0
7. MC Filter 0
8. UC Filter 0
9. Flow Control -95
10. RSS -95
11. VLAN Filtering -95
12. VLAN Filtering (perf) -95
13. Double VLAN Filter -95
14. Double VLAN Filter (perf) -95
15. Flexible RX Parser -95
16. SA Insertion (desc) -95
17. SA Replacement (desc) -95
18. SA Insertion (reg) -95
19. SA Replacement (reg) -95
20. VLAN TX Insertion -95
21. SVLAN TX Insertion -95
22. L3 DA Filtering -95
23. L3 SA Filtering -95
24. L4 DA TCP Filtering -95
25. L4 SA TCP Filtering -95
26. L4 DA UDP Filtering -95
27. L4 SA UDP Filtering -95
28. ARP Offload -95
29. Jumbo Frame 0
30. Multichannel Jumbo -95
31. Split Header -95

Description:

1) Fixes the unaligned accesses that caused CPU halt in Synopsys AXS101
boards.

2) Fixes the VLAN tests when filtering failed to work.

3) Fixes the VLAN Perfect tests when filtering is not available in HW.

4) Fixes the Ethernet DT bindings for AXS101 board.

---
Cc: Giuseppe Cavallaro <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Jose Abreu <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Alexey Brodkin <[email protected]>
Cc: Vineet Gupta <[email protected]>
Cc: [email protected]
---

Jose Abreu (4):
net: stmmac: selftests: Make it work in Synopsys AXS101 boards
net: stmmac: selftests: Mark as fail when received VLAN ID != expected
net: stmmac: selftests: Guard VLAN Perfect test against non supported
HW
ARC: [plat-axs10x]: Add missing multicast filter number to GMAC node

arch/arc/boot/dts/axs10x_mb.dtsi | 1 +
.../net/ethernet/stmicro/stmmac/stmmac_selftests.c | 32 +++++++++++++++-------
2 files changed, 23 insertions(+), 10 deletions(-)

--
2.7.4


2020-01-14 16:11:50

by Jose Abreu

[permalink] [raw]
Subject: [PATCH net 4/4] ARC: [plat-axs10x]: Add missing multicast filter number to GMAC node

Add a missing property to GMAC node so that multicast filtering works
correctly.

Fixes: 556cc1c5f528 ("ARC: [axs101] Add support for AXS101 SDP (software development platform)")
Signed-off-by: Jose Abreu <[email protected]>

---
Cc: Alexey Brodkin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Vineet Gupta <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
arch/arc/boot/dts/axs10x_mb.dtsi | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arc/boot/dts/axs10x_mb.dtsi b/arch/arc/boot/dts/axs10x_mb.dtsi
index f9a5c9ddcae7..1d109b06e7d8 100644
--- a/arch/arc/boot/dts/axs10x_mb.dtsi
+++ b/arch/arc/boot/dts/axs10x_mb.dtsi
@@ -78,6 +78,7 @@
interrupt-names = "macirq";
phy-mode = "rgmii";
snps,pbl = < 32 >;
+ snps,multicast-filter-bins = <256>;
clocks = <&apbclk>;
clock-names = "stmmaceth";
max-speed = <100>;
--
2.7.4

2020-01-14 16:15:31

by Alexey Brodkin

[permalink] [raw]
Subject: RE: [PATCH net 4/4] ARC: [plat-axs10x]: Add missing multicast filter number to GMAC node

Hi Jose,

> -----Original Message-----
> From: Jose Abreu <[email protected]>
> Sent: Tuesday, January 14, 2020 7:09 PM
> To: [email protected]
> Cc: Joao Pinto <[email protected]>; Jose Abreu <[email protected]>; Alexey Brodkin
> <[email protected]>; Rob Herring <[email protected]>; Mark Rutland <[email protected]>; Vineet
> Gupta <[email protected]>; [email protected]; [email protected]; linux-
> [email protected]
> Subject: [PATCH net 4/4] ARC: [plat-axs10x]: Add missing multicast filter number to GMAC node
>
> Add a missing property to GMAC node so that multicast filtering works
> correctly.
>
> Fixes: 556cc1c5f528 ("ARC: [axs101] Add support for AXS101 SDP (software development platform)")
> Signed-off-by: Jose Abreu <[email protected]>

Acked-by: Alexey Brodkin <[email protected]>

2020-01-14 17:06:08

by Vineet Gupta

[permalink] [raw]
Subject: Re: [PATCH net 4/4] ARC: [plat-axs10x]: Add missing multicast filter number to GMAC node

On 1/14/20 8:09 AM, Jose Abreu wrote:
> Add a missing property to GMAC node so that multicast filtering works
> correctly.
>
> Fixes: 556cc1c5f528 ("ARC: [axs101] Add support for AXS101 SDP (software development platform)")
> Signed-off-by: Jose Abreu <[email protected]>

Added to for-curr.

Thx,
-Vineet

2020-01-15 22:24:32

by David Miller

[permalink] [raw]
Subject: Re: [PATCH net 0/4] net: stmmac: Fix selftests in Synopsys AXS101 board

From: Jose Abreu <[email protected]>
Date: Tue, 14 Jan 2020 17:09:20 +0100

> Set of fixes for sefltests so that they work in Synopsys AXS101 board.
...

Applied patches 1-3, it looks like patch 4 went into another tree.