]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
accel/amdxdna: Remove buffer size check when creating command BO
authorLizhi Hou <lizhi.hou@amd.com>
Fri, 6 Feb 2026 06:02:37 +0000 (22:02 -0800)
committerLizhi Hou <lizhi.hou@amd.com>
Mon, 23 Feb 2026 17:23:41 +0000 (09:23 -0800)
commit08fe1b5166fdc81b010d7bf39cd6440620e7931e
tree1e82337aa6be79a43987d7e3c1acf799ae8955d8
parentc17ee635fd3a482b2ad2bf5e269755c2eae5f25e
accel/amdxdna: Remove buffer size check when creating command BO

Large command buffers may be used, and they do not always need to be
mapped or accessed by the driver. Performing a size check at command BO
creation time unnecessarily rejects valid use cases.

Remove the buffer size check from command BO creation, and defer vmap
and size validation to the paths where the driver actually needs to map
and access the command buffer.

Fixes: ac49797c1815 ("accel/amdxdna: Add GEM buffer object management")
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260206060237.4050492-1-lizhi.hou@amd.com
drivers/accel/amdxdna/amdxdna_gem.c