[PATCH 5/6] net: dwc_eth_qos: Invalidate RX packet DMA buffer
Patrick DELAUNAY
patrick.delaunay at st.com
Mon Apr 6 16:16:47 CEST 2020
Hi Marek,
> From: Marek Vasut <marex at denx.de>
> Sent: lundi 23 mars 2020 02:45
>
> 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.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Patrice Chotard <patrice.chotard at st.com>
> Cc: Patrick Delaunay <patrick.delaunay at st.com>
> Cc: Ramon Fried <rfried.dev at gmail.com>
> Cc: Stephen Warren <swarren at nvidia.com>
> ---
Reviewed-by: Patrick Delaunay <patrick.delaunay at st.com>
Patrick
More information about the U-Boot
mailing list