diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_runtime_pm.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_runtime_pm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c index 4350a5270423..9e9501f82f06 100644 --- a/drivers/gpu/drm/i915/intel_runtime_pm.c +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c | |||
@@ -509,7 +509,7 @@ static bool hsw_power_well_enabled(struct drm_i915_private *dev_priv, | |||
509 | * BIOS's own request bits, which are forced-on for these power wells | 509 | * BIOS's own request bits, which are forced-on for these power wells |
510 | * when exiting DC5/6. | 510 | * when exiting DC5/6. |
511 | */ | 511 | */ |
512 | if (IS_GEN9(dev_priv) && !IS_GEN9_LP(dev_priv) && | 512 | if (IS_GEN(dev_priv, 9) && !IS_GEN9_LP(dev_priv) && |
513 | (id == SKL_DISP_PW_1 || id == SKL_DISP_PW_MISC_IO)) | 513 | (id == SKL_DISP_PW_1 || id == SKL_DISP_PW_MISC_IO)) |
514 | val |= I915_READ(regs->bios); | 514 | val |= I915_READ(regs->bios); |
515 | 515 | ||
@@ -3058,7 +3058,7 @@ static uint32_t get_allowed_dc_mask(const struct drm_i915_private *dev_priv, | |||
3058 | * suspend/resume, so allow it unconditionally. | 3058 | * suspend/resume, so allow it unconditionally. |
3059 | */ | 3059 | */ |
3060 | mask = DC_STATE_EN_DC9; | 3060 | mask = DC_STATE_EN_DC9; |
3061 | } else if (IS_GEN10(dev_priv) || IS_GEN9_BC(dev_priv)) { | 3061 | } else if (IS_GEN(dev_priv, 10) || IS_GEN9_BC(dev_priv)) { |
3062 | max_dc = 2; | 3062 | max_dc = 2; |
3063 | mask = 0; | 3063 | mask = 0; |
3064 | } else if (IS_GEN9_LP(dev_priv)) { | 3064 | } else if (IS_GEN9_LP(dev_priv)) { |