Skip to content

Adjust macb max_tx_len for mpfs

[email protected] netdev 4 versions – Applied

Status from this message: This patch was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 3 repliesApplied 1/1
  2. v31 patch 0 repliesSuperseded
  3. v21 patch 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch4 repliesSuperseded

Changes in v4 from the cover letter

- Simplified the if/else ladder

Patches in v4 All 1 applied

#Subject and filesSizeRepliesApplied
1/1net: macb: Shorten max_tx_len to 4KiB - 56 on mpfsdrivers/net/ethernet/cadence/macb.h drivers/net/ethernet/cadence/macb_main.c+10 -33 repliesApplied

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchConor DooleySimon HormanClaudiu Beznea
1/1R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/1] Adjust macb max_tx_len for mpfs

From: Daire McNamara <[email protected]>

Several customers have reported unexpected ethernet issues whereby the GEM stops transmitting and receiving. Performing an action such as ifconfig <ethX> down; ifconfig <ethX> up clears this particular condition.

The origin of the issue is a stream of AMBA_ERRORS (bit 6) from the tx queues.

This patch sets the max_tx_length to SRAM size (16 KiB
in the case of mpfs) divided by num_queues (4 in the case of mpfs) and then subtracts 56 bytes from that figure - resulting in max_tx_len of 4040. The max jumbo length is also set to 4040. These figures are derived from Cadence erratum 1686.

Change from v3
- Simplified the if/else ladder

Change from v2
- Remove pointless check for existence of macb_config.

Change from v1
- Switched from using macb_is_gem() to hw_is_gem() as macb_is_gem() relies on capabilities being read and these have not been ascertained at this point of the probe routine.

Daire McNamara (1):
net: macb: Shorten max_tx_len to 4KiB - 56 on mpfs

 drivers/net/ethernet/cadence/macb.h      |  1 +
 drivers/net/ethernet/cadence/macb_main.c | 12 +++++++++---
 2 files changed, 10 insertions(+), 3 deletions(-)

base-commit: 09a9639e56c01c7a00d6c0ca63f4c7c41abe075d

Signature · 1 line
2.25.1