aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
diff options
context:
space:
mode:
authorWill Deacon <[email protected]>2018-06-22 08:31:15 +0000
committerCatalin Marinas <[email protected]>2018-06-27 17:21:53 +0000
commit429388682dc266e7a693f9c27e3aabd341d55343 (patch)
treeadab7d6b539fcbddbe26923454597ca3dfd803d5 /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
parentMerge branch 'perf/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/wi... (diff)
downloadkernel-429388682dc266e7a693f9c27e3aabd341d55343.tar.gz
kernel-429388682dc266e7a693f9c27e3aabd341d55343.zip
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 <[email protected]> Reported-by: Rohit Khanna <[email protected]> Cc: Alexander Van Brunt <[email protected]> Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions