Bug 88356 - [BSW]igt/gem_mmap_wc/write-cpu-read-wc fail
Summary: [BSW]igt/gem_mmap_wc/write-cpu-read-wc fail
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: Other Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 88441 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-13 07:44 UTC by Ding Heng
Modified: 2017-10-06 14:32 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Ding Heng 2015-01-13 07:44:18 UTC
==System Environment==
--------------------------
Regression: No. I didn't find good commit for this case.
platform: BSW

==kernel==
--------------------------
origin/drm-intel-nightly: 1113d085dfdba11c64772bfb4da26d1d3a163512(fails)
origin/drm-intel-next-queued: 985850bd145655d10dfcd5a03a3fc38540794ca7(fails)
origin/drm-intel-fixes: e3e6efcd638d3caa18d9e89f235c7d6fc32c1f0b(fails)

==Bug detailed description==
-----------------------------
nightly and next-queue have the same issue:

./gem_mmap_wc --run-subtest write-cpu-read-wc
IGT-Version: 1.9-g67eb20c (x86_64) (Linux: 3.18.0-rc7_drm-intel-next-queued_985850_20150111+ x86_64)
Test assertion failure function gem_set_domain, file ioctl_wrappers.c:366:
Failed assertion: drmIoctl((fd), ((((1U) << (((0+8)+8)+14)) | ((('d')) << (0+8)) | (((0x40 + 0x1f)) << 0) | ((((sizeof(struct drm_i915_gem_set_domain)))) << ((0+8)+8)))), (&set_domain)) == 0
Last errno: 2, No such file or directory
Subtest write-cpu-read-wc: FAIL (0.005s)

Issues on fixes branch is different:
 ./gem_mmap_wc --run-subtest write-cpu-read-wc
IGT-Version: 1.9-g67eb20c (x86_64) (Linux: 3.19.0-rc2_drm-intel-fixes_e3e6ef_20150111+ x86_64)
Test requirement not met in function test_write_cpu_read_wc, file gem_mmap_wc.c:274:
Test requirement: gem_mmap__has_wc(fd)
Subtest write-cpu-read-wc: SKIP (0.000s)



==Reproduce steps==
---------------------------- 
./gem_mmap_wc --run-subtest write-cpu-read-wc
Comment 1 Chris Wilson 2015-01-13 09:19:23 UTC
commit 3214a27b5ba7cd621b091f1d0702e069a750c054
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Jan 13 09:17:29 2015 +0000

    igt/gem_mmap_wc: Reorder gem_close()
    
    Unlike a GTT mmap, a WC mmap does not have a direct reference to the
    object, only to the backing storage. If we want to control the domain
    correctly for mmap(wc), we have to keep the bo reference around.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88356
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 2 lu hua 2015-01-15 06:48:41 UTC
*** Bug 88441 has been marked as a duplicate of this bug. ***
Comment 3 Elizabeth 2017-10-06 14:32:21 UTC
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.