]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Add HW descriptor prefetch setting for DWMAC Core 5.20 onwards
authorMohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Thu, 22 Apr 2021 07:55:00 +0000 (15:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Apr 2021 22:02:40 +0000 (15:02 -0700)
commit27352e903fe04256994bff66d5291878b175e933
treea25b48dc780148ac67219c2b58ca7c241152a107
parentd064bba971893c717cbe496989782f512b9cf6b7
net: stmmac: Add HW descriptor prefetch setting for DWMAC Core 5.20 onwards

DWMAC Core 5.20 onwards supports HW descriptor prefetching.
Additionally, it also depends on platform specific RTL configuration.
This capability could be enabled by setting DMA_Mode bit-19 (DCHE).

So, to enable this cability, platform must set plat->dma_cfg->dche = true
and the DWMAC core version must be 5.20 onwards. Else, this capability
wouldn`t be configured

Signed-off-by: Mohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
include/linux/stmmac.h