drm/xe/exec: reserve fence slot for CPU bind
authorMatthew Auld <matthew.auld@intel.com>
Wed, 13 Dec 2023 17:47:05 +0000 (17:47 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 9 Jan 2024 14:27:10 +0000 (14:27 +0000)
commitf4e8ab468fc6cfaf718bb8610940d57a5e2309ba
tree76e722260642052846c7ebbcba89f9a986b01dde
parent29f424eb8702b686cb6f07ddd659c6312e0c796d
drm/xe/exec: reserve fence slot for CPU bind

Looks possible to switch from CPU binding to GPU binding mid exec, and
if that happens for the same dma-resv we might use two fence slots, once
for the dummy fence, and another for the actual GPU bind.

References: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/698
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/xe/xe_exec.c