]> git.baikalelectronics.ru Git - uboot.git/commit
net: sun8i_emac: Improve cache maintenance on RX descriptor init
authorAndre Przywara <andre.przywara@arm.com>
Mon, 6 Jul 2020 00:40:37 +0000 (01:40 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 21 Oct 2020 18:13:42 +0000 (23:43 +0530)
commitdf2b711e880a8bf3aef17a21530cde6ee4522f5b
tree09c24c2131f67f1802adbc7b65b0c3ab406c9eab
parent21e60fe1266ff008e376bdff209a9dccc977c7b9
net: sun8i_emac: Improve cache maintenance on RX descriptor init

Before we initialise the RX descriptors, there is no need to *clean*
them from the cache, as we touch them for the first time.
However we should cover the case that those buffers contain dirty cache
lines, which could be evicted and written back to DRAM any time later,
in the worst case *after* the MAC has transferred a packet into them.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Tested-by: Amit Singh Tomar <amittomer25@gmail.com> # Pine64+
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/net/sun8i_emac.c