From: Patrick DELAUNAY Date: Mon, 6 Apr 2020 14:11:43 +0000 Subject: [PATCH 4/6] net: dwc_eth_qos: Invalidate RX descriptor before reading In-Reply-To: <20200323014526.3340884-4-marex@denx.de> References: <20200323014526.3340884-1-marex@denx.de> <20200323014526.3340884-4-marex@denx.de> Message-ID: <8fbfe92250a64f86b9072e62011ffca3@SFHDAG6NODE3.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Marek, > From: Marek Vasut > 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 > Cc: Joe Hershberger > Cc: Patrice Chotard > Cc: Patrick Delaunay > Cc: Ramon Fried > Cc: Stephen Warren > --- Reviewed-by: Patrick Delaunay Patrick