]> git.ipfire.org Git - thirdparty/linux.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)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 17 Sep 2025 18:02:31 +0000 (11:02 -0700)
commit457f4393d02fdb612a93912fb09cef70e6e545c9
tree15f2c4eaab4ce3d7ea0c2ec8a04fe5e7bd36a56d
parent091767ee7510765886b8475c44fd81b2e6e9da87
accel/amdxdna: Call dma_buf_vmap_unlocked() for imported object

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
drivers/accel/amdxdna/amdxdna_gem.c