All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anshuman Gupta <anshuman.gupta@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] tests/i915_pm_dc: Fix platform version check
Date: Thu, 15 Jul 2021 12:17:31 +0530	[thread overview]
Message-ID: <20210715064731.4484-1-anshuman.gupta@intel.com> (raw)

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 <anshuman.gupta@intel.com>
---
 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

             reply	other threads:[~2021-07-15  7:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-15  6:47 Anshuman Gupta [this message]
2021-07-15  7:13 ` [igt-dev] [PATCH i-g-t] tests/i915_pm_dc: Fix platform version check Sharma, Swati2
2021-07-15 13:35 ` [igt-dev] ✗ Fi.CI.BUILD: failure for tests/i915_pm_dc: Fix platform version check (rev2) Patchwork
2021-07-19 12:06 ` [igt-dev] [REBASED] tests/i915_pm_dc: Fix platform version check Anshuman Gupta
2021-07-19 13:05 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/i915_pm_dc: Fix platform version check (rev3) Patchwork
     [not found] ` <162671450262.8480.1915025964453256974@emeril.freedesktop.org>
2021-07-22 11:28   ` [igt-dev] ✗ Fi.CI.IGT: failure " Gupta, Anshuman
2021-07-22 17:18     ` Vudum, Lakshminarayana
2021-07-22 16:03 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210715064731.4484-1-anshuman.gupta@intel.com \
    --to=anshuman.gupta@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.