]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe: Use vmalloc for array of bind allocation in bind IOCTL
authorMatthew Brost <matthew.brost@intel.com>
Mon, 26 Feb 2024 15:55:54 +0000 (07:55 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Mon, 26 Feb 2024 20:11:19 +0000 (12:11 -0800)
commit35ed1d2bfff7b1969e7f99f3641a83ea54f037e2
tree9237b981bc7695d860fa6319072a5df0b7fab235
parentb2121f2bd2232cd0556b2182078d159d81497885
drm/xe: Use vmalloc for array of bind allocation in bind IOCTL

Use vmalloc in effort to allow a user pass in a large number of binds in
an IOCTL (mesa use case). Also use array allocations rather open coding
the size calculation.

v2: Use __GFP_ACCOUNT for allocations (Thomas)

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240226155554.103384-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_vm.c