igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/gem_exec_faulting_reloc: Add hang detector
@ 2018-07-18 17:54 Antonio Argenziano
  2018-07-18 17:58 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Antonio Argenziano @ 2018-07-18 17:54 UTC (permalink / raw)
  To: igt-dev

Add hang detector to the test so that we fail in case of an hang caused by
the batches it submits.

Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com>
---
 tests/gem_exec_faulting_reloc.c | 30 ++++++++++++++++++++----------
 1 file changed, 20 insertions(+), 10 deletions(-)

diff --git a/tests/gem_exec_faulting_reloc.c b/tests/gem_exec_faulting_reloc.c
index 6b05e43f..9def01ba 100644
--- a/tests/gem_exec_faulting_reloc.c
+++ b/tests/gem_exec_faulting_reloc.c
@@ -39,7 +39,7 @@
 #include <sys/time.h>
 #include "drm.h"
 
-/* Testcase: Submit patches with relocations in memory that will fault
+/* Testcase: Submit batches with relocations in memory that will fault
  *
  * To be really evil, use a gtt mmap for them.
  */
@@ -111,7 +111,7 @@ static int gem_linear_blt(uint32_t *batch,
 			b += 8;
 		length -= height * 16*1024;
 	}
-	
+
 	if (length) {
 		int i = 0;
 		b[i++] = COPY_BLT_CMD_NOLEN | BLT_WRITE_ALPHA | BLT_WRITE_RGB;
@@ -160,7 +160,7 @@ static int gem_linear_blt(uint32_t *batch,
 	return (b+2 - batch) * sizeof(uint32_t);
 }
 
-static void run(int object_size)
+static void run(int fd, int object_size)
 {
 	struct drm_i915_gem_execbuffer2 execbuf;
 	struct drm_i915_gem_exec_object2 exec[3];
@@ -168,11 +168,9 @@ static void run(int object_size)
 	uint32_t buf[40];
 	uint32_t handle, handle_relocs, src, dst;
 	void *gtt_relocs;
-	int fd, len;
+	int len;
 	int ring;
 
-	fd = drm_open_driver(DRIVER_INTEL);
-	igt_require_gem(fd);
 	devid = intel_get_drm_devid(fd);
 	handle = gem_create(fd, 4096);
 	src = gem_create(fd, object_size);
@@ -237,17 +235,29 @@ static void run(int object_size)
 	gem_sync(fd, handle);
 
 	gem_close(fd, handle);
-
-	close(fd);
 }
 
 igt_main
 {
+	int fd;
+
+	igt_fixture {
+		fd = drm_open_driver(DRIVER_INTEL);
+		igt_require_gem(fd);
+
+		igt_fork_hang_detector(fd);
+	}
+
 	igt_subtest("normal")
-		run(OBJECT_SIZE);
+		run(fd, OBJECT_SIZE);
 	igt_subtest("no-prefault") {
 		igt_disable_prefault();
-		run(OBJECT_SIZE);
+		run(fd, OBJECT_SIZE);
 		igt_enable_prefault();
 	}
+
+	igt_fixture {
+		igt_stop_hang_detector();
+		close(fd);
+	}
 }
-- 
2.16.2

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [igt-dev] [PATCH i-g-t] tests/gem_exec_faulting_reloc: Add hang detector
  2018-07-18 17:54 [igt-dev] [PATCH i-g-t] tests/gem_exec_faulting_reloc: Add hang detector Antonio Argenziano
@ 2018-07-18 17:58 ` Chris Wilson
  2018-07-18 18:29   ` Antonio Argenziano
  2018-07-18 18:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
  2018-07-18 19:37 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  2 siblings, 1 reply; 5+ messages in thread
From: Chris Wilson @ 2018-07-18 17:58 UTC (permalink / raw)
  To: Antonio Argenziano, igt-dev

Quoting Antonio Argenziano (2018-07-18 18:54:01)
> Add hang detector to the test so that we fail in case of an hang caused by
> the batches it submits.

Why? Why does this test still exist?
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [igt-dev] ✓ Fi.CI.BAT: success for tests/gem_exec_faulting_reloc: Add hang detector
  2018-07-18 17:54 [igt-dev] [PATCH i-g-t] tests/gem_exec_faulting_reloc: Add hang detector Antonio Argenziano
  2018-07-18 17:58 ` Chris Wilson
@ 2018-07-18 18:19 ` Patchwork
  2018-07-18 19:37 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2018-07-18 18:19 UTC (permalink / raw)
  To: Antonio Argenziano; +Cc: igt-dev

== Series Details ==

Series: tests/gem_exec_faulting_reloc: Add hang detector
URL   : https://patchwork.freedesktop.org/series/46799/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4503 -> IGTPW_1604 =

== Summary - WARNING ==

  Minor unknown changes coming with IGTPW_1604 need to be verified
  manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in IGTPW_1604, please notify your bug team to allow them
  to document this new failure mode, which will reduce false positives in CI.

  External URL: https://patchwork.freedesktop.org/api/1.0/series/46799/revisions/1/mbox/

== Possible new issues ==

  Here are the unknown changes that may have been introduced in IGTPW_1604:

  === IGT changes ===

    ==== Warnings ====

    igt@gem_render_linear_blits@basic:
      fi-bwr-2160:        SKIP -> PASS +1

    igt@gem_render_tiled_blits@basic:
      fi-elk-e7500:       SKIP -> PASS +1
      fi-ilk-650:         SKIP -> PASS +2

    
== Known issues ==

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

  === IGT changes ===

    ==== Issues hit ====

    igt@debugfs_test@read_all_entries:
      fi-snb-2520m:       PASS -> INCOMPLETE (fdo#103713)

    igt@gem_exec_suspend@basic-s4-devices:
      {fi-kbl-8809g}:     NOTRUN -> DMESG-WARN (fdo#107139)

    igt@gem_mmap_gtt@basic-copy:
      {fi-kbl-8809g}:     NOTRUN -> DMESG-WARN (fdo#107222) +1

    igt@gem_mmap_gtt@basic-write-no-prefault:
      {fi-kbl-8809g}:     NOTRUN -> DMESG-WARN (fdo#107221) +5

    igt@gem_ringfill@basic-default-hang:
      {fi-kbl-8809g}:     NOTRUN -> DMESG-WARN (fdo#107222, fdo#107221)

    igt@kms_flip@basic-flip-vs-modeset:
      fi-glk-j4005:       PASS -> DMESG-WARN (fdo#106097, fdo#106000)

    igt@prime_vgem@basic-fence-flip:
      fi-ilk-650:         PASS -> FAIL (fdo#104008)

    
    ==== Possible fixes ====

    igt@kms_chamelium@dp-crc-fast:
      fi-kbl-7500u:       FAIL (fdo#103841) -> PASS +1

    igt@kms_flip@basic-flip-vs-dpms:
      fi-skl-6700hq:      DMESG-WARN (fdo#105998) -> PASS

    
  {name}: This element is suppressed. This means it is ignored when computing
          the status of the difference (SUCCESS, WARNING, or FAILURE).

  fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
  fdo#103841 https://bugs.freedesktop.org/show_bug.cgi?id=103841
  fdo#104008 https://bugs.freedesktop.org/show_bug.cgi?id=104008
  fdo#105998 https://bugs.freedesktop.org/show_bug.cgi?id=105998
  fdo#106000 https://bugs.freedesktop.org/show_bug.cgi?id=106000
  fdo#106097 https://bugs.freedesktop.org/show_bug.cgi?id=106097
  fdo#107139 https://bugs.freedesktop.org/show_bug.cgi?id=107139
  fdo#107221 https://bugs.freedesktop.org/show_bug.cgi?id=107221
  fdo#107222 https://bugs.freedesktop.org/show_bug.cgi?id=107222


== Participating hosts (46 -> 42) ==

  Additional (1): fi-kbl-8809g 
  Missing    (5): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-hsw-4200u 


== Build changes ==

    * IGT: IGT_4562 -> IGTPW_1604

  CI_DRM_4503: 4aa6797dfafaf527949bf55d3c8513c6902dfec2 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_1604: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1604/
  IGT_4562: 8781fd89a63eabed9359d02b50583cca67ff3673 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [igt-dev] [PATCH i-g-t] tests/gem_exec_faulting_reloc: Add hang detector
  2018-07-18 17:58 ` Chris Wilson
@ 2018-07-18 18:29   ` Antonio Argenziano
  0 siblings, 0 replies; 5+ messages in thread
From: Antonio Argenziano @ 2018-07-18 18:29 UTC (permalink / raw)
  To: Chris Wilson, igt-dev



On 18/07/18 10:58, Chris Wilson wrote:
> Quoting Antonio Argenziano (2018-07-18 18:54:01)
>> Add hang detector to the test so that we fail in case of an hang caused by
>> the batches it submits.
> 
> Why? Why does this test still exist?

Just saw that it submits something but doesn't start hang detector and 
made the change. What made it unnecessary?

Antonio

> -Chris
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [igt-dev] ✓ Fi.CI.IGT: success for tests/gem_exec_faulting_reloc: Add hang detector
  2018-07-18 17:54 [igt-dev] [PATCH i-g-t] tests/gem_exec_faulting_reloc: Add hang detector Antonio Argenziano
  2018-07-18 17:58 ` Chris Wilson
  2018-07-18 18:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
@ 2018-07-18 19:37 ` Patchwork
  2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2018-07-18 19:37 UTC (permalink / raw)
  To: Antonio Argenziano; +Cc: igt-dev

== Series Details ==

Series: tests/gem_exec_faulting_reloc: Add hang detector
URL   : https://patchwork.freedesktop.org/series/46799/
State : success

== Summary ==

= CI Bug Log - changes from IGT_4562_full -> IGTPW_1604_full =

== Summary - WARNING ==

  Minor unknown changes coming with IGTPW_1604_full need to be verified
  manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in IGTPW_1604_full, please notify your bug team to allow them
  to document this new failure mode, which will reduce false positives in CI.

  External URL: https://patchwork.freedesktop.org/api/1.0/series/46799/revisions/1/mbox/

== Possible new issues ==

  Here are the unknown changes that may have been introduced in IGTPW_1604_full:

  === IGT changes ===

    ==== Warnings ====

    igt@gem_exec_schedule@deep-blt:
      shard-kbl:          PASS -> SKIP +2

    igt@gem_exec_schedule@deep-bsd2:
      shard-kbl:          SKIP -> PASS +2

    igt@kms_atomic_interruptible@universal-setplane-cursor:
      shard-snb:          PASS -> SKIP +1

    
== Known issues ==

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

  === IGT changes ===

    ==== Issues hit ====

    igt@drv_suspend@shrink:
      shard-snb:          PASS -> INCOMPLETE (fdo#105411, fdo#106886)

    igt@kms_frontbuffer_tracking@fbc-1p-primscrn-shrfb-plflip-blt:
      shard-snb:          PASS -> INCOMPLETE (fdo#105411)

    igt@kms_setmode@basic:
      shard-apl:          PASS -> FAIL (fdo#99912)
      shard-kbl:          PASS -> FAIL (fdo#99912)

    igt@pm_rpm@system-suspend:
      shard-glk:          PASS -> FAIL (fdo#103375)

    igt@testdisplay:
      shard-glk:          PASS -> INCOMPLETE (fdo#103359, k.org#198133)

    
    ==== Possible fixes ====

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

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

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

    igt@kms_plane_lowres@pipe-a-tiling-y:
      shard-glk:          FAIL (fdo#103166) -> PASS

    igt@kms_universal_plane@cursor-fb-leak-pipe-b:
      shard-glk:          FAIL (fdo#107241) -> 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#103359 https://bugs.freedesktop.org/show_bug.cgi?id=103359
  fdo#103375 https://bugs.freedesktop.org/show_bug.cgi?id=103375
  fdo#105411 https://bugs.freedesktop.org/show_bug.cgi?id=105411
  fdo#106886 https://bugs.freedesktop.org/show_bug.cgi?id=106886
  fdo#107241 https://bugs.freedesktop.org/show_bug.cgi?id=107241
  fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
  k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133


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

  No changes in participating hosts


== Build changes ==

    * IGT: IGT_4562 -> IGTPW_1604
    * Linux: CI_DRM_4501 -> CI_DRM_4503

  CI_DRM_4501: 692d13f7b75baf0bb8c58b9784569c52d68f01e2 @ git://anongit.freedesktop.org/gfx-ci/linux
  CI_DRM_4503: 4aa6797dfafaf527949bf55d3c8513c6902dfec2 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_1604: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1604/
  IGT_4562: 8781fd89a63eabed9359d02b50583cca67ff3673 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-18 19:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-18 17:54 [igt-dev] [PATCH i-g-t] tests/gem_exec_faulting_reloc: Add hang detector Antonio Argenziano
2018-07-18 17:58 ` Chris Wilson
2018-07-18 18:29   ` Antonio Argenziano
2018-07-18 18:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-07-18 19:37 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).