OSDN Git Service

parisc: Fix invalidate/flush vmap routines
authorJohn David Anglin <dave.anglin@bell.net>
Sat, 19 Mar 2022 19:04:15 +0000 (19:04 +0000)
committerHelge Deller <deller@gmx.de>
Mon, 21 Mar 2022 12:30:54 +0000 (13:30 +0100)
commit53d862fac4a09b9c56cca0433fa9de5732fd05a1
tree1b02d6ee02e1669bf73edc090b7085718ab53f8a
parent411fadd62cecf74935693b7690b416af9bd4a332
parisc: Fix invalidate/flush vmap routines

Cache move-in for virtual accesses is controlled by the TLB.  Thus,
we must generally purge TLB entries before flushing.  The flush routines
must use TLB entries that inhibit cache move-in.

V2: Load physical address prior to flushing TLB.  In flush_cache_page,
flush TLB when flushing and purging.

V3: Don't flush when start equals end.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/cache.c