• Jose Abreu's avatar
    net: stmmac: Fixup the tail addr setting in xmit path · 0431100b
    Jose Abreu authored
    Currently we are always setting the tail address of descriptor list to
    the end of the pre-allocated list.
    
    According to databook this is not correct. Tail address should point to
    the last available descriptor + 1, which means we have to update the
    tail address everytime we call the xmit function.
    
    This should make no impact in older versions of MAC but in newer
    versions there are some DMA features which allows the IP to fetch
    descriptors in advance and in a non sequential order so its critical
    that we set the tail address correctly.
    Signed-off-by: default avatarJose Abreu <joabreu@synopsys.com>
    Fixes: f748be53 ("stmmac: support new GMAC4")
    Cc: David S. Miller <davem@davemloft.net>
    Cc: Joao Pinto <jpinto@synopsys.com>
    Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
    Cc: Alexandre Torgue <alexandre.torgue@st.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    0431100b
stmmac_main.c 126 KB