* [PATCH] [RFC] tests/intel: Add tests to run suspend without display
@ 2023-12-22 9:36 Sujaritha Sundaresan
2023-12-29 9:30 ` Gupta, Anshuman
0 siblings, 1 reply; 3+ messages in thread
From: Sujaritha Sundaresan @ 2023-12-22 9:36 UTC (permalink / raw)
To: igt-dev
Add tasts to validate s3/s2idle suspend cycle without display
module to rule out display related issues from the suspend/resume
stack.
Signed-off-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
---
tests/intel/xe_pm.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/tests/intel/xe_pm.c b/tests/intel/xe_pm.c
index 602729daf..55088e7fa 100644
--- a/tests/intel/xe_pm.c
+++ b/tests/intel/xe_pm.c
@@ -17,6 +17,7 @@
#include "igt.h"
#include "lib/igt_device.h"
#include "lib/igt_pm.h"
+#include "lib/igt_kmod.h"
#include "lib/igt_sysfs.h"
#include "lib/igt_syncobj.h"
#include "lib/intel_reg.h"
@@ -364,6 +365,30 @@ NULL));
igt_assert(in_d3(device, d_state));
}
+/**
+ * SUBTEST: s2idle-without-display
+ * Functionality: pm
+ * Description: validate the s2idle cycle without display
+ */
+
+/**
+ * SUBTEST: s3-without-display
+ * Functionality: pm
+ * Description: validate the s3 cycle without display
+ */
+
+static void
+test_suspend_without_display(int state)
+{
+ igt_kmsg(KMSG_INFO "Unloading Xe\n");
+ igt_assert_eq(igt_xe_driver_unload(),0);
+
+ igt_kmsg(KMSG_INFO "Re-loading Xe\n");
+ igt_assert_eq(igt_xe_driver_load("enable_display=0"),0);
+
+ igt_system_suspend_autoresume(state, SUSPEND_TEST_NONE);
+}
+
/**
* SUBTEST: vram-d3cold-threshold
* Functionality: pm - d3cold
@@ -536,6 +561,14 @@ igt_main
}
}
+ igt_describe("Validate s2idle without display");
+ igt_subtest("s2idle-without-display")
+ test_suspend_without_display(SUSPEND_STATE_FREEZE);
+
+ igt_describe("Validate s3 without display");
+ igt_subtest("s3-without-display")
+ test_suspend_without_display(SUSPEND_STATE_S3);
+
igt_describe("Validate whether card is limited to d3hot, if vram used > vram threshold");
igt_subtest("vram-d3cold-threshold") {
orig_threshold = get_vram_d3cold_threshold(sysfs_fd);
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] [RFC] tests/intel: Add tests to run suspend without display
2023-12-22 9:36 [PATCH] [RFC] tests/intel: Add tests to run suspend without display Sujaritha Sundaresan
@ 2023-12-29 9:30 ` Gupta, Anshuman
2024-01-02 9:04 ` Sundaresan, Sujaritha
0 siblings, 1 reply; 3+ messages in thread
From: Gupta, Anshuman @ 2023-12-29 9:30 UTC (permalink / raw)
To: Sundaresan, Sujaritha, igt-dev@lists.freedesktop.org
> -----Original Message-----
> From: Sundaresan, Sujaritha <sujaritha.sundaresan@intel.com>
> Sent: Friday, December 22, 2023 3:07 PM
> To: igt-dev@lists.freedesktop.org
> Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Sundaresan, Sujaritha
> <sujaritha.sundaresan@intel.com>
> Subject: [PATCH] [RFC] tests/intel: Add tests to run suspend without display
>
> Add tests to validate s3/s2idle suspend cycle without display module to rule
> out display related issues from the suspend/resume stack.
Can you extend the existing xe_pm s2idle/s3 test which also submits the workload.
Idea is to get the existing test results without display module.
Thanks,
Anshuman Gupta.
>
> Signed-off-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
> ---
> tests/intel/xe_pm.c | 33 +++++++++++++++++++++++++++++++++
> 1 file changed, 33 insertions(+)
>
> diff --git a/tests/intel/xe_pm.c b/tests/intel/xe_pm.c index
> 602729daf..55088e7fa 100644
> --- a/tests/intel/xe_pm.c
> +++ b/tests/intel/xe_pm.c
> @@ -17,6 +17,7 @@
> #include "igt.h"
> #include "lib/igt_device.h"
> #include "lib/igt_pm.h"
> +#include "lib/igt_kmod.h"
> #include "lib/igt_sysfs.h"
> #include "lib/igt_syncobj.h"
> #include "lib/intel_reg.h"
> @@ -364,6 +365,30 @@ NULL));
> igt_assert(in_d3(device, d_state));
> }
>
> +/**
> + * SUBTEST: s2idle-without-display
> + * Functionality: pm
> + * Description: validate the s2idle cycle without display */
> +
> +/**
> + * SUBTEST: s3-without-display
> + * Functionality: pm
> + * Description: validate the s3 cycle without display */
> +
> +static void
> +test_suspend_without_display(int state) {
> + igt_kmsg(KMSG_INFO "Unloading Xe\n");
> + igt_assert_eq(igt_xe_driver_unload(),0);
> +
> + igt_kmsg(KMSG_INFO "Re-loading Xe\n");
> + igt_assert_eq(igt_xe_driver_load("enable_display=0"),0);
> +
> + igt_system_suspend_autoresume(state, SUSPEND_TEST_NONE); }
> +
> /**
> * SUBTEST: vram-d3cold-threshold
> * Functionality: pm - d3cold
> @@ -536,6 +561,14 @@ igt_main
> }
> }
>
> + igt_describe("Validate s2idle without display");
> + igt_subtest("s2idle-without-display")
> + test_suspend_without_display(SUSPEND_STATE_FREEZE);
> +
> + igt_describe("Validate s3 without display");
> + igt_subtest("s3-without-display")
> + test_suspend_without_display(SUSPEND_STATE_S3);
> +
> igt_describe("Validate whether card is limited to d3hot, if vram used >
> vram threshold");
> igt_subtest("vram-d3cold-threshold") {
> orig_threshold = get_vram_d3cold_threshold(sysfs_fd);
> --
> 2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] [RFC] tests/intel: Add tests to run suspend without display
2023-12-29 9:30 ` Gupta, Anshuman
@ 2024-01-02 9:04 ` Sundaresan, Sujaritha
0 siblings, 0 replies; 3+ messages in thread
From: Sundaresan, Sujaritha @ 2024-01-02 9:04 UTC (permalink / raw)
To: Gupta, Anshuman, igt-dev@lists.freedesktop.org
On 12/29/2023 3:00 PM, Gupta, Anshuman wrote:
>
>> -----Original Message-----
>> From: Sundaresan, Sujaritha <sujaritha.sundaresan@intel.com>
>> Sent: Friday, December 22, 2023 3:07 PM
>> To: igt-dev@lists.freedesktop.org
>> Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Sundaresan, Sujaritha
>> <sujaritha.sundaresan@intel.com>
>> Subject: [PATCH] [RFC] tests/intel: Add tests to run suspend without display
>> Add tests to validate s3/s2idle suspend cycle without display module to rule
>> out display related issues from the suspend/resume stack.
> Can you extend the existing xe_pm s2idle/s3 test which also submits the workload.
> Idea is to get the existing test results without display module.
> Thanks,
> Anshuman Gupta.
The last time I checked those tests are difficult to run for only
s2idle/s3, they run the full suite from s0-s4. But let me double check.
Thanks,
Suja
>> Signed-off-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
>> ---
>> tests/intel/xe_pm.c | 33 +++++++++++++++++++++++++++++++++
>> 1 file changed, 33 insertions(+)
>>
>> diff --git a/tests/intel/xe_pm.c b/tests/intel/xe_pm.c index
>> 602729daf..55088e7fa 100644
>> --- a/tests/intel/xe_pm.c
>> +++ b/tests/intel/xe_pm.c
>> @@ -17,6 +17,7 @@
>> #include "igt.h"
>> #include "lib/igt_device.h"
>> #include "lib/igt_pm.h"
>> +#include "lib/igt_kmod.h"
>> #include "lib/igt_sysfs.h"
>> #include "lib/igt_syncobj.h"
>> #include "lib/intel_reg.h"
>> @@ -364,6 +365,30 @@ NULL));
>> igt_assert(in_d3(device, d_state));
>> }
>>
>> +/**
>> + * SUBTEST: s2idle-without-display
>> + * Functionality: pm
>> + * Description: validate the s2idle cycle without display */
>> +
>> +/**
>> + * SUBTEST: s3-without-display
>> + * Functionality: pm
>> + * Description: validate the s3 cycle without display */
>> +
>> +static void
>> +test_suspend_without_display(int state) {
>> + igt_kmsg(KMSG_INFO "Unloading Xe\n");
>> + igt_assert_eq(igt_xe_driver_unload(),0);
>> +
>> + igt_kmsg(KMSG_INFO "Re-loading Xe\n");
>> + igt_assert_eq(igt_xe_driver_load("enable_display=0"),0);
>> +
>> + igt_system_suspend_autoresume(state, SUSPEND_TEST_NONE); }
>> +
>> /**
>> * SUBTEST: vram-d3cold-threshold
>> * Functionality: pm - d3cold
>> @@ -536,6 +561,14 @@ igt_main
>> }
>> }
>>
>> + igt_describe("Validate s2idle without display");
>> + igt_subtest("s2idle-without-display")
>> + test_suspend_without_display(SUSPEND_STATE_FREEZE);
>> +
>> + igt_describe("Validate s3 without display");
>> + igt_subtest("s3-without-display")
>> + test_suspend_without_display(SUSPEND_STATE_S3);
>> +
>> igt_describe("Validate whether card is limited to d3hot, if vram used >
>> vram threshold");
>> igt_subtest("vram-d3cold-threshold") {
>> orig_threshold = get_vram_d3cold_threshold(sysfs_fd);
>> --
>> 2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-02 9:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-22 9:36 [PATCH] [RFC] tests/intel: Add tests to run suspend without display Sujaritha Sundaresan
2023-12-29 9:30 ` Gupta, Anshuman
2024-01-02 9:04 ` Sundaresan, Sujaritha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox