Created attachment 92117 [details] dmesg System Environment: -------------------------- Platform: SNB/IVB/HSW/BYT kernel: (drm-intel-nightly)07db3e0b8568d81226e2e17dbb1b340668cb2287 Bug detailed description: ------------------------- Run ./gem_reset_stats --run-subtest ban, <3>[ 88.707592] [drm:i915_context_is_banned] *ERROR* context hanging too fast, declaring banned! appears. It always has this issue. output: IGT-Version: 1.5-g1552aa2 (x86_64) (Linux: 3.13.0-rc7_drm-intel-nightly_07db3e_20140115+ x86_64) 4:1 reset status 1 differs from assumed 2 Test assertion failure function test_ban, file gem_reset_stats.c:528: Last errno: 5, Input/output error Failed assertion: _assert_reset_status(fd, ctx_good, (1 << 1)) == 0 Subtest ban: FAIL Reproduce steps: ---------------------------- 1. ./gem_reset_stats --run-subtest ban
The error message in dmesg is byproduct of the test. Daniel, do we want to suppress also the message which states that context has been banned access?
Created attachment 92122 [details] [review] [PATCH] drm/i915/ppgtt: Limit guilty hunt inside of relevant vm Could you please check if attached patch works with this test?
*** Bug 73653 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > Created attachment 92122 [details] [review] [review] > [PATCH] drm/i915/ppgtt: Limit guilty hunt inside of relevant vm > > Could you please check if attached patch works with this test? Test this patch: run: ./gem_reset_stats --run-subtest ban output: IGT-Version: 1.5-ga896ef9 (x86_64) (Linux: 3.13.0-rc7_prts_c854dc_20140116 x86_64) gem_reset_stats: drmtest.c:1126: igt_exit: Assertion `skipped_one || succeeded_one || failed_one' failed. Aborted (core dumped) run: ./gem_reset_stats IGT-Version: 1.5-ga896ef9 (x86_64) (Linux: 3.13.0-rc7_prts_c854dc_20140116 x86_6 Subtest params: SUCCESS Subtest reset-stats-render: SUCCESS Subtest reset-stats-ctx-render: SUCCESS Subtest ban-render: SUCCESS Subtest ban-ctx-render: SUCCESS Subtest reset-count-render: SUCCESS Subtest reset-count-ctx-render: SUCCESS Subtest unrelated-ctx-render: SUCCESS Test assertion failure function gem_set_domain, file drmtest.c:535: Last errno: 5, Input/output error Failed assertion: drmIoctl((fd), ((((1U) << (((0+8)+8)+14)) | ((('d')) << (0+8))domain)) == 0 Subtest close-pending-render: FAIL
(In reply to comment #4) > (In reply to comment #2) > > Created attachment 92122 [details] [review] [review] [review] > > [PATCH] drm/i915/ppgtt: Limit guilty hunt inside of relevant vm > > > > Could you please check if attached patch works with this test? > > Test this patch: > run: ./gem_reset_stats --run-subtest ban The subtest names have changed to include ring, so this one is now ban-render. > output: > IGT-Version: 1.5-ga896ef9 (x86_64) (Linux: 3.13.0-rc7_prts_c854dc_20140116 > x86_64) > gem_reset_stats: drmtest.c:1126: igt_exit: Assertion `skipped_one || > succeeded_one || failed_one' failed. > Aborted (core dumped) > > run: ./gem_reset_stats > IGT-Version: 1.5-ga896ef9 (x86_64) (Linux: 3.13.0-rc7_prts_c854dc_20140116 > x86_6 > Subtest params: SUCCESS > Subtest reset-stats-render: SUCCESS > Subtest reset-stats-ctx-render: SUCCESS > Subtest ban-render: SUCCESS > Subtest ban-ctx-render: SUCCESS Which seems to work now. > Subtest reset-count-render: SUCCESS > Subtest reset-count-ctx-render: SUCCESS > Subtest unrelated-ctx-render: SUCCESS > Test assertion failure function gem_set_domain, file drmtest.c:535: > Last errno: 5, Input/output error > Failed assertion: drmIoctl((fd), ((((1U) << (((0+8)+8)+14)) | ((('d')) << > (0+8))domain)) == 0 > Subtest close-pending-render: FAIL close-pending-render FAIL is something else.
> > Test assertion failure function gem_set_domain, file drmtest.c:535: > > Last errno: 5, Input/output error > > Failed assertion: drmIoctl((fd), ((((1U) << (((0+8)+8)+14)) | ((('d')) << > > (0+8))domain)) == 0 > > Subtest close-pending-render: FAIL > > close-pending-render FAIL is something else. ^ This was due to test stopping all rings instead of the ring being tested. Fix was merged into i-g-t.
*** Bug 74007 has been marked as a duplicate of this bug. ***
Fixed by commit b6b0fac04de9ae9b1559eddf8e9490f3c9a01885 Author: Mika Kuoppala <mika.kuoppala@linux.intel.com> Date: Thu Jan 30 19:04:43 2014 +0200 drm/i915: Use hangcheck score to find guilty context The separate set_domain issue will be tracked in: https://bugs.freedesktop.org/show_bug.cgi?id=74007
Test on latest igt and -nightly kernel. This error goes away. Verified.Fixed.
Closing old verified.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.