drm/i915/guc: Fix a bug in GuC status check
authorAlex Dai <yu.dai@intel.com>
Tue, 22 Sep 2015 20:48:40 +0000 (13:48 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Sep 2015 08:20:00 +0000 (10:20 +0200)
commit0d44d3fa2b9089b0039118351773d465204ad581
tree2e0b3c9603ede9f864b008e6cfd6d2e575242a80
parent124abe076fd8b360dd7c651046cb8b204268efeb
drm/i915/guc: Fix a bug in GuC status check

Bit 16 of GuC status indicates resuming from RC6. The LAPIC_DONE
status is a reliable readiness flag only when resuming from RC6.
This fix a racing issue that allocation of doorbell fails whilst
GuC init is not finished.

Signed-off-by: Alex Dai <yu.dai@intel.com>
Reviewed-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_guc_reg.h
drivers/gpu/drm/i915/intel_guc_loader.c