@@ -656,10 +656,10 @@ trace_ports(const struct intel_engine_execlists *execlists,
GEM_TRACE("%s: %s { %llx:%lld%s, %llx:%lld }\n",
engine->name, msg,
- ports[0]->fence.context,
- ports[0]->fence.seqno,
- i915_request_completed(ports[0]) ? "!" :
- i915_request_started(ports[0]) ? "*" :
+ ports[0] ? ports[0]->fence.context : 0,
+ ports[0] ? ports[0]->fence.seqno : 0,
+ ports[0] && i915_request_completed(ports[0]) ? "!" :
+ ports[0] && i915_request_started(ports[0]) ? "*" :
"",
ports[1] ? ports[1]->fence.context : 0,
ports[1] ? ports[1]->fence.seqno : 0);
If it ever happens trace_port() helper is called with NULL port 0, kernel panic occurs. Fix it. Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com> --- drivers/gpu/drm/i915/gt/intel_lrc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)