]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe/oa: Separate batch submission from waiting for completion
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Tue, 22 Oct 2024 20:03:46 +0000 (13:03 -0700)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Wed, 23 Oct 2024 19:42:14 +0000 (12:42 -0700)
commitdddcb19ad4d4bbe943a72a1fb3266c6e8aa8d541
treee786abf62f1c8c062faa4a1cf249d5b023b9a704
parente2d84e5b22050bb49da19e8ea7943701809bbe88
drm/xe/oa: Separate batch submission from waiting for completion

When we introduce xe_syncs, we don't wait for internal OA programming
batches to complete. That is, xe_syncs are signaled asynchronously. In
anticipation for this, separate out batch submission from waiting for
completion of those batches.

v2: Change return type of xe_oa_submit_bb to "struct dma_fence *" (Matt B)
v3: Retain init "int err = 0;" in xe_oa_submit_bb (Jose)

Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241022200352.1192560-2-ashutosh.dixit@intel.com
drivers/gpu/drm/xe/xe_oa.c