]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/gt: Replace kmap with its safer kmap_local_page counterpart
authorAndi Shyti <andi.shyti@linux.intel.com>
Fri, 14 Feb 2025 00:34:37 +0000 (01:34 +0100)
committerAndi Shyti <andi.shyti@linux.intel.com>
Mon, 17 Feb 2025 14:02:43 +0000 (15:02 +0100)
commit3a79e5a8b454bd055c5a7a499f773e082209cd20
tree36018a31c93aec93fb7cda0b259608eb2f0d147c
parentc088387ddd6482b40f21ccf23db1125e8fa4af7e
drm/i915/gt: Replace kmap with its safer kmap_local_page counterpart

kmap_local_page(), unlike kmap(), performs a contextualized
mapping of pages. This means the pages are mapped locally to the
thread that created them, making them invisible outside the
thread and safer to use.

Replace kmap() and kunmap() with kmap_local_page() and
kunmap_local() counterparts for improved safety.

Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: Nitin Gote <nitin.r.gote@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250214003437.1311476-1-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c
drivers/gpu/drm/i915/gt/shmem_utils.c