• Thierry Reding's avatar
    net: stmmac: Support enhanced addressing mode for DWMAC 4.10 · 560c07cb
    Thierry Reding authored
    The address width of the controller can be read from hardware feature
    registers much like on XGMAC. Add support for parsing the ADDR64 field
    so that the DMA mask can be set accordingly.
    
    This avoids getting swiotlb involved for DMA on Tegra186 and later.
    
    Also make sure that the upper 32 bits of the DMA address are written to
    the DMA descriptors when enhanced addressing mode is used. Similarily,
    for each channel, the upper 32 bits of the DMA descriptor ring's base
    address also need to be programmed to make sure the correct memory can
    be fetched when the DMA descriptor ring is located beyond the 32-bit
    boundary.
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    560c07cb
dwmac4.h 14 KB