drm/xe: Avoid the OOM killer on buffer object memory allocation
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 31 Oct 2024 15:37:31 +0000 (16:37 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 1 Nov 2024 15:59:48 +0000 (16:59 +0100)
commit6bd49cc1a8924c3fe9554526f2d42d8d8851aea9
tree1fa0c43858479347281c0564809f118170611e87
parente1f6fa55664a0eeb0a641f497e1adfcf6672e995
drm/xe: Avoid the OOM killer on buffer object memory allocation

Rather than invoking the OOM killer on buffer object memory
allocations and validations, have the allocations fail and
pass the error to user-space if applicable.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2701
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241031153732.164995-2-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/xe/xe_bo.c