summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorLizhi Hou <lizhi.hou@amd.com>2026-05-15 09:19:22 -0700
committerLizhi Hou <lizhi.hou@amd.com>2026-05-18 16:03:57 -0700
commitdbc8fd7a03cbc0704e8e558a448015f620547a02 (patch)
tree817ce8ba293553021118ba7407ba2513d1ec306d /include/linux/timerqueue.h
parent6b89ba3dba2f583626fb693e47e951ffb8bf591f (diff)
accel/amdxdna: Add expandable device heap support
Introduce an expandable device heap to avoid allocating a large heap upfront. Start with a smaller initial heap and grow it on demand. Return -EAGAIN when BO allocation fails due to insufficient heap space, allowing userspace to trigger heap expansion via a heap BO creation IOCTL and retry the allocation. Manage heap chunks using an xarray. On expansion, register new chunks with the firmware via MSG_OP_ADD_HOST_BUFFER. Since heap shrinking is not supported by the firmware, release all heap chunks on device close. Co-developed-by: Wendy Liang <wendy.liang@amd.com> Signed-off-by: Wendy Liang <wendy.liang@amd.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260515161922.744647-1-lizhi.hou@amd.com
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions