File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -387,6 +387,8 @@ static int guc_ct_control_toggle(struct xe_guc_ct *ct, bool enable)
387
387
static void guc_ct_change_state (struct xe_guc_ct * ct ,
388
388
enum xe_guc_ct_state state )
389
389
{
390
+ struct xe_gt * gt = ct_to_gt (ct );
391
+
390
392
mutex_lock (& ct -> lock ); /* Serialise dequeue_one_g2h() */
391
393
spin_lock_irq (& ct -> fast_lock ); /* Serialise CT fast-path */
392
394
@@ -398,6 +400,10 @@ static void guc_ct_change_state(struct xe_guc_ct *ct,
398
400
ct -> g2h_outstanding = 0 ;
399
401
ct -> state = state ;
400
402
403
+ xe_gt_dbg (gt , "GuC CT communication channel %s\n" ,
404
+ state == XE_GUC_CT_STATE_STOPPED ? "stopped" :
405
+ str_enabled_disabled (state == XE_GUC_CT_STATE_ENABLED ));
406
+
401
407
spin_unlock_irq (& ct -> fast_lock );
402
408
403
409
/*
@@ -473,7 +479,6 @@ int xe_guc_ct_enable(struct xe_guc_ct *ct)
473
479
474
480
smp_mb ();
475
481
wake_up_all (& ct -> wq );
476
- xe_gt_dbg (gt , "GuC CT communication channel enabled\n" );
477
482
478
483
if (ct_needs_safe_mode (ct ))
479
484
ct_enter_safe_mode (ct );
You can’t perform that action at this time.
0 commit comments