mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +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);
|
fd = open("/sys/kernel/debug/dri/0/i915_forcewake_user", O_RDONLY);
|
||||||
igt_require(fd);
|
igt_require(fd);
|
||||||
|
|
||||||
igt_assert(wait_for_active());
|
if (has_runtime_pm) {
|
||||||
sleep(10);
|
igt_assert(wait_for_active());
|
||||||
igt_assert(wait_for_active());
|
sleep(10);
|
||||||
|
igt_assert(wait_for_active());
|
||||||
|
} else {
|
||||||
|
igt_assert(wait_for_suspended());
|
||||||
|
}
|
||||||
|
|
||||||
rc = close(fd);
|
rc = close(fd);
|
||||||
igt_assert(rc == 0);
|
igt_assert(rc == 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user