Commit 0431100
net: stmmac: Fixup the tail addr setting in xmit path
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: Jose Abreu <[email protected]>
Fixes: f748be5 ("stmmac: support new GMAC4")
Cc: David S. Miller <[email protected]>
Cc: Joao Pinto <[email protected]>
Cc: Giuseppe Cavallaro <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent 8fce333 commit 0431100
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2213 | 2213 | | |
2214 | 2214 | | |
2215 | 2215 | | |
2216 | | - | |
2217 | | - | |
| 2216 | + | |
2218 | 2217 | | |
2219 | 2218 | | |
2220 | 2219 | | |
| |||
3003 | 3002 | | |
3004 | 3003 | | |
3005 | 3004 | | |
| 3005 | + | |
3006 | 3006 | | |
3007 | 3007 | | |
3008 | 3008 | | |
| |||
3210 | 3210 | | |
3211 | 3211 | | |
3212 | 3212 | | |
| 3213 | + | |
3213 | 3214 | | |
3214 | 3215 | | |
3215 | 3216 | | |
| |||
0 commit comments