* [igt-dev] [PATCH i-g-t] lib: Fix gem_measure_ring_inflight @ 2019-08-31 19:17 Chris Wilson 2019-08-31 20:02 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork 0 siblings, 1 reply; 2+ messages in thread From: Chris Wilson @ 2019-08-31 19:17 UTC (permalink / raw) To: intel-gfx; +Cc: igt-dev, Tvrtko Ursulin Any use of __for_each_physical_engine breaks library use of for_each_physical_ring and in this case (e.g. gem_busy/close-race) leads to GPU hangs. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Andi Shyti <andi.shyti@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> --- lib/i915/gem_ring.c | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/lib/i915/gem_ring.c b/lib/i915/gem_ring.c index bf7f439e1..272264659 100644 --- a/lib/i915/gem_ring.c +++ b/lib/i915/gem_ring.c @@ -21,12 +21,13 @@ * IN THE SOFTWARE. */ -#include "gem_ring.h" - #include <signal.h> #include <sys/ioctl.h> #include <sys/time.h> +#include "gem_ring.h" +#include "gem_submission.h" + #include "intel_reg.h" #include "drmtest.h" #include "ioctl_wrappers.h" @@ -140,18 +141,23 @@ __gem_measure_ring_inflight(int fd, unsigned int engine, enum measure_ring_flags unsigned int gem_measure_ring_inflight(int fd, unsigned int engine, enum measure_ring_flags flags) { - if (engine == ALL_ENGINES) { - unsigned int global_min = ~0u; + unsigned int min = ~0u; + fd = gem_reopen_driver(fd); + + if (engine == ALL_ENGINES) { for_each_physical_engine(fd, engine) { - unsigned int engine_min = __gem_measure_ring_inflight(fd, engine, flags); + unsigned int count = + __gem_measure_ring_inflight(fd, engine, flags); - if (engine_min < global_min) - global_min = engine_min; + if (count < min) + min = count; } - - return global_min; + } else { + min = __gem_measure_ring_inflight(fd, engine, flags); } - return __gem_measure_ring_inflight(fd, engine, flags); + close(fd); + + return min; } -- 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] 2+ messages in thread
* [igt-dev] ✗ Fi.CI.BAT: failure for lib: Fix gem_measure_ring_inflight 2019-08-31 19:17 [igt-dev] [PATCH i-g-t] lib: Fix gem_measure_ring_inflight Chris Wilson @ 2019-08-31 20:02 ` Patchwork 0 siblings, 0 replies; 2+ messages in thread From: Patchwork @ 2019-08-31 20:02 UTC (permalink / raw) To: Chris Wilson; +Cc: igt-dev == Series Details == Series: lib: Fix gem_measure_ring_inflight URL : https://patchwork.freedesktop.org/series/66092/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6816 -> IGTPW_3407 ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with IGTPW_3407 absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in IGTPW_3407, 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/66092/revisions/1/mbox/ Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_3407: ### IGT changes ### #### Possible regressions #### * igt@kms_force_connector_basic@force-load-detect: - fi-icl-u3: NOTRUN -> [SKIP][1] [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3407/fi-icl-u3/igt@kms_force_connector_basic@force-load-detect.html Known issues ------------ Here are the changes found in IGTPW_3407 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@kms_chamelium@common-hpd-after-suspend: - fi-skl-6700k2: [PASS][2] -> [INCOMPLETE][3] ([fdo#104108]) [2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6816/fi-skl-6700k2/igt@kms_chamelium@common-hpd-after-suspend.html [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3407/fi-skl-6700k2/igt@kms_chamelium@common-hpd-after-suspend.html #### Possible fixes #### * igt@gem_exec_suspend@basic-s4-devices: - fi-blb-e6850: [INCOMPLETE][4] ([fdo#107718]) -> [PASS][5] [4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6816/fi-blb-e6850/igt@gem_exec_suspend@basic-s4-devices.html [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3407/fi-blb-e6850/igt@gem_exec_suspend@basic-s4-devices.html * igt@i915_selftest@live_gem_contexts: - {fi-icl-guc}: [INCOMPLETE][6] ([fdo#107713]) -> [PASS][7] [6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6816/fi-icl-guc/igt@i915_selftest@live_gem_contexts.html [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3407/fi-icl-guc/igt@i915_selftest@live_gem_contexts.html #### Warnings #### * igt@kms_chamelium@hdmi-hpd-fast: - fi-kbl-7500u: [FAIL][8] ([fdo#111096]) -> [FAIL][9] ([fdo#111407]) [8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6816/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3407/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108 [fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713 [fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718 [fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096 [fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407 Participating hosts (50 -> 45) ------------------------------ Additional (1): fi-icl-u3 Missing (6): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-byt-clapper fi-bdw-samus Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_5162 -> IGTPW_3407 CI-20190529: 20190529 CI_DRM_6816: 09a60dc5e6d682bf3679f7037de56906fd426a20 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_3407: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3407/ IGT_5162: e62ea305fdba2a9cd0dadfa527b54529cb0d1438 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3407/ _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-31 20:02 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-08-31 19:17 [igt-dev] [PATCH i-g-t] lib: Fix gem_measure_ring_inflight Chris Wilson 2019-08-31 20:02 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox