i915/gem_exec_create: Added test description for test case
PATCH 1/1 i915/gem_exec_create: Added test description for test case
From: sai gowtham <[email protected]>
Added test description for test and to all 3 subtests.
--- tests/i915/gem_exec_create.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
tests/i915/gem_exec_create.c +9 -1
@@ -42,6 +42,10 @@#include "i915/gem.h" #include "igt.h" +IGT_TEST_DESCRIPTION ("\n This test runs an uninterrupted loop within the specified timeouts" +" with different flags & ncpus combinations and checks if there are any" +" missed interrupts reported from the driver." ); +#define ENGINE_FLAGS (I915_EXEC_RING_MASK | I915_EXEC_BSD_MASK)static double elapsed (const struct timespec *start,const struct timespec *end)
@@ -133,12 +137,16 @@ igt_mainigt_fork_hang_detector (device); } - +igt_describe ("Runs single uninterrupted loop for 2s." ); igt_subtest("basic")all (device,0 ,2 ,1 ); + +igt_describe ("Runs single uninterrupted loop for 20s." ); igt_subtest("forked")all (device,0 ,20 , ncpus); +igt_describe ("Runs single uninterrupted loop with" +" different flag combination for 20s." ); igt_subtest("madvise")all (device,LEAK ,20 ,1 );
Signature · 6 lines
2.25.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 25 lines · On Tue, Jun 30, 2020 at 12:11:10PM +0530, [email protected] wrote:
From: sai gowtham <[email protected]>
Added test description for test and to all 3 subtests.
Signed-off-by sai gowtham <[email protected]>--- tests/i915/gem_exec_create.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)tests/i915/gem_exec_create.c +4
-0@@ -42,6 +42,10 @@#include "i915/gem.h" #include "igt.h" +IGT_TEST_DESCRIPTION ("\n This test runs an uninterrupted loop within the specified timeouts" +" with different flags & ncpus combinations and checks if there are any" +" missed interrupts reported from the driver." ); +#define ENGINE_FLAGS (I915_EXEC_RING_MASK | I915_EXEC_BSD_MASK)static double elapsed (const struct timespec *start,const struct timespec *end)
tests/i915/gem_exec_create.c igt_main · line 144
Quoted 9 lines
tests/i915/gem_exec_create.c +3
-1@@ -133,12 +137,16 @@ igt_mainigt_fork_hang_detector (device); } - +igt_describe ("Runs single uninterrupted loop for 2s." ); igt_subtest("basic")all (device,0 ,2 ,1 ); + +igt_describe ("Runs single uninterrupted loop for 20s." );
Can you add more information here . What happens in Forked subtest
tests/i915/gem_exec_create.c igt_main · line 149
Quoted 5 lines
tests/i915/gem_exec_create.c +2
-0igt_subtest("forked")all (device,0 ,20 , ncpus); +igt_describe ("Runs single uninterrupted loop with" +" different flag combination for 20s." );
Same as above , Need more description of subtest . What does LEAK here signify . git blame/log would give you moe information to update this .
Quoted 6 lines
tests/i915/gem_exec_create.c +0
-0igt_subtest("madvise")all (device,LEAK ,20 ,1 );Signature · 1 line
2.25.0
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoting [email protected] (2020-06-30 07:41:10)
Quoted 14 lines
From: sai gowtham <[email protected]>
Added test description for test and to all 3 subtests.
Signed-off-by sai gowtham <[email protected]>--- tests/i915/gem_exec_create.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)tests/i915/gem_exec_create.c +0
-0
tests/i915/gem_exec_create.c line 47
Quoted 6 lines
tests/i915/gem_exec_create.c +3
-0@@ -42,6 +42,10 @@#include "i915/gem.h" #include "igt.h" +IGT_TEST_DESCRIPTION ("\n This test runs an uninterrupted loop within the specified timeouts" +" with different flags & ncpus combinations and checks if there are any" +" missed interrupts reported from the driver." );
No. The intent of the test is to flood the driver with transient active objects and check we don't kill the system under the mempressure. Some of the symptoms we look for include mysterious hangs.
tests/i915/gem_exec_create.c igt_main · line 136
Quoted 9 lines
tests/i915/gem_exec_create.c +1
-1+#define ENGINE_FLAGS (I915_EXEC_RING_MASK | I915_EXEC_BSD_MASK)static double elapsed (const struct timespec *start,const struct timespec *end)@@ -133,12 +137,16 @@ igt_mainigt_fork_hang_detector (device); } -
Lost visual whitespacing.
tests/i915/gem_exec_create.c igt_main · line 149
Quoted 10 lines
tests/i915/gem_exec_create.c +5
-0+igt_describe ("Runs single uninterrupted loop for 2s." ); igt_subtest("basic")all (device,0 ,2 ,1 ); + +igt_describe ("Runs single uninterrupted loop for 20s." ); igt_subtest("forked")all (device,0 ,20 , ncpus); +igt_describe ("Runs single uninterrupted loop with" +" different flag combination for 20s." );
That is abysmal. We already know the above and more from the test setup itself. The difference in the test intentions should be discernible from the different path coverage in the driver...
Quick sanitycheck; concurrent execution; forced reclaim, behaving like a bad application leaking its bo cache.
tests/i915/gem_exec_create.c igt_main · line 151
Quoted 2 lines
tests/i915/gem_exec_create.c +0
-0igt_subtest("madvise")all (device,LEAK ,20 ,1 );
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Thank you for your inputs and correcting my understanding Chris, Sure I'll make changes accordingly.
-----Original Message-----
From: Chris Wilson <[email protected]>
Sent: Tuesday, June 30, 2020 2:58 PM
To: Melkaveri, Arjun <[email protected]>; [email protected]; Ch, Sai Gowtham <[email protected]>
Subject: Re: [igt-dev] [PATCH i-g-t] i915/gem_exec_create: Added test description for test case
Quoting [email protected] (2020-06-30 07:41:10)
Quoted 14 lines
From: sai gowtham <[email protected]>
Added test description for test and to all 3 subtests.
Signed-off-by sai gowtham <[email protected]>--- tests/i915/gem_exec_create.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/tests/i915/gem_exec_create.cindexee7d4e5d..5236d477100644
tests/i915/gem_exec_create.c line 47
Quoted 6 lines
tests/i915/gem_exec_create.c +3
-0@@ -42,6 +42,10 @@#include "i915/gem.h" #include "igt.h" +IGT_TEST_DESCRIPTION ("\n This test runs an uninterrupted loop within the specified timeouts" +" with different flags & ncpus combinations and checks if there are any" +" missed interrupts reported from the driver." );
No. The intent of the test is to flood the driver with transient active objects and check we don't kill the system under the mempressure. Some of the symptoms we look for include mysterious hangs.
Quoted 9 lines
tests/i915/gem_exec_create.c +1
-0+#define ENGINE_FLAGS (I915_EXEC_RING_MASK | I915_EXEC_BSD_MASK) static double elapsed(const struct timespec *start, const structtimespec *end) @@ -133,12 +137,16 @@
igt_mainigt_fork_hang_detector(device); }-
Lost visual whitespacing.
tests/i915/gem_exec_create.c igt_main · line 149
Quoted 10 lines
tests/i915/gem_exec_create.c +5
-0+igt_describe ("Runs single uninterrupted loop for 2s." ); igt_subtest("basic")all (device,0 ,2 ,1 ); + +igt_describe ("Runs single uninterrupted loop for 20s." ); igt_subtest("forked")all (device,0 ,20 , ncpus); +igt_describe ("Runs single uninterrupted loop with" +" different flag combination for 20s." );
That is abysmal. We already know the above and more from the test setup itself. The difference in the test intentions should be discernible from the different path coverage in the driver...
Quick sanitycheck; concurrent execution; forced reclaim, behaving like a bad application leaking its bo cache.
Quoted 2 lines
igt_subtest("madvise")
all(device, LEAK, 20, 1);_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev