Bug 85354 - [BYT/BSW]igt/gem_userptr_blits/dmabuf-sync Bus error
Summary: [BYT/BSW]igt/gem_userptr_blits/dmabuf-sync Bus error
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 85497 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-23 05:49 UTC by lu hua
Modified: 2017-07-03 12:25 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (78.31 KB, text/plain)
2014-10-23 05:49 UTC, lu hua
no flags Details

Description lu hua 2014-10-23 05:49:09 UTC
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
Comment 1 Chris Wilson 2014-10-23 07:04:22 UTC
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>
Comment 2 lu hua 2014-10-24 05:28:12 UTC
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)
Comment 3 Chris Wilson 2014-10-24 06:41:30 UTC
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>
Comment 4 lu hua 2014-10-24 06:47:13 UTC
(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.
Comment 5 Chris Wilson 2014-10-27 08:08:11 UTC
*** Bug 85497 has been marked as a duplicate of this bug. ***
Comment 6 Jari Tahvanainen 2017-07-03 12:25:38 UTC
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.