]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: macb: Shorten max_tx_len to 4KiB - 56 on mpfs
authorDaire McNamara <daire.mcnamara@microchip.com>
Fri, 12 May 2023 12:20:32 +0000 (13:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 May 2023 19:46:38 +0000 (20:46 +0100)
commit314cf958de2a784dd3984190311e15aa1fbf2717
treeadcb38df3ce138f07ffb1d10dcedb126a6465f5b
parentf1b5dfe63f6a9eb17948cbaee4da4b66f51ac794
net: macb: Shorten max_tx_len to 4KiB - 56 on mpfs

On mpfs, with SRAM configured for 4 queues, setting max_tx_len
to GEM_TX_MAX_LEN=0x3f0 results multiple AMBA errors.
Setting max_tx_len to (4KiB - 56) removes those errors.

The details are described in erratum 1686 by Cadence

The max jumbo frame size is also reduced for mpfs to (4KiB - 56).

Signed-off-by: Daire McNamara <daire.mcnamara@microchip.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c