drm/i915/error: capture uc_state after gen_state
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Mon, 5 Mar 2018 22:21:22 +0000 (14:21 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Mar 2018 09:34:46 +0000 (09:34 +0000)
commit7cc62d0b8e257fbac8e2972074351bc766b96853
tree615789e587f2cb873bd4474d6b032f650da171b0
parent53b725c7db127d16d1a83ed5dfd601d65fe976fb
drm/i915/error: capture uc_state after gen_state

error->device_info.has_guc, which we check in capture_uc_state, is set
in capture_gen_state, so the latter needs to be performed first.

v2: rebased

Reported-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Fixes: 7d41ef3479a6 (drm/i915: Add Guc/HuC firmware details to error state)
Cc: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180305222122.3547-3-daniele.ceraolospurio@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gpu_error.c