diff options
author | Anshuman Gupta <anshuman.gupta@intel.com> | 2021-07-19 17:36:32 +0530 |
---|---|---|
committer | Swati Sharma <swati2.sharma@intel.com> | 2021-07-23 14:01:20 +0530 |
commit | 784dca328ac03b97da517008103b903eca100170 (patch) | |
tree | bd2fcf349b3295d5f98babfd11667fdbd0b44f17 /tests/i915/i915_pm_dc.c | |
parent | f3994c2cd99a1acfe991a8cc838a387dcb36598a (diff) |
tests/i915_pm_dc: Fix platform version check
setup_dc_dpms() disables i915 runtime suspend to execute
dc{5,6}-dpms for the platforms has DC9 states to avoid
counter reset issue. With recent changes now AT_LEAST_GEN()
macro checks for grphics_ver, fix it with display_ver.
Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Diffstat (limited to 'tests/i915/i915_pm_dc.c')
-rw-r--r-- | tests/i915/i915_pm_dc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/i915_pm_dc.c b/tests/i915/i915_pm_dc.c index 53840579..9d0a15d8 100644 --- a/tests/i915/i915_pm_dc.c +++ b/tests/i915/i915_pm_dc.c @@ -337,7 +337,7 @@ static void cleanup_dc_dpms(data_t *data) static void setup_dc_dpms(data_t *data) { if (IS_BROXTON(data->devid) || IS_GEMINILAKE(data->devid) || - AT_LEAST_GEN(data->devid, 11)) { + intel_display_ver(data->devid) >= 11) { igt_disable_runtime_pm(); data->runtime_suspend_disabled = true; } else { |