OSDN Git Service

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)
commit96874c619c200bc704ae2d8e34a3746350922135
treea25b48dc780148ac67219c2b58ca7c241152a107
parent79ebfb11fe0848e916950787bb105f1c0559a577
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