* [igt-dev] [PATCH i-g-t] i915/gem_exec_whisper: Disable preparser around self-modifications @ 2019-09-11 13:35 Chris Wilson 2019-09-11 14:24 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2019-09-11 23:57 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 0 siblings, 2 replies; 3+ messages in thread From: Chris Wilson @ 2019-09-11 13:35 UTC (permalink / raw) To: intel-gfx; +Cc: igt-dev Our "whisper" consists of writing the secret value given to us by our predecessors into the next batch, i.e. we are modifying on the GPU the chain of inflight batches. As the preparser on gen12 will read the batch instructions ahead of time, we need to disable it around the self-modifications. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> --- tests/i915/gem_exec_whisper.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/i915/gem_exec_whisper.c b/tests/i915/gem_exec_whisper.c index de7a14dad..43b716e7c 100644 --- a/tests/i915/gem_exec_whisper.c +++ b/tests/i915/gem_exec_whisper.c @@ -166,6 +166,11 @@ static void ctx_set_random_priority(int fd, uint32_t ctx) gem_context_set_priority(fd, ctx, prio); } +static uint32_t preparser_disable(bool state) +{ + return 0x5 << 23 | 1 << 8 | state; /* custom MI_ARB_CHECK */ +} + static void whisper(int fd, unsigned engine, unsigned flags) { const uint32_t bbe = MI_BATCH_BUFFER_END; @@ -259,6 +264,8 @@ static void whisper(int fd, unsigned engine, unsigned flags) loc = 8; if (gen >= 4) loc += 4; + if (gen >= 12) + loc += 1; reloc.read_domains = I915_GEM_DOMAIN_INSTRUCTION; reloc.write_domain = I915_GEM_DOMAIN_INSTRUCTION; @@ -280,6 +287,8 @@ static void whisper(int fd, unsigned engine, unsigned flags) } i = 0; + if (gen >= 12) + batch[i++] = preparser_disable(true); batch[i] = MI_STORE_DWORD_IMM | (gen < 6 ? 1 << 22 : 0); if (gen >= 8) { batch[++i] = store.offset + loc; @@ -293,6 +302,8 @@ static void whisper(int fd, unsigned engine, unsigned flags) } batch[++i] = 0xc0ffee; igt_assert(loc == sizeof(uint32_t) * i); + if (gen >= 12) + batch[++i] = preparser_disable(false); batch[++i] = MI_BATCH_BUFFER_END; if (flags & CONTEXTS) { -- 2.23.0 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for i915/gem_exec_whisper: Disable preparser around self-modifications 2019-09-11 13:35 [igt-dev] [PATCH i-g-t] i915/gem_exec_whisper: Disable preparser around self-modifications Chris Wilson @ 2019-09-11 14:24 ` Patchwork 2019-09-11 23:57 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 1 sibling, 0 replies; 3+ messages in thread From: Patchwork @ 2019-09-11 14:24 UTC (permalink / raw) To: Chris Wilson; +Cc: igt-dev == Series Details == Series: i915/gem_exec_whisper: Disable preparser around self-modifications URL : https://patchwork.freedesktop.org/series/66538/ State : success == Summary == CI Bug Log - changes from CI_DRM_6870 -> IGTPW_3442 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://patchwork.freedesktop.org/api/1.0/series/66538/revisions/1/mbox/ Known issues ------------ Here are the changes found in IGTPW_3442 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@kms_addfb_basic@invalid-get-prop: - fi-icl-u3: [PASS][1] -> [DMESG-WARN][2] ([fdo#107724]) [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/fi-icl-u3/igt@kms_addfb_basic@invalid-get-prop.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/fi-icl-u3/igt@kms_addfb_basic@invalid-get-prop.html * igt@kms_chamelium@dp-edid-read: - fi-kbl-7500u: [PASS][3] -> [WARN][4] ([fdo#109483]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/fi-kbl-7500u/igt@kms_chamelium@dp-edid-read.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/fi-kbl-7500u/igt@kms_chamelium@dp-edid-read.html #### Possible fixes #### * igt@gem_exec_suspend@basic-s3: - fi-blb-e6850: [INCOMPLETE][5] ([fdo#107718]) -> [PASS][6] [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/fi-blb-e6850/igt@gem_exec_suspend@basic-s3.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/fi-blb-e6850/igt@gem_exec_suspend@basic-s3.html * igt@gem_exec_suspend@basic-s4-devices: - fi-icl-u3: [DMESG-WARN][7] ([fdo#107724]) -> [PASS][8] [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/fi-icl-u3/igt@gem_exec_suspend@basic-s4-devices.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/fi-icl-u3/igt@gem_exec_suspend@basic-s4-devices.html * igt@i915_module_load@reload: - fi-icl-u3: [DMESG-WARN][9] ([fdo#107724] / [fdo#111214]) -> [PASS][10] [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/fi-icl-u3/igt@i915_module_load@reload.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/fi-icl-u3/igt@i915_module_load@reload.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [fdo#107383]: https://bugs.freedesktop.org/show_bug.cgi?id=107383 [fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713 [fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718 [fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724 [fdo#108336]: https://bugs.freedesktop.org/show_bug.cgi?id=108336 [fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483 [fdo#110215]: https://bugs.freedesktop.org/show_bug.cgi?id=110215 [fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045 [fdo#111049]: https://bugs.freedesktop.org/show_bug.cgi?id=111049 [fdo#111214]: https://bugs.freedesktop.org/show_bug.cgi?id=111214 [fdo#111381]: https://bugs.freedesktop.org/show_bug.cgi?id=111381 Participating hosts (53 -> 47) ------------------------------ Additional (1): fi-kbl-soraka Missing (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_5178 -> IGTPW_3442 CI-20190529: 20190529 CI_DRM_6870: d478e765b0d1ceef82e602b69a92eeb344f741d5 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_3442: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/ IGT_5178: efb4539494d94f03374874d3b61bd04ef3802aaa @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/ _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 3+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for i915/gem_exec_whisper: Disable preparser around self-modifications 2019-09-11 13:35 [igt-dev] [PATCH i-g-t] i915/gem_exec_whisper: Disable preparser around self-modifications Chris Wilson 2019-09-11 14:24 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork @ 2019-09-11 23:57 ` Patchwork 1 sibling, 0 replies; 3+ messages in thread From: Patchwork @ 2019-09-11 23:57 UTC (permalink / raw) To: Chris Wilson; +Cc: igt-dev == Series Details == Series: i915/gem_exec_whisper: Disable preparser around self-modifications URL : https://patchwork.freedesktop.org/series/66538/ State : success == Summary == CI Bug Log - changes from CI_DRM_6870_full -> IGTPW_3442_full ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://patchwork.freedesktop.org/api/1.0/series/66538/revisions/1/mbox/ Known issues ------------ Here are the changes found in IGTPW_3442_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_exec_schedule@pi-ringfull-bsd: - shard-iclb: [PASS][1] -> [SKIP][2] ([fdo#111325]) +5 similar issues [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb8/igt@gem_exec_schedule@pi-ringfull-bsd.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb2/igt@gem_exec_schedule@pi-ringfull-bsd.html * igt@gem_exec_schedule@preempt-bsd1: - shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#109276]) +13 similar issues [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb2/igt@gem_exec_schedule@preempt-bsd1.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb3/igt@gem_exec_schedule@preempt-bsd1.html * igt@gem_exec_schedule@preempt-queue-contexts-chain-bsd: - shard-apl: [PASS][5] -> [INCOMPLETE][6] ([fdo#103927]) +1 similar issue [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-apl1/igt@gem_exec_schedule@preempt-queue-contexts-chain-bsd.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-apl8/igt@gem_exec_schedule@preempt-queue-contexts-chain-bsd.html * igt@i915_suspend@fence-restore-tiled2untiled: - shard-apl: [PASS][7] -> [DMESG-WARN][8] ([fdo#108566]) +7 similar issues [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-apl4/igt@i915_suspend@fence-restore-tiled2untiled.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-apl7/igt@i915_suspend@fence-restore-tiled2untiled.html * igt@kms_cursor_crc@pipe-c-cursor-128x128-offscreen: - shard-iclb: [PASS][9] -> [INCOMPLETE][10] ([fdo#107713]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb3/igt@kms_cursor_crc@pipe-c-cursor-128x128-offscreen.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb1/igt@kms_cursor_crc@pipe-c-cursor-128x128-offscreen.html * igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render: - shard-iclb: [PASS][11] -> [FAIL][12] ([fdo#103167]) +4 similar issues [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html * igt@kms_psr@psr2_sprite_mmap_cpu: - shard-iclb: [PASS][13] -> [SKIP][14] ([fdo#109441]) [13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_cpu.html [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb3/igt@kms_psr@psr2_sprite_mmap_cpu.html #### Possible fixes #### * igt@gem_eio@in-flight-suspend: - shard-apl: [DMESG-WARN][15] ([fdo#108566]) -> [PASS][16] +3 similar issues [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-apl4/igt@gem_eio@in-flight-suspend.html [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-apl5/igt@gem_eio@in-flight-suspend.html * igt@gem_exec_balancer@smoke: - shard-iclb: [SKIP][17] ([fdo#110854]) -> [PASS][18] [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb7/igt@gem_exec_balancer@smoke.html [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb2/igt@gem_exec_balancer@smoke.html * igt@gem_exec_schedule@independent-bsd1: - shard-iclb: [SKIP][19] ([fdo#109276]) -> [PASS][20] +18 similar issues [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb8/igt@gem_exec_schedule@independent-bsd1.html [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb2/igt@gem_exec_schedule@independent-bsd1.html * igt@gem_exec_schedule@preempt-other-chain-bsd: - shard-iclb: [SKIP][21] ([fdo#111325]) -> [PASS][22] +7 similar issues [21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb4/igt@gem_exec_schedule@preempt-other-chain-bsd.html [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb6/igt@gem_exec_schedule@preempt-other-chain-bsd.html * igt@gem_tiled_swapping@non-threaded: - shard-glk: [DMESG-WARN][23] ([fdo#108686]) -> [PASS][24] [23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-glk1/igt@gem_tiled_swapping@non-threaded.html [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-glk5/igt@gem_tiled_swapping@non-threaded.html * igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy: - shard-glk: [FAIL][25] ([fdo#104873]) -> [PASS][26] [25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-glk1/igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy.html [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-glk8/igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy.html * igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render: - shard-iclb: [FAIL][27] ([fdo#103167]) -> [PASS][28] +5 similar issues [27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html * igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes: - shard-iclb: [INCOMPLETE][29] ([fdo#107713] / [fdo#110042]) -> [PASS][30] [29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb3/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes.html [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb1/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes.html * igt@kms_plane_cursor@pipe-a-primary-size-256: - shard-hsw: [INCOMPLETE][31] ([fdo#103540]) -> [PASS][32] [31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-hsw5/igt@kms_plane_cursor@pipe-a-primary-size-256.html [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-hsw4/igt@kms_plane_cursor@pipe-a-primary-size-256.html * igt@kms_psr@psr2_cursor_render: - shard-iclb: [SKIP][33] ([fdo#109441]) -> [PASS][34] [33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb5/igt@kms_psr@psr2_cursor_render.html [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb2/igt@kms_psr@psr2_cursor_render.html * igt@kms_setmode@basic: - shard-apl: [FAIL][35] ([fdo#99912]) -> [PASS][36] [35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-apl5/igt@kms_setmode@basic.html [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-apl7/igt@kms_setmode@basic.html #### Warnings #### * igt@gem_ctx_isolation@vcs1-nonpriv: - shard-iclb: [FAIL][37] ([fdo#111329]) -> [SKIP][38] ([fdo#109276]) [37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb4/igt@gem_ctx_isolation@vcs1-nonpriv.html [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb6/igt@gem_ctx_isolation@vcs1-nonpriv.html * igt@gem_mocs_settings@mocs-reset-bsd2: - shard-iclb: [SKIP][39] ([fdo#109276]) -> [FAIL][40] ([fdo#111330]) +1 similar issue [39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb7/igt@gem_mocs_settings@mocs-reset-bsd2.html [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb2/igt@gem_mocs_settings@mocs-reset-bsd2.html * igt@gem_mocs_settings@mocs-settings-bsd2: - shard-iclb: [FAIL][41] ([fdo#111330]) -> [SKIP][42] ([fdo#109276]) [41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb4/igt@gem_mocs_settings@mocs-settings-bsd2.html [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb7/igt@gem_mocs_settings@mocs-settings-bsd2.html * igt@kms_dp_dsc@basic-dsc-enable-edp: - shard-iclb: [SKIP][43] ([fdo#109349]) -> [DMESG-WARN][44] ([fdo#107724]) [43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6870/shard-iclb1/igt@kms_dp_dsc@basic-dsc-enable-edp.html [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/shard-iclb2/igt@kms_dp_dsc@basic-dsc-enable-edp.html [fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167 [fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540 [fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927 [fdo#104873]: https://bugs.freedesktop.org/show_bug.cgi?id=104873 [fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713 [fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724 [fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566 [fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686 [fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276 [fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349 [fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441 [fdo#110042]: https://bugs.freedesktop.org/show_bug.cgi?id=110042 [fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854 [fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325 [fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329 [fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330 [fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912 Participating hosts (10 -> 6) ------------------------------ Missing (4): pig-skl-6260u shard-skl pig-hsw-4770r pig-glk-j5005 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_5178 -> IGTPW_3442 * Piglit: piglit_4509 -> None CI-20190529: 20190529 CI_DRM_6870: d478e765b0d1ceef82e602b69a92eeb344f741d5 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_3442: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/ IGT_5178: efb4539494d94f03374874d3b61bd04ef3802aaa @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3442/ _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-09-11 23:57 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-09-11 13:35 [igt-dev] [PATCH i-g-t] i915/gem_exec_whisper: Disable preparser around self-modifications Chris Wilson 2019-09-11 14:24 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2019-09-11 23:57 ` [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