RE: [PATCH v2] drm/i915/gt: Replace kmap with its safer kmap_local_page counterpart

2025-02-16 Thread Gote, Nitin R
Hi Andi, > -Original Message- > From: Andi Shyti > Sent: Friday, February 14, 2025 6:05 AM > To: intel-gfx ; dri-devel de...@lists.freedesktop.org> > Cc: Andi Shyti ; Karas, Krzysztof > ; Gote, Nitin R > Subject: [PATCH v2] drm/i915/gt: Replace kmap with i

[PATCH v2] drm/i915/gt: Replace kmap with its safer kmap_local_page counterpart

2025-02-13 Thread Andi Shyti
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 i