Skip to content

net: ftgmac100: Fix AST2600EVB NCSI RX issue

Hongwei Zhang linux-aspeed lkml netdev openbmc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 1 patch 0 repliesNew

Patches in v1 No applies recorded yet

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Aspeed,ncsi-rx, v1 0/1] net: ftgmac100: Fix AST2600EVB NCSI RX issue
Quoted 7 lines

Hi Hongwei,

The NCSI should run on 3.3V RMII. According your log, you enabled NCSI on ftgmac100 at 1e660000 which can only support 1.8V I/O voltage.
Did you observe the same error on ftgmac100 at 1e670000 (MAC3) or ftgmac100 at 1e690000 (MAC4)?

Hi Dylan,

Thanks for your review and input, you're correct, this issue is not observed on AST2600 MAC4 (ftgmac100 at 1e690000).

Though this issue is caused by using NCSI incompatible MAC ftgmac100 at 1e660000, we thought this patch is still having value, by providing an extra option to user to be able to use ftgmac100 at 1e660000 for NCSI, and this is also true for AST2500.

--Hongwei

Quoted 28 lines
Quoted 28 lines

-----Original Message-----
From: Linux-aspeed [mailto:linux-aspeed-bounces+dylan_hung=aspeedtech.com at lists.ozlabs.or g]
On Behalf Of Joel Stanley
Sent: 2020?12?22? 10:26 AM
To: Hongwei Zhang <[email protected]>; Ryan Chen <[email protected]>
Cc: linux-aspeed <[email protected]>; netdev <[email protected]>; OpenBMC Maillist <[email protected]>; Linux Kernel Mailing List <[email protected]>; Jakub Kicinski <[email protected]>; David S Miller <[email protected]>
Subject: Re: [Aspeed, ncsi-rx, v1 0/1] net: ftgmac100: Fix AST2600EVB NCSI RX issue

Quoted 8 lines · Hongwei Zhang

Dear Reviewer,

When FTGMAC100 driver is used on other NCSI Ethernet controllers, few controllers have compatible issue. One example is Intel I210 Ethernet controller on AST2600 BMC, with FTGMAC100 driver, it always trigger RXDES0_RX_ERR error, cause NCSI initialization failure, removing FTGMAC100_RXDES0_RX_ERR bit from RXDES0_ANY_ERROR fix the issue.

I work with a few systems that use the i210 on the 2600. We haven't seen this issue in our testing.

Quoted 7 lines
Quoted 7 lines

Is there something specific about the setup that you use to trigger this?

Ryan, is this an issue that Aspeed is aware of?

Cheers,

Joel

Hello Joel,

Thanks for your review, please see my response to Dylan, he pointed out the root cause of the issue.

-- Hongwei

Quoted 27 lines
Quoted 26 lines
Quoted 7 lines

Here are part of the debug logs:
......

[   35.075552] ftgmac100_hard_start_xmit TXDESO=b000003c
[   35.080843] ftgmac100 1e660000.ethernet eth0: tx_complete_packet 55
[   35.087141] ftgmac100 1e660000.ethernet eth0: rx_packet_error

RXDES0=0xb0070040

Quoted 18 lines
[   37.067831] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready

............

This patch add a configurable flag, FTGMAC100_RXDES0_RX_ERR_CHK, in FTGMAC100 driver, it is YES by default, so keep the orignal define of RXDES0_ANY_ERROR. If it is needed, user can set the flag to NO to remove the RXDES0_RX_ERR bit, to fix the issue.

Hongwei Zhang (1):
net: ftgmac100: Fix AST2600 EVB NCSI RX issue

 drivers/net/ethernet/faraday/Kconfig     | 9 +++++++++
 drivers/net/ethernet/faraday/ftgmac100.h | 8 ++++++++
 2 files changed, 17 insertions(+)

--
2.17.1