drm/xe: Only allow 1 ufence per exec / bind IOCTL
authorMatthew Brost <matthew.brost@intel.com>
Wed, 24 Jan 2024 23:44:13 +0000 (15:44 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 30 Jan 2024 23:51:04 +0000 (15:51 -0800)
commitd1df9bfbf68c65418f30917f406b6d5bd597714e
tree2d076a52525ef1a8dfa66bb6050e86598e8e3ac3
parentbe7d51c5b4688efbd8496ad97dbdd01a41e52d37
drm/xe: Only allow 1 ufence per exec / bind IOCTL

The way exec ufences are coded only 1 ufence per IOCTL will be signaled.
It is possible to fix this but for current use cases 1 ufence per IOCTL
is sufficient. Enforce a limit of 1 ufence per IOCTL (both exec and bind
to be uniform).

v2:
- Add fixes tag (Thomas)

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: Mika Kahola <mika.kahola@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Brian Welty <brian.welty@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240124234413.1640825-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_exec.c
drivers/gpu/drm/xe/xe_sync.h
drivers/gpu/drm/xe/xe_vm.c