Will Deacon 429388682d arm64: Avoid flush_icache_range() in alternatives patching code
The implementation of flush_icache_range() includes instruction sequences
which are themselves patched at runtime, so it is not safe to call from
the patching framework.

This patch reworks the alternatives cache-flushing code so that it rolls
its own internal D-cache maintenance using DC CIVAC before invalidating
the entire I-cache after all alternatives have been applied at boot.
Modules don't cause any issues, since flush_icache_range() is safe to
call by the time they are loaded.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Reported-by: Rohit Khanna <rokhanna@nvidia.com>
Cc: Alexander Van Brunt <avanbrunt@nvidia.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2018-06-27 18:21:53 +01:00
..
2017-11-15 10:56:56 -08:00
2018-02-09 09:44:25 -08:00
2018-06-08 11:10:58 -07:00
2018-03-19 18:14:27 +00:00
2018-06-12 11:34:04 -07:00
2018-02-26 10:48:01 +01:00
2018-01-13 10:45:03 +00:00
2018-06-12 11:34:04 -07:00
2017-08-09 12:16:28 +01:00