]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
accel/amdxdna: Call dma_buf_vmap_unlocked() for imported object
authorLizhi Hou <lizhi.hou@amd.com>
Tue, 16 Sep 2025 17:48:42 +0000 (10:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:25 +0000 (14:02 +0100)
commit3bb9d125972c748a07eb65bd4e9396b06fd73e2b
tree00ba1e21949d87c32398880741a4fd0216132d5d
parent359653edd5374fbba28f93043554dcc494aee85f
accel/amdxdna: Call dma_buf_vmap_unlocked() for imported object

[ Upstream commit 457f4393d02fdb612a93912fb09cef70e6e545c9 ]

In amdxdna_gem_obj_vmap(), calling dma_buf_vmap() triggers a kernel
warning if LOCKDEP is enabled. So for imported object, use
dma_buf_vmap_unlocked(). Then, use drm_gem_vmap() for other objects.
The similar change applies to vunmap code.

Fixes: bd72d4acda10 ("accel/amdxdna: Support user space allocated buffer")
Reviewed-by: Maciej Falkowski <maciej.falkowski@linux.intel.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://lore.kernel.org/r/20250916174842.234709-1-lizhi.hou@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/accel/amdxdna/amdxdna_gem.c