From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Thu, 13 Dec 2018 23:31:53 +0800 Subject: [U-Boot] [PATCH v3] zynq-gem: Use appropriate cache flush/invalidate for RX and TX In-Reply-To: <20181213143752.11974-1-stefan.theil@mixed-mode.de> References: <20181213143752.11974-1-stefan.theil@mixed-mode.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Dec 13, 2018 at 10:39 PM Stefan Theil wrote: > > The cache was only flushed before *transmitting* packets, but not nits: but not invalidated > when receiving them, leading to an issue where new packets were > handed to the receive handler with old contents in cache. This > only happens when a lot of packets are received without sending > packages every now and then. Also flushing the receive buffers > in the transmit function makes no sense and can be removed. > > Signed-off-by: Stefan Theil > > --- > Changes for v2: > - Use invalidate_dcache_range instead of > flush_dcache_range > Changes for v3: > - Remove unnecessary flushing of all RX > buffers in zynq_gem_send > --- > drivers/net/zynq_gem.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > Reviewed-by: Bin Meng