|
@@ -153,12 +153,11 @@ static int host2guc_sample_forcewake(struct intel_guc *guc,
|
|
struct i915_guc_client *client)
|
|
struct i915_guc_client *client)
|
|
{
|
|
{
|
|
struct drm_i915_private *dev_priv = guc_to_i915(guc);
|
|
struct drm_i915_private *dev_priv = guc_to_i915(guc);
|
|
- struct drm_device *dev = dev_priv->dev;
|
|
|
|
u32 data[2];
|
|
u32 data[2];
|
|
|
|
|
|
data[0] = HOST2GUC_ACTION_SAMPLE_FORCEWAKE;
|
|
data[0] = HOST2GUC_ACTION_SAMPLE_FORCEWAKE;
|
|
/* WaRsDisableCoarsePowerGating:skl,bxt */
|
|
/* WaRsDisableCoarsePowerGating:skl,bxt */
|
|
- if (!intel_enable_rc6() || NEEDS_WaRsDisableCoarsePowerGating(dev))
|
|
|
|
|
|
+ if (!intel_enable_rc6() || NEEDS_WaRsDisableCoarsePowerGating(dev_priv))
|
|
data[1] = 0;
|
|
data[1] = 0;
|
|
else
|
|
else
|
|
/* bit 0 and 1 are for Render and Media domain separately */
|
|
/* bit 0 and 1 are for Render and Media domain separately */
|