@@ -1643,9 +1643,21 @@ capture_engine(struct intel_engine_cs *engine,
1643
1643
return NULL ;
1644
1644
1645
1645
intel_engine_get_hung_entity (engine , & ce , & rq );
1646
- if (rq && !i915_request_started (rq ))
1647
- drm_info (& engine -> gt -> i915 -> drm , "Got hung context on %s with active request %lld:%lld [0x%04X] not yet started\n" ,
1648
- engine -> name , rq -> fence .context , rq -> fence .seqno , ce -> guc_id .id );
1646
+ if (rq && !i915_request_started (rq )) {
1647
+ /*
1648
+ * We want to know also what is the guc_id of the context,
1649
+ * but if we don't have the context reference, then skip
1650
+ * printing it.
1651
+ */
1652
+ if (ce )
1653
+ drm_info (& engine -> gt -> i915 -> drm ,
1654
+ "Got hung context on %s with active request %lld:%lld [0x%04X] not yet started\n" ,
1655
+ engine -> name , rq -> fence .context , rq -> fence .seqno , ce -> guc_id .id );
1656
+ else
1657
+ drm_info (& engine -> gt -> i915 -> drm ,
1658
+ "Got hung context on %s with active request %lld:%lld not yet started\n" ,
1659
+ engine -> name , rq -> fence .context , rq -> fence .seqno );
1660
+ }
1649
1661
1650
1662
if (rq ) {
1651
1663
capture = intel_engine_coredump_add_request (ee , rq , ATOMIC_MAYFAIL );
0 commit comments