]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe: Return -ENOBUFS if a kmalloc fails which is tied to an array of binds
authorMatthew Brost <matthew.brost@intel.com>
Tue, 23 Jul 2024 01:17:02 +0000 (18:17 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 23 Jul 2024 15:03:57 +0000 (08:03 -0700)
commitc8a31ff6199f12ca65d73f1235117c1d9e6365a9
treeb94803706ae3425d551b625a29d011ec83ec8879
parent649b93dbb902ae3237fddbe998eb1f4de1a14b71
drm/xe: Return -ENOBUFS if a kmalloc fails which is tied to an array of binds

The size of an array of binds is directly tied to several kmalloc in the
KMD, thus making these kmalloc more likely to fail. Return -ENOBUFS in
the case of these failures.

The expected UMD behavior upon returning -ENOBUFS is to split an array
of binds into a series of single binds.

v2:
 - Resend for CI
v3:
 - Resend for CI

Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240723011702.1684013-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_vm.c