drm/xe/bo: explicitly reject zero sized BO
authorMatthew Auld <matthew.auld@intel.com>
Thu, 22 Dec 2022 10:36:47 +0000 (10:36 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:29:43 +0000 (18:29 -0500)
commitd79bdcdf06a3b421ac386f3513365f0bf2a5649a
treef3b6073c025f32af0c9f06f405d665766ca78ce5
parente103c45f501a32eaa9e0a12db1c1e167b06f78cf
drm/xe/bo: explicitly reject zero sized BO

In the depths of ttm, when allocating the vma node this should result in
-ENOSPC it seems. However we should probably rather reject as part of
our own ioctl sanity checking, and then treat as programmer error in the
lower levels.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_bo.c