[igt-dev] [PATCH i-g-t 1/1] tests/i915/i915_suspend: Extend system-suspend-without-i915 to support suspend-to-idle

Gupta, Anshuman anshuman.gupta at intel.com
Mon Apr 25 08:08:10 UTC 2022



> -----Original Message-----
> From: Tauro, Riana <riana.tauro at intel.com>
> Sent: Monday, April 25, 2022 1:15 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Tauro, Riana <riana.tauro at intel.com>; Gupta, Anshuman
> <anshuman.gupta at intel.com>
> Subject: [PATCH i-g-t 1/1] tests/i915/i915_suspend: Extend system-suspend-
> without-i915 to support suspend-to-idle
> 
> From: "Tauro, Riana" <riana.tauro at intel.com>
> 
> Extending the test system-suspend-without-i915 to run a suspend-to-idle cycle
> 
> Signed-off-by: Tauro, Riana <riana.tauro at intel.com>
> ---
>  tests/i915/i915_suspend.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/i915/i915_suspend.c b/tests/i915/i915_suspend.c index
> d34b7a5d..9a09f643 100644
> --- a/tests/i915/i915_suspend.c
> +++ b/tests/i915/i915_suspend.c
> @@ -209,6 +209,7 @@ test_suspend_without_i915(void)
>  	igt_kmsg(KMSG_INFO "Unloading i915\n");
>  	igt_assert_eq(igt_i915_driver_unload(),0);
> 
> +	igt_system_suspend_autoresume(SUSPEND_STATE_FREEZE,
> +SUSPEND_TEST_NONE);
>  	igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
> SUSPEND_TEST_NONE);
Please create two separate sub test.
one for s3: SUSPEND_STATE_MEM
              s2idle:  SUSPEND_STATE_FREEZE

Thanks,
Anshuman Gupta.
> 
>  	igt_kmsg(KMSG_INFO "Re-loading i915 \n");
> --
> 2.25.1



More information about the igt-dev mailing list