From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1CE806E5A0 for ; Thu, 15 Jul 2021 07:05:42 +0000 (UTC) From: Anshuman Gupta Date: Thu, 15 Jul 2021 12:17:31 +0530 Message-Id: <20210715064731.4484-1-anshuman.gupta@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t] tests/i915_pm_dc: Fix platform version check List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org List-ID: 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. Signed-off-by: Anshuman Gupta --- tests/i915/i915_pm_dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/i915/i915_pm_dc.c b/tests/i915/i915_pm_dc.c index 0301fecc..3fe40e9d 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 { -- 2.26.2 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev