drm/xe/guc: Only take actions in CT irq handler if CTs are enabled
Subsystems (2)
Matthew Brost
maintainerPATCH 1/1 drm/xe/guc: Only take actions in CT irq handler if CTs are enabled
Protect entire IRQ handler by CT being enabled rather than just G2H handler.
v2: Return on not enabled in CT irq handler (Michal)
Suggested-by Michal Wajdeczko <[email protected]>
Signed-off-by Matthew Brost <[email protected]>
Reviewed-by Michal Wajdeczko <[email protected]>
--- drivers/gpu/drm/xe/xe_guc_ct.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_guc_ct.h +4 -3
@@ -24,10 +24,11 @@ void xe_guc_ct_print(struct xe_guc_ct *ct, struct drm_printer *p, bool atomic);static inline void xe_guc_ct_irq_handler (struct xe_guc_ct *ct) { -wake_up_all (&ct->wq); -if (ct->enabled) +if (ct->enabled) { +wake_up_all (&ct->wq);queue_work (system_unbound_wq, &ct->g2h_worker); -xe_guc_ct_fast_path (ct); +xe_guc_ct_fast_path (ct); + } }/* Basic CT send / receives */
Signature · 1 line
2.34.1