[PATCH 4/6] net: dwc_eth_qos: Invalidate RX descriptor before reading

Patrick DELAUNAY patrick.delaunay at st.com
Mon Apr 6 16:11:43 CEST 2020


Dear Marek,

> From: Marek Vasut <marex at denx.de>
> Sent: lundi 23 mars 2020 02:45
> 
> The current code polls the RX desciptor ring for new packets by reading the RX
> descriptor status. This works by accident, as the RX descriptors are often in non-
> cacheable memory. However, the driver does support use of RX descriptors in
> cacheable memory.
> 
> This patch adds a missing RX descriptor invalidation, which assures the CPU will
> read a fresh copy of the RX descriptor instead of a cached one.
> 
> 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