mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-25 18:57:41 +00:00
pm_pc8: add system-suspend subtest
Signed-off-by: Imre Deak <imre.deak@intel.com>
This commit is contained in:
parent
4e4ff4c1d1
commit
351e7d3950
@ -47,6 +47,7 @@
|
|||||||
#include "intel_io.h"
|
#include "intel_io.h"
|
||||||
#include "intel_chipset.h"
|
#include "intel_chipset.h"
|
||||||
#include "ioctl_wrappers.h"
|
#include "ioctl_wrappers.h"
|
||||||
|
#include "igt_aux.h"
|
||||||
#include "igt_kms.h"
|
#include "igt_kms.h"
|
||||||
#include "igt_debugfs.h"
|
#include "igt_debugfs.h"
|
||||||
|
|
||||||
@ -1472,6 +1473,14 @@ static void stay_subtest(void)
|
|||||||
sleep(600);
|
sleep(600);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void system_suspend_subtest(void)
|
||||||
|
{
|
||||||
|
disable_all_screens(&ms_data);
|
||||||
|
igt_assert(wait_for_suspended());
|
||||||
|
igt_system_suspend_autoresume();
|
||||||
|
igt_assert(wait_for_suspended());
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int rounds = 50;
|
int rounds = 50;
|
||||||
@ -1560,6 +1569,10 @@ int main(int argc, char *argv[])
|
|||||||
modeset_subtest(SCREEN_TYPE_ANY, rounds,
|
modeset_subtest(SCREEN_TYPE_ANY, rounds,
|
||||||
WAIT_STATUS | WAIT_EXTRA);
|
WAIT_STATUS | WAIT_EXTRA);
|
||||||
|
|
||||||
|
/* System suspend */
|
||||||
|
igt_subtest("system-suspend")
|
||||||
|
system_suspend_subtest();
|
||||||
|
|
||||||
/* GEM stress */
|
/* GEM stress */
|
||||||
igt_subtest("gem-execbuf-stress")
|
igt_subtest("gem-execbuf-stress")
|
||||||
gem_execbuf_stress_subtest(rounds, WAIT_STATUS);
|
gem_execbuf_stress_subtest(rounds, WAIT_STATUS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user