On Fri, Feb 24, 2017 at 11:05:28AM -0800, Michel Thierry wrote: > The firmware may change between the hang and cat /sys/class/drm/card0/error > > Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > Signed-off-by: Michel Thierry <michel.thierry@xxxxxxxxx> Looks sane... > --- > drivers/gpu/drm/i915/i915_drv.h | 4 ++++ > drivers/gpu/drm/i915/i915_gpu_error.c | 22 ++++++++++++++++------ > 2 files changed, 20 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h > index a74b87b1b5a9..3b0cff05f5f7 100644 > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -953,6 +953,10 @@ struct i915_gpu_state { > u32 gab_ctl; > u32 gfx_mode; > > + /* Firmware load state */ > + u32 dmc_loaded; Can dmc_version be zero? i.e. Does !0 => dmc_loaded? > + u32 dmc_version; -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx