All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915_pm_dc: Fix platform version check
@ 2021-07-15  6:47 Anshuman Gupta
  2021-07-15  7:13 ` Sharma, Swati2
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Anshuman Gupta @ 2021-07-15  6:47 UTC (permalink / raw)
  To: igt-dev

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-07-22 17:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-15  6:47 [igt-dev] [PATCH i-g-t] tests/i915_pm_dc: Fix platform version check Anshuman Gupta
2021-07-15  7:13 ` 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

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.