summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorDavid Zhang <yidong.zhang@amd.com>2026-10-08 16:24:16 -0700
committerLizhi Hou <lizhi.hou@amd.com>2026-10-12 09:38:01 -0700
commit3e32932d3626d0279f9b3531bd648f8c0a16cb08 (patch)
tree604b07beb3d51cdd435de748edb487a6345f2915 /include/linux/debugobjects.h
parentfc9370d7b1c927f5a7f20e1251b8ee7bc0698954 (diff)
accel/amdxdna: Reject device heap BO when dev_mem_size is not set
NPU3 devices do not set dev_mem_size, since they do not use a device heap. Creating an AMDXDNA_BO_DEV_HEAP BO on such a device hits the WARN_ON(!is_power_of_2(dev_mem_size)) check, which any user with access to the device node can trigger. Return -EOPNOTSUPP when dev_mem_size is 0. Fixes: d76856beb4a4 ("accel/amdxdna: Refactor GEM BO handling and add helper APIs for address retrieval") Signed-off-by: David Zhang <yidong.zhang@amd.com> Reviewed-by: Lizhi Hou <lizhi.hou@amd.com> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20261008232416.2646054-1-yidong.zhang@amd.com
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions