]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Remove mmap and export support for ubuf
authorLizhi Hou <lizhi.hou@amd.com>
Mon, 18 May 2026 15:57:05 +0000 (08:57 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Tue, 19 May 2026 15:47:59 +0000 (08:47 -0700)
commit457b046b7dfc0fd5b3437766a4ec43d16d02482c
tree2add947d0c184a1e8687245bbeabad8dfc304e34
parentd45d5c819f2cd0b6b5d76a194a537a5f4aeefecb
accel/amdxdna: Remove mmap and export support for ubuf

Ubuf pages should not be mmaped or exported. Remove the ubuf mmap callback
and return -EOPNOTSUPP when exporting ubuf objects.

ubuf vmap is also removed for there is not a real use case yet.

Fixes: bd72d4acda10 ("accel/amdxdna: Support user space allocated buffer")
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260518155706.937461-1-lizhi.hou@amd.com
drivers/accel/amdxdna/amdxdna_gem.c
drivers/accel/amdxdna/amdxdna_gem.h
drivers/accel/amdxdna/amdxdna_ubuf.c