Searched hist:"076 e66fb703709cbe72353619ebd6d8bfd625ca4" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/net/ |
| H A D | dwc_eth_qos.c | 076e66fb703709cbe72353619ebd6d8bfd625ca4 Mon Mar 23 01:09:55 UTC 2020 Marek Vasut <marex@denx.de> UPSTREAM: net: dwc_eth_qos: Invalidate RX packet DMA buffer
This patch prevents an issue where the RX packet might have been accessed by the CPU, which now has cached data from the packet in the caches and possibly various write buffers, and these data may be evicted from the caches into the DRAM while the buffer is also written by the DMA.
By invalidating the buffer after the CPU accessed it and before the DMA populates the buffer, it is assured that the buffer will not be corrupted.
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Patrice Chotard <patrice.chotard@st.com> Cc: Patrick Delaunay <patrick.delaunay@st.com> Cc: Ramon Fried <rfried.dev@gmail.com> Cc: Stephen Warren <swarren@nvidia.com> Signed-off-by: David Wu <david.wu@rock-chips.com> Change-Id: I6271396aad6abac3fb11e5e742a3b2c9e7cc355b
|