]> git.dujemihanovic.xyz Git - u-boot.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)
commit69853123c513cf478992ca44e8a39afd651811a9
tree09c24c2131f67f1802adbc7b65b0c3ab406c9eab
parent4fe8641260d005f24b0ecca8b21d7c51e639c647
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