drm/i915: Apply broader WaRsDisableCoarsePowerGating for guc also
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Wed, 16 Dec 2015 17:18:37 +0000 (19:18 +0200)
committerMika Kuoppala <mika.kuoppala@intel.com>
Fri, 18 Dec 2015 19:57:07 +0000 (21:57 +0200)
commit06e668ac91c93eb10bd21dfcc8891493722db29a
tree10bc4355ef38f76bdb0fe1ee615d14de7fa0ad01
parent7447a2b221cd4df3960e82478a4ee29312589611
drm/i915: Apply broader WaRsDisableCoarsePowerGating for guc also

commit 344df9809f45 ("drm/i915/skl: Disable coarse power gating up until F0")
failed to take into account that the same workaround is used in guc
when forcewake is sampled.

Wrap the condition check inside a macro and use it in both places
to fix the guc side scope.

Cc: Dave Gordon <david.s.gordon@intel.com>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Reviewed-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450286318-6854-1-git-send-email-mika.kuoppala@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/intel_pm.c