Hi Marek, > From: Marek Vasut <ma...@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 <ma...@denx.de> > Cc: Joe Hershberger <joe.hershber...@ni.com> > Cc: Patrice Chotard <patrice.chot...@st.com> > Cc: Patrick Delaunay <patrick.delau...@st.com> > Cc: Ramon Fried <rfried....@gmail.com> > Cc: Stephen Warren <swar...@nvidia.com> > ---
Reviewed-by: Patrick Delaunay <patrick.delau...@st.com> Patrick