From: John Harrison <john.c.harrison@intel.com>
To: Petri Latvala <petri.latvala@intel.com>
Cc: IGT-Dev@lists.freedesktop.org, Intel-GFX@lists.freedesktop.org
Subject: Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 01/11] tests/i915/i915_hangman: Add descriptions
Date: Tue, 14 Dec 2021 07:38:34 -0800 [thread overview]
Message-ID: <aa68b66c-ea91-23dd-57ce-71ebd61ed43e@intel.com> (raw)
In-Reply-To: <YbhoRiHwnkZV3awF@platvala-desk.ger.corp.intel.com>
On 12/14/2021 01:47, Petri Latvala wrote:
> On Mon, Dec 13, 2021 at 03:29:04PM -0800, John.C.Harrison@Intel.com wrote:
>> From: John Harrison <John.C.Harrison@Intel.com>
>>
>> Added descriptions of the various sub-tests and the test as a whole.
>>
>> Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
>> ---
>> tests/i915/i915_hangman.c | 11 +++++++++--
>> 1 file changed, 9 insertions(+), 2 deletions(-)
>>
>> diff --git a/tests/i915/i915_hangman.c b/tests/i915/i915_hangman.c
>> index 4c18c22db..025bb8713 100644
>> --- a/tests/i915/i915_hangman.c
>> +++ b/tests/i915/i915_hangman.c
>> @@ -46,6 +46,8 @@
>> static int device = -1;
>> static int sysfs = -1;
>>
>> +IGT_TEST_DESCRIPTION("Tests for hang detection and recovery");
>> +
>> static bool has_error_state(int dir)
>> {
>> bool result;
>> @@ -315,9 +317,9 @@ static void hangcheck_unterminated(void)
>>
>> gem_execbuf(device, &execbuf);
>> if (gem_wait(device, handle, &timeout_ns) != 0) {
>> - /* need to manually trigger an hang to clean before failing */
>> + /* need to manually trigger a hang to clean before failing */
>> igt_force_gpu_reset(device);
>> - igt_assert_f(0, "unterminated batch did not trigger an hang!");
>> + igt_assert_f(0, "unterminated batch did not trigger a hang!");
> Ouch, this is a bug that could use a drive-by fix in this same commit:
> Add a newline after that text.
>
> With that,
> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Well spotted. Will add that in.
Thanks,
John.
>
>> }
>> }
>>
>> @@ -341,9 +343,11 @@ igt_main
>> igt_require(has_error_state(sysfs));
>> }
>>
>> + igt_describe("Basic error capture");
>> igt_subtest("error-state-basic")
>> test_error_state_basic();
>>
>> + igt_describe("Per engine error capture");
>> igt_subtest_with_dynamic("error-state-capture") {
>> for_each_ctx_engine(device, ctx, e) {
>> igt_dynamic_f("%s", e->name)
>> @@ -351,6 +355,7 @@ igt_main
>> }
>> }
>>
>> + igt_describe("Per engine hang recovery (spin)");
>> igt_subtest_with_dynamic("engine-hang") {
>> int has_gpu_reset = 0;
>> struct drm_i915_getparam gp = {
>> @@ -369,6 +374,7 @@ igt_main
>> }
>> }
>>
>> + igt_describe("Per engine hang recovery (invalid CS)");
>> igt_subtest_with_dynamic("engine-error") {
>> int has_gpu_reset = 0;
>> struct drm_i915_getparam gp = {
>> @@ -386,6 +392,7 @@ igt_main
>> }
>> }
>>
>> + igt_describe("Check that executing unintialised memory causes a hang");
>> igt_subtest("hangcheck-unterminated")
>> hangcheck_unterminated();
>>
>> --
>> 2.25.1
>>
next prev parent reply other threads:[~2021-12-14 15:38 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-13 23:29 [Intel-gfx] [PATCH i-g-t 00/11] Fixes for i915_hangman and gem_exec_capture John.C.Harrison
2021-12-13 23:29 ` [Intel-gfx] [PATCH i-g-t 01/11] tests/i915/i915_hangman: Add descriptions John.C.Harrison
2021-12-14 9:47 ` [Intel-gfx] [igt-dev] " Petri Latvala
2021-12-14 15:38 ` John Harrison [this message]
2021-12-13 23:29 ` [Intel-gfx] [PATCH i-g-t 02/11] lib/hang: Fix igt_require_hang_ring to work with all engines John.C.Harrison
2021-12-13 23:29 ` [Intel-gfx] [PATCH i-g-t 03/11] tests/i915/i915_hangman: Update capture test to use engine structure John.C.Harrison
2021-12-13 23:29 ` [Intel-gfx] [PATCH i-g-t 04/11] tests/i915/i915_hangman: Explicitly test per engine reset vs full GPU reset John.C.Harrison
2021-12-21 11:28 ` [Intel-gfx] [igt-dev] " Dandamudi, Priyanka
2021-12-22 1:21 ` John Harrison
2021-12-13 23:29 ` [Intel-gfx] [PATCH i-g-t 05/11] tests/i915/i915_hangman: Add uevent test & fix detector John.C.Harrison
2021-12-13 23:29 ` [Intel-gfx] [PATCH i-g-t 06/11] tests/i915/i915_hangman: Use the correct context in hangcheck_unterminated John.C.Harrison
2021-12-13 23:29 ` [Intel-gfx] [PATCH i-g-t 07/11] tests/i915/i915_hangman: Add alive-ness test after error capture John.C.Harrison
2021-12-16 7:23 ` [Intel-gfx] [igt-dev] " Zbigniew Kempczyński
2021-12-16 20:59 ` John Harrison
2021-12-13 23:29 ` [Intel-gfx] [PATCH i-g-t 08/11] lib/store: Refactor common store code into helper function John.C.Harrison
2021-12-16 7:46 ` [Intel-gfx] [igt-dev] " Zbigniew Kempczyński
2021-12-16 22:40 ` John Harrison
2021-12-20 18:13 ` Zbigniew Kempczyński
2021-12-22 2:22 ` John Harrison
2021-12-27 6:02 ` Zbigniew Kempczyński
2022-01-13 4:05 ` John Harrison
2021-12-13 23:29 ` [Intel-gfx] [PATCH i-g-t 09/11] tests/i915/i915_hangman: Remove reliance on context persistance John.C.Harrison
2021-12-13 23:29 ` [Intel-gfx] [PATCH i-g-t 10/11] tests/i915/i915_hangman: Run background task on all engines John.C.Harrison
2021-12-13 23:29 ` [Intel-gfx] [PATCH i-g-t 11/11] tests/i915/gem_exec_fence: Configure correct context John.C.Harrison
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa68b66c-ea91-23dd-57ce-71ebd61ed43e@intel.com \
--to=john.c.harrison@intel.com \
--cc=IGT-Dev@lists.freedesktop.org \
--cc=Intel-GFX@lists.freedesktop.org \
--cc=petri.latvala@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox