netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* STMMAC Ethernet Driver support
@ 2023-12-08  6:03 Richard Tresidder
  2023-12-08 18:12 ` Jakub Kicinski
  0 siblings, 1 reply; 14+ messages in thread
From: Richard Tresidder @ 2023-12-08  6:03 UTC (permalink / raw)
  To: netdev

Hi
    I'm having a problem when checksum offloading in transmit is enabled.
The Mac is in an Altera Cyclone V SOC.
compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";

Previous working revision was a 6.3.3 based kernel.
Current testing version is a 6.6.3 LongTerm branch.
None of our patches touch anything in network, just a few custom drivers 
for HDL built in the FPGA.

The 6.3.3 iteration of the STMMAC worked fine out of the box.
And appears to be using Checksum Offload in TX according to the dma_cap 
dump from debugfs.

For the 6.6.3 based driver I was seeing bad CRC's on any tcp data 
transmitted from the MAC, icmp was fine.

I manually disabled the tx_coe cap by setting:
dma_cap->tx_coe = 0;
in dwmac1000_dma.c at about line 258 in lieu of (hw_cap & 
DMA_HW_FEAT_TXCOESEL) >> 16;

This got the interface working.

I've looked through the diffset 6.3.3 >>> 6.6.3 on the driver
drivers\net\ethernet\stmicro\stmmac
But nothing is jumping out at me.

I could use a pointer as to where to look to start tracing this.

Cheers
    Richard Tresidder

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

end of thread, other threads:[~2023-12-13 10:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-08  6:03 STMMAC Ethernet Driver support Richard Tresidder
2023-12-08 18:12 ` Jakub Kicinski
2023-12-09  7:06   ` Richard Tresidder
2023-12-11  9:13     ` Richard Tresidder
2023-12-11  9:23       ` Richard Tresidder
2023-12-11 10:03         ` Corinna Vinschen
2023-12-12  4:13           ` Richard Tresidder
2023-12-12  6:49             ` Richard Tresidder
2023-12-11 16:16         ` Andrew Lunn
2023-12-12  3:57           ` Richard Tresidder
2023-12-12  9:27             ` Serge Semin
2023-12-13  4:55               ` Richard Tresidder
2023-12-13  9:17             ` Andrew Lunn
2023-12-13 10:15               ` Richard Tresidder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).