Skip to contentSkip to conversation

tests/gem_close_race: Wait for work to complete before terminating test

PATCH Superseded Antonio Argenziano 3 participants 10 messages Apr 11, 2018 – Apr 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/gem_close_race: Wait for work to complete before terminating test

Make sure all outstanding work has completed before exiting the test.

---
 tests/gem_close_race.c | 4 ++++
 1 file changed, 4 insertions(+)
tests/gem_close_race.c +4 -0
index bc1127b1..11d626dc 100644
@@ -148,6 +148,8 @@ static void process(int child)
 	handle = load(fd);
 	if ((child & 63) == 63)
 		gem_read(fd, handle, 0, &handle, sizeof(handle));
+
+	gem_quiescent_gpu(fd);
 }
 
 struct crashme {
@@ -203,6 +205,8 @@ static void threads(int timeout)
 	}
 
 	timer_delete(timer);
+
+	gem_quiescent_gpu(fd);
 	close(fd);
 }
 
Signature · 6 lines
2.16.2

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#2 lore raw
Quoted 4 lines · Chris Wilson

Quoting Antonio Argenziano (2018-04-11 22:45:31)

Quoted 1 line

Make sure all outstanding work has completed before exiting the test.

Why? 10 more words to explain all...

When running a single subtest outstanding work might hang after the test ends escaping detection by the hang_detector.

More than 10 words but that is what happened to me :).

Thanks,
Antonio

Quoted 3 lines

(Hint: s/test/subtest/)
-Chris

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

Reviewed-by
#3 lore raw

Quoting Antonio Argenziano (2018-04-11 23:08:01)

Quoted 10 lines · Chris Wilson
Quoted 4 lines

Quoting Antonio Argenziano (2018-04-11 22:45:31)

Quoted 1 line

Make sure all outstanding work has completed before exiting the test.

Why? 10 more words to explain all...

When running a single subtest outstanding work might hang after the test ends escaping detection by the hang_detector.

Cool, that's the reason I thought justified the patch.

I was debating whether or not stop_hang_detector should do the quiescing, but probably best to leave it flexible and up to the caller.
-Chris
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#4 lore raw
Quoted 7 lines · Chris Wilson

Quoting Antonio Argenziano (2018-04-11 23:08:01)

Quoted 6 lines · Chris Wilson
Quoted 3 lines

Quoting Antonio Argenziano (2018-04-11 22:45:31)

Quoted 1 line

Make sure all outstanding work has completed before exiting the test.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Why? 10 more words to explain all...

When running a single subtest outstanding work might hang after the test ends escaping detection by the hang_detector.

Cool, that's the reason I thought justified the patch.

Thanks, I'll resent with an updated commit message and push.

Antonio

Quoted 6 lines

I was debating whether or not stop_hang_detector should do the quiescing, but probably best to leave it flexible and up to the caller.
-Chris

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#5 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for tests/gem_close_race: Wait for work to complete before terminating test

In reply to Antonio Argenziano
== Series Details ==

== Series Details ==

Series: tests/gem_close_race: Wait for work to complete before terminating test
URL : https://patchwork.freedesktop.org/series/41585/
State : success

== Summary ==

= CI Bug Log - changes from IGT_4423 -> IGTPW_1248 =

== Summary - SUCCESS ==

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1248/

== Known issues ==

Here are the changes found in IGTPW_1248 that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@gem_ringfill@basic-default-hang:
      fi-blb-e6850:       NOTRUN -> DMESG-WARN (fdo#101600)
      fi-pnv-d510:        NOTRUN -> DMESG-WARN (fdo#101600)

fdo#101600 https://bugs.freedesktop.org/show_bug.cgi?id=101600

== Participating hosts (27 -> 32) ==

Additional (7): fi-kbl-7567u fi-bxt-dsi fi-skl-gvtdvm fi-bdw-gvtdvm fi-pnv-d510 fi-elk-e7500 fi-blb-e6850
Missing (2): fi-ilk-m540 fi-skl-6700hq

== Build changes ==

* IGT: IGT_4423 -> IGTPW_1248
* Linux: CI_DRM_4046 -> CI_DRM_4047
* Piglit: piglit_4423 -> piglit_4425

CI_DRM_4046: d123888920ccd112851ade43a3bf1c25627c2316 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4047: b21f4ebec3a255026a780ee4a35ec5f8d9ede6cd @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1248: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1248/
IGT_4423: d502f055ac4500cada758876a512ac4f14b34851 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4423: 45e115f293fd6acc0c9647cf2d3b76be78819ba5 @ git://anongit.freedesktop.org/piglit
piglit_4425: 7cf9e743a90f31bec470912e54afb0243efdd67d @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1248/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#6 lore raw

PATCH v2 1/1 tests/gem_close_race: Wait for work to complete before terminating test

In reply to Antonio Argenziano

When running a single subtest, outstanding work might hang after the test ends therefore escaping detection by the hang_detector.

v2:
- Update commit message. (Chris)

---
 tests/gem_close_race.c | 4 ++++
 1 file changed, 4 insertions(+)
tests/gem_close_race.c +4 -0
index bc1127b1..11d626dc 100644
@@ -148,6 +148,8 @@ static void process(int child)
 	handle = load(fd);
 	if ((child & 63) == 63)
 		gem_read(fd, handle, 0, &handle, sizeof(handle));
+
+	gem_quiescent_gpu(fd);
 }
 
 struct crashme {
@@ -203,6 +205,8 @@ static void threads(int timeout)
 	}
 
 	timer_delete(timer);
+
+	gem_quiescent_gpu(fd);
 	close(fd);
 }
 
Signature · 6 lines
2.16.2

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#7 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for tests/gem_close_race: Wait for work to complete before terminating test (rev2)

In reply to Antonio Argenziano
== Series Details ==

== Series Details ==

Series: tests/gem_close_race: Wait for work to complete before terminating test (rev2)
URL : https://patchwork.freedesktop.org/series/41585/
State : success

== Summary ==

= CI Bug Log - changes from IGT_4423 -> IGTPW_1249 =

== Summary - SUCCESS ==

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1249/

== Known issues ==

Here are the changes found in IGTPW_1249 that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@gem_ringfill@basic-default-hang:
      fi-blb-e6850:       NOTRUN -> DMESG-WARN (fdo#101600)
      fi-pnv-d510:        NOTRUN -> DMESG-WARN (fdo#101600)

fdo#101600 https://bugs.freedesktop.org/show_bug.cgi?id=101600

== Participating hosts (27 -> 32) ==

Additional (7): fi-kbl-7567u fi-bxt-dsi fi-skl-gvtdvm fi-bdw-gvtdvm fi-pnv-d510 fi-elk-e7500 fi-blb-e6850
Missing (2): fi-ilk-m540 fi-skl-6700hq

== Build changes ==

* IGT: IGT_4423 -> IGTPW_1249
* Linux: CI_DRM_4046 -> CI_DRM_4047
* Piglit: piglit_4423 -> piglit_4425

CI_DRM_4046: d123888920ccd112851ade43a3bf1c25627c2316 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4047: b21f4ebec3a255026a780ee4a35ec5f8d9ede6cd @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1249: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1249/
IGT_4423: d502f055ac4500cada758876a512ac4f14b34851 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4423: 45e115f293fd6acc0c9647cf2d3b76be78819ba5 @ git://anongit.freedesktop.org/piglit
piglit_4425: 7cf9e743a90f31bec470912e54afb0243efdd67d @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1249/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#8 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for tests/gem_close_race: Wait for work to complete before terminating test

In reply to Antonio Argenziano
== Series Details ==

== Series Details ==

Series: tests/gem_close_race: Wait for work to complete before terminating test
URL : https://patchwork.freedesktop.org/series/41585/
State : success

== Summary ==

= CI Bug Log - changes from IGT_4423_full -> IGTPW_1248_full =

== Summary - SUCCESS ==

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1248/

== Known issues ==

Here are the changes found in IGTPW_1248_full that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@kms_flip@wf_vblank-ts-check:
      shard-hsw:          PASS -> FAIL (fdo#103928)

    igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-pwrite:
      shard-hsw:          PASS -> DMESG-WARN (fdo#102614)

    
    ==== Possible fixes ====

    igt@kms_flip@2x-dpms-vs-vblank-race-interruptible:
      shard-hsw:          FAIL (fdo#103060) -> PASS +1

    igt@kms_flip@2x-plain-flip-fb-recreate-interruptible:
      shard-hsw:          FAIL (fdo#100368) -> PASS +1

    igt@kms_plane_multiple@atomic-pipe-a-tiling-x:
      shard-snb:          FAIL (fdo#103166) -> PASS

    igt@kms_rotation_crc@primary-rotation-180:
      shard-snb:          FAIL (fdo#103925) -> PASS

fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102614 https://bugs.freedesktop.org/show_bug.cgi?id=102614
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#103928 https://bugs.freedesktop.org/show_bug.cgi?id=103928

== Participating hosts (5 -> 4) ==

Missing (1): shard-glkb

== Build changes ==

* IGT: IGT_4423 -> IGTPW_1248
* Linux: CI_DRM_4046 -> CI_DRM_4047
* Piglit: piglit_4423 -> piglit_4425

CI_DRM_4046: d123888920ccd112851ade43a3bf1c25627c2316 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4047: b21f4ebec3a255026a780ee4a35ec5f8d9ede6cd @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1248: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1248/
IGT_4423: d502f055ac4500cada758876a512ac4f14b34851 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4423: 45e115f293fd6acc0c9647cf2d3b76be78819ba5 @ git://anongit.freedesktop.org/piglit
piglit_4425: 7cf9e743a90f31bec470912e54afb0243efdd67d @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1248/shards.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#9 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for tests/gem_close_race: Wait for work to complete before terminating test (rev2)

In reply to Antonio Argenziano
== Series Details ==

== Series Details ==

Series: tests/gem_close_race: Wait for work to complete before terminating test (rev2)
URL : https://patchwork.freedesktop.org/series/41585/
State : success

== Summary ==

= CI Bug Log - changes from IGT_4423_full -> IGTPW_1249_full =

== Summary - SUCCESS ==

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1249/

== Known issues ==

Here are the changes found in IGTPW_1249_full that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@kms_atomic_transition@1x-modeset-transitions:
      shard-apl:          PASS -> FAIL (fdo#103207)

    igt@kms_flip@modeset-vs-vblank-race-interruptible:
      shard-hsw:          PASS -> FAIL (fdo#103060)

    igt@kms_flip@plain-flip-ts-check:
      shard-hsw:          PASS -> FAIL (fdo#100368)

    igt@kms_pipe_crc_basic@read-crc-pipe-b-frame-sequence:
      shard-kbl:          PASS -> INCOMPLETE (fdo#103665)

    igt@kms_rotation_crc@sprite-rotation-180:
      shard-snb:          PASS -> FAIL (fdo#103925)

    
    ==== Possible fixes ====

    igt@kms_flip@2x-dpms-vs-vblank-race-interruptible:
      shard-hsw:          FAIL (fdo#103060) -> PASS +1

    igt@kms_flip@2x-plain-flip-fb-recreate-interruptible:
      shard-hsw:          FAIL (fdo#100368) -> PASS +1

    igt@kms_plane_multiple@atomic-pipe-a-tiling-x:
      shard-snb:          FAIL (fdo#103166) -> PASS

    igt@kms_rotation_crc@primary-rotation-180:
      shard-snb:          FAIL (fdo#103925) -> PASS

fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
fdo#103207 https://bugs.freedesktop.org/show_bug.cgi?id=103207
fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925

== Participating hosts (5 -> 4) ==

Missing (1): shard-glkb

== Build changes ==

* IGT: IGT_4423 -> IGTPW_1249
* Linux: CI_DRM_4046 -> CI_DRM_4047
* Piglit: piglit_4423 -> piglit_4425

CI_DRM_4046: d123888920ccd112851ade43a3bf1c25627c2316 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4047: b21f4ebec3a255026a780ee4a35ec5f8d9ede6cd @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1249: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1249/
IGT_4423: d502f055ac4500cada758876a512ac4f14b34851 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4423: 45e115f293fd6acc0c9647cf2d3b76be78819ba5 @ git://anongit.freedesktop.org/piglit
piglit_4425: 7cf9e743a90f31bec470912e54afb0243efdd67d @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1249/shards.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev