diff options
| author | Huacai Chen <[email protected]> | 2025-02-10 13:43:28 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-02-13 04:04:38 +0000 |
| commit | 8dbf0c7556454b52af91bae305ca71500c31495c (patch) | |
| tree | 1c64ac060a4bce6ece1057df71218e5e904a2abe /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | netlink: specs: add conntrack dump and stats dump support (diff) | |
| download | kernel-8dbf0c7556454b52af91bae305ca71500c31495c.tar.gz kernel-8dbf0c7556454b52af91bae305ca71500c31495c.zip | |
net: stmmac: dwmac-loongson: Set correct {tx,rx}_fifo_size
Now for dwmac-loongson {tx,rx}_fifo_size are uninitialised, which means
zero. This means dwmac-loongson doesn't support changing MTU because in
stmmac_change_mtu() it requires the fifo size be no less than MTU. Thus,
set the correct tx_fifo_size and rx_fifo_size for it (16KB multiplied by
queue counts).
Here {tx,rx}_fifo_size is initialised with the initial value (also the
maximum value) of {tx,rx}_queues_to_use. So it will keep as 16KB if we
don't change the queue count, and will be larger than 16KB if we change
(decrease) the queue count. However stmmac_change_mtu() still work well
with current logic (MTU cannot be larger than 16KB for stmmac).
Note: the Fixes tag picked here is the oldest commit and key commit of
the dwmac-loongson series "stmmac: Add Loongson platform support".
Acked-by: Yanteng Si <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Chong Qiao <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions
