aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorSumitra Sharma <[email protected]>2023-06-17 11:04:20 -0700
committerTvrtko Ursulin <[email protected]>2023-06-26 09:12:52 +0100
commit36dd2a6e5003a215a1d45e41589164dabae0ec5a (patch)
tree4fb1f9327a156d65f36cda83ba9301c97b1babe2 /lib/mpi/mpi-sub-ui.c
parent6580176fd04331130d94de3022c5eab97dee577e (diff)
drm/i915: Replace kmap() with kmap_local_page()
kmap() has been deprecated in favor of the kmap_local_page() due to high cost, restricted mapping space, the overhead of a global lock for synchronization, and making the process sleep in the absence of free slots. kmap_local_page() is faster than kmap() and offers thread-local and CPU-local mappings, can take pagefaults in a local kmap region and preserves preemption by saving the mappings of outgoing tasks and restoring those of the incoming one during a context switch. The mapping is kept thread local in the function “i915_vma_coredump_create” in i915_gpu_error.c Therefore, replace kmap() with kmap_local_page(). Suggested-by: Ira Weiny <[email protected]> Signed-off-by: Sumitra Sharma <[email protected]> Reviewed-by: Thomas Hellström <[email protected]> Reviewed-by: Fabio M. De Francesco <[email protected]> Signed-off-by: Tvrtko Ursulin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] [tursulin: Removed blank line within tags. Fixup commit text.]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions