lib: Ask the kernel to quiesce the GPU
PATCH 1/1 lib: Ask the kernel to quiesce the GPU
Since the introduction of debugfs/i915_drop_caches, we have offered the ability to wait upon all outstanding batches. This is more efficient and less error prone (one example is the use of context priorities, we have to idle at the lowest in order not to jump over any low priority tasks we want to wait upon) than trying to do it all in userspace. Though we could if we wanted to, it's just easier to use the existing facility designed for the purpose -- that we were already partially using!
Note that debugfs/i915_drop_caches has only existed since v4.2.
--- lib/drmtest.c | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-)
lib/drmtest.c +2 -27
@@ -160,35 +160,10 @@ static bool has_known_intel_chipset(int fd)*/ void gem_quiescent_gpu (int fd) { -uint32_t bbe =MI_BATCH_BUFFER_END ; -struct drm_i915_gem_execbuffer2 execbuf; -struct drm_i915_gem_exec_object2 obj; -unsigned ring; -igt_terminate_spin_batches (); -memset (&obj,0 ,sizeof (obj)); - obj.handle =gem_create (fd,4096 ); -gem_write (fd, obj.handle,0 , &bbe,sizeof (&bbe)); - -memset (&execbuf,0 ,sizeof (execbuf)); - execbuf.buffers_ptr =to_user_pointer (&obj); - execbuf.buffer_count =1 ; - -for (ring =0 ; ring <1 <<6 ; ring++) { - execbuf.flags = ring; -__gem_execbuf (fd, &execbuf); - } - -if (gem_has_bsd2 (fd)) { - execbuf.flags =I915_EXEC_BSD | (2 <<13 ); -__gem_execbuf (fd, &execbuf); - } - -gem_sync (fd, obj.handle); -gem_close (fd, obj.handle); - -igt_drop_caches_set (fd,DROP_RETIRE |DROP_IDLE |DROP_FREED ); +igt_drop_caches_set (fd, +DROP_ACTIVE |DROP_RETIRE |DROP_IDLE |DROP_FREED ); }/**
Signature · 6 lines
2.15.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for lib: Ask the kernel to quiesce the GPU (rev3)
== Series Details ==
== Series Details ==
Series: lib: Ask the kernel to quiesce the GPU (rev3)
URL : https://patchwork.freedesktop.org/series/31850/
State : failure
== Summary ==
IGT patchset tested on top of latest successful build f370d5903689f37620e006f004a91d6bdeac7c16 lib/i915: Query semaphore status using GETPARAM
with latest DRM-Tip kernel build CI_DRM_33465f7fd97a513a drm-tip: 2017y-11m-14d-21h-04m-27s UTC integration manifest
No testlist changes.
Test chamelium:
Subgroup dp-crc-fast:
fail -> PASS (fi-kbl-7500u) fdo#102514
Test gem_sync:
Subgroup basic-all:
pass -> DMESG-FAIL (fi-blb-e6850)
pass -> FAIL (fi-pnv-d510)
Test kms_busy:
Subgroup basic-flip-a:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-flip-b:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-flip-c:
skip -> PASS (fi-hsw-4770r)
Test kms_cursor_legacy:
Subgroup basic-busy-flip-before-cursor-atomic:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-busy-flip-before-cursor-legacy:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-flip-after-cursor-atomic:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-flip-after-cursor-legacy:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-flip-after-cursor-varying-size:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-flip-before-cursor-atomic:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-flip-before-cursor-legacy:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-flip-before-cursor-varying-size:
skip -> PASS (fi-hsw-4770r)
Test kms_flip:
Subgroup basic-flip-vs-dpms:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-flip-vs-modeset:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-flip-vs-wf_vblank:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-plain-flip:
skip -> PASS (fi-hsw-4770r)
Test kms_frontbuffer_tracking:
Subgroup basic:
skip -> PASS (fi-hsw-4770r)
Test kms_pipe_crc_basic:
Subgroup hang-read-crc-pipe-a:
skip -> PASS (fi-hsw-4770r)
Subgroup hang-read-crc-pipe-b:
skip -> PASS (fi-hsw-4770r)
Subgroup hang-read-crc-pipe-c:
skip -> PASS (fi-hsw-4770r)
Subgroup nonblocking-crc-pipe-a:
skip -> PASS (fi-hsw-4770r)
Subgroup nonblocking-crc-pipe-a-frame-sequence:
skip -> PASS (fi-hsw-4770r)
Subgroup nonblocking-crc-pipe-b:
skip -> PASS (fi-hsw-4770r)
Subgroup nonblocking-crc-pipe-b-frame-sequence:
skip -> PASS (fi-hsw-4770r)
Subgroup nonblocking-crc-pipe-c:
skip -> PASS (fi-hsw-4770r)
Subgroup nonblocking-crc-pipe-c-frame-sequence:
skip -> PASS (fi-hsw-4770r)
Subgroup read-crc-pipe-a:
skip -> PASS (fi-hsw-4770r)
Subgroup read-crc-pipe-a-frame-sequence:
skip -> PASS (fi-hsw-4770r)
Subgroup read-crc-pipe-b:
skip -> PASS (fi-hsw-4770r)
Subgroup read-crc-pipe-b-frame-sequence:
skip -> PASS (fi-hsw-4770r) fdo#102332
Subgroup read-crc-pipe-c:
skip -> PASS (fi-hsw-4770r)
Subgroup read-crc-pipe-c-frame-sequence:
skip -> PASS (fi-hsw-4770r)
Subgroup suspend-read-crc-pipe-a:
skip -> PASS (fi-hsw-4770r)
Subgroup suspend-read-crc-pipe-b:
skip -> PASS (fi-hsw-4770r)
Subgroup suspend-read-crc-pipe-c:
skip -> PASS (fi-hsw-4770r)
Test kms_psr_sink_crc:
Subgroup psr_basic:
pass -> DMESG-WARN (fi-skl-6600u)
pass -> DMESG-WARN (fi-kbl-7560u)
Test pm_rpm:
Subgroup basic-pci-d3-state:
skip -> PASS (fi-hsw-4770r)
Subgroup basic-rte:
skip -> PASS (fi-hsw-4770r)
Test prime_vgem:
Subgroup basic-fence-flip:
skip -> PASS (fi-hsw-4770r)fdo#102514 https://bugs.freedesktop.org/show_bug.cgi?id=102514
fdo#102332 https://bugs.freedesktop.org/show_bug.cgi?id=102332
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:441s fi-bdw-gvtdvm total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:460s fi-blb-e6850 total:289 pass:222 dwarn:1 dfail:1 fail:0 skip:65 time:388s fi-bsw-n3050 total:289 pass:243 dwarn:0 dfail:0 fail:0 skip:46 time:523s fi-bwr-2160 total:289 pass:183 dwarn:0 dfail:0 fail:0 skip:106 time:275s fi-bxt-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:503s fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:504s fi-byt-j1900 total:289 pass:254 dwarn:0 dfail:0 fail:0 skip:35 time:493s fi-byt-n2820 total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:484s fi-elk-e7500 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:421s fi-gdg-551 total:289 pass:178 dwarn:1 dfail:0 fail:1 skip:109 time:264s fi-glk-1 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:542s fi-hsw-4770 total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:428s fi-hsw-4770r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:433s fi-ilk-650 total:289 pass:228 dwarn:0 dfail:0 fail:0 skip:61 time:423s fi-ivb-3520m total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:481s fi-ivb-3770 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:457s fi-kbl-7500u total:289 pass:264 dwarn:1 dfail:0 fail:0 skip:24 time:479s fi-kbl-7560u total:289 pass:269 dwarn:1 dfail:0 fail:0 skip:19 time:530s fi-kbl-7567u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:466s fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:531s fi-pnv-d510 total:289 pass:221 dwarn:1 dfail:0 fail:1 skip:66 time:570s fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:461s fi-skl-6600u total:289 pass:261 dwarn:1 dfail:0 fail:0 skip:27 time:537s fi-skl-6700hq total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:565s fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:516s fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:491s fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:456s fi-snb-2520m total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:561s fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:0 skip:40 time:421s
Blacklisted hosts:
fi-cnl-y total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:572s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_505/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx