mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
tests/pm_pc8: fix debugfs-forcewake-user for PC8-only cases
We don't wake up from forcewake when we only have PC8, but not runtime PM, so make the test pass. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
63e4dafb32
commit
19c8d5f4ff
@ -985,9 +985,13 @@ static void debugfs_forcewake_user_subtest(void)
|
||||
fd = open("/sys/kernel/debug/dri/0/i915_forcewake_user", O_RDONLY);
|
||||
igt_require(fd);
|
||||
|
||||
igt_assert(wait_for_active());
|
||||
sleep(10);
|
||||
igt_assert(wait_for_active());
|
||||
if (has_runtime_pm) {
|
||||
igt_assert(wait_for_active());
|
||||
sleep(10);
|
||||
igt_assert(wait_for_active());
|
||||
} else {
|
||||
igt_assert(wait_for_suspended());
|
||||
}
|
||||
|
||||
rc = close(fd);
|
||||
igt_assert(rc == 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user