mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 08:56:11 +00:00
tests/sysfs_rc6_residency: add some sleep before testing
That way I can run i-g-t on my ivb without spurious failures. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
f841f4028c
commit
ee014dbb8d
@ -66,6 +66,10 @@ int main(int argc, char *argv[])
|
|||||||
ret = asprintf(&path, "/sys/class/drm/card%d/power/rc6_enable", device);
|
ret = asprintf(&path, "/sys/class/drm/card%d/power/rc6_enable", device);
|
||||||
assert(ret != -1);
|
assert(ret != -1);
|
||||||
|
|
||||||
|
/* For some reason my ivb isn't idle even after syncing up with the gpu.
|
||||||
|
* Let's add a sleept just to make it happy. */
|
||||||
|
sleep(5);
|
||||||
|
|
||||||
if (readit(path) == 0)
|
if (readit(path) == 0)
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user