Message ID | 20211108101157.15189-8-bp@alien8.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | None | expand |
diff --git a/drivers/gpu/drm/i915/gvt/scheduler.c b/drivers/gpu/drm/i915/gvt/scheduler.c index 6c804102528b..3bafaca5789f 100644 --- a/drivers/gpu/drm/i915/gvt/scheduler.c +++ b/drivers/gpu/drm/i915/gvt/scheduler.c @@ -1277,8 +1277,10 @@ int intel_gvt_init_workload_scheduler(struct intel_gvt *gvt) gvt->shadow_ctx_notifier_block[i].notifier_call = shadow_context_status_change; - atomic_notifier_chain_register(&engine->context_status_notifier, - &gvt->shadow_ctx_notifier_block[i]); + + if (atomic_notifier_chain_register(&engine->context_status_notifier, + &gvt->shadow_ctx_notifier_block[i])) + pr_warn("Context status notifier %d already registered\n", i); } return 0;