We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69a58ef commit 2e82474Copy full SHA for 2e82474
drivers/gpu/drm/xe/xe_guc_submit.c
@@ -229,6 +229,17 @@ static bool exec_queue_killed_or_banned_or_wedged(struct xe_exec_queue *q)
229
static void guc_submit_fini(struct drm_device *drm, void *arg)
230
{
231
struct xe_guc *guc = arg;
232
+ struct xe_device *xe = guc_to_xe(guc);
233
+ struct xe_gt *gt = guc_to_gt(guc);
234
+ int ret;
235
+
236
+ ret = wait_event_timeout(guc->submission_state.fini_wq,
237
+ xa_empty(&guc->submission_state.exec_queue_lookup),
238
+ HZ * 5);
239
240
+ drain_workqueue(xe->destroy_wq);
241
242
+ xe_gt_assert(gt, ret);
243
244
xa_destroy(&guc->submission_state.exec_queue_lookup);
245
}
0 commit comments