Created attachment 108277 [details] dmesg ==System Environment== -------------------------- Regression: not sure Non-working platforms: BYT BSW ==kernel== -------------------------- drm-intel-nightly/77683b77aa4da6e1788838dad2d2a15b0dfc290b ==Bug detailed description== ----------------------------- gem_userptr_blits subcases dmabuf-sync and dmabuf-unsync causes bus error. output: IGT-Version: 1.8-gbba1cd0 (x86_64) (Linux: 3.18.0-rc1_drm-intel-nightly_77683b_20141023+ x86_64) Aperture size is 2048 MiB Total RAM is 3837 MiB Testing unsynchronized mappings... Testing synchronized mappings... Bus error (core dumped) ==Reproduce steps== ---------------------------- 1. ./gem_userptr_blits --run-subtest dmabuf-sync
commit 18cb650318bb2c910f95d7c7df6625110ed1a590 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Thu Oct 23 07:55:54 2014 +0100 igt/gem_userptr_blits/dmabuf: Provide partial coverage on !llc platforms Without LLC, we cannot assume coherency between system RAM and the GTT. If we try to use the GTT with snooped memory, the machine may lock up, so the kernel prevents us from doing so, causing the test to fail. However, we still do want to verify that we can access the userptr through a dmabuf, so just check that we can make a copy from it using the GPU and ignore the GTT cross-checking. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85354 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
The bus error goes away. But they fail on BYT and BSW, pass on BDW. Report a new bug or track this bug? output: IGT-Version: 1.8-geae9f72 (x86_64) (Linux: 3.18.0-rc1_drm-intel-nightly_6f628c_20141024+ x86_64) Aperture size is 2048 MiB Total RAM is 1894 MiB Testing unsynchronized mappings... Testing synchronized mappings... Test assertion failure function check_bo, file gem_userptr_blits.c:710: Failed assertion: ptr2 Subtest dmabuf-sync: FAIL (0.002s)
The code still was quite right: commit e497600fb73d138e51a641f7792f11822c20a929 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri Oct 24 07:40:04 2014 +0100 igt/gem_userptr_blits/dmabuf: Map the right pointer for !llc References: https://bugs.freedesktop.org/show_bug.cgi?id=85354#c2 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
(In reply to Chris Wilson from comment #3) > The code still was quite right: > > commit e497600fb73d138e51a641f7792f11822c20a929 > Author: Chris Wilson <chris@chris-wilson.co.uk> > Date: Fri Oct 24 07:40:04 2014 +0100 > > igt/gem_userptr_blits/dmabuf: Map the right pointer for !llc > > References: https://bugs.freedesktop.org/show_bug.cgi?id=85354#c2 > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Fixed by this commit.
*** Bug 85497 has been marked as a duplicate of this bug. ***
Closing old verified+fixed.
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.