Created attachment 112511 [details] dmesg ==System Environment== -------------------------- Regression: not sure, new case Non-working platforms: ILK/SNB/IVB/HSW ==kernel== -------------------------- drm-intel-nightly/be0b52082364f73b6ffa2841ec4ded2ddecfa881 commit be0b52082364f73b6ffa2841ec4ded2ddecfa881 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Sat Jan 17 10:41:34 2015 +0100 drm-intel-nightly: 2015y-01m-17d-09h-41m-12s UTC integration manifest ==Bug detailed description== ----------------------------- It causes WARNING: CPU: 4 PID: 4029 at drivers/gpu/drm/i915/i915_gem.c:3834 i915_gem_object_set_cache_level+0x1da/0x26b [i915]() output: IGT-Version: 1.9-g20d6e0f (x86_64) (Linux: 3.19.0-rc4_drm-intel-nightly_be0b52_2 0150119+ x86_64) Subtest set-cache-level: SUCCESS (0.018s) dmesg: [ 89.149360] WARNING: CPU: 4 PID: 4029 at drivers/gpu/drm/i915/i915_gem.c:3834 i915_gem_object_set_cache_level+0x1da/0x26b [i915]() [ 89.149401] WARN_ON(obj->base.write_domain & ~I915_GEM_DOMAIN_CPU) [ 89.149422] Modules linked in: [ 89.149435] ipv6 dm_mod tpm_infineon wmi tpm_tis tpm acpi_cpufreq i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea [ 89.149494] CPU: 4 PID: 4029 Comm: gem_mmap_wc Not tainted 3.19.0-rc4_drm-intel-nightly_be0b52_20150119+ #630 [ 89.149527] Hardware name: ASUS All Series/Z87-EXPERT, BIOS 1008 05/17/2013 [ 89.149551] 0000000000000000 0000000000000009 ffffffff81799600 ffff880250727a78 [ 89.149582] ffffffff8103bdcc 0000000000000246 ffffffffa00a7fa4 000000000001d244 [ 89.149612] ffff880252a3c1c0 0000000000000000 ffff880252a3c280 ffff880252a3c200 [ 89.149644] Call Trace: [ 89.149657] [<ffffffff81799600>] ? dump_stack+0x40/0x50 [ 89.149679] [<ffffffff8103bdcc>] ? warn_slowpath_common+0x98/0xb0 [ 89.149716] [<ffffffffa00a7fa4>] ? i915_gem_object_set_cache_level+0x1da/0x26b [i915] [ 89.149745] [<ffffffff8103be7c>] ? warn_slowpath_fmt+0x45/0x4a [ 89.149770] [<ffffffffa00a7fa4>] ? i915_gem_object_set_cache_level+0x1da/0x26b [i915] [ 89.149803] [<ffffffffa00a8b06>] ? i915_gem_object_pin_to_display_plane+0x88/0x18a [i915] [ 89.149838] [<ffffffffa00d2f54>] ? intel_pin_and_fence_fb_obj+0xd9/0x115 [i915] [ 89.149870] [<ffffffffa00dcdfa>] ? intel_prepare_plane_fb+0xfa/0x12c [i915] [ 89.149901] [<ffffffffa005e717>] ? drm_plane_helper_commit+0xc0/0x1cb [drm_kms_helper] [ 89.149933] [<ffffffffa001910c>] ? __setplane_internal+0x23c/0x29a [drm] [ 89.149960] [<ffffffffa0018e7b>] ? add_framebuffer_internal+0x61c/0x671 [drm] [ 89.149988] [<ffffffffa0019313>] ? drm_mode_cursor_common+0x1a9/0x2a0 [drm] [ 89.150016] [<ffffffffa001c11e>] ? drm_mode_cursor_ioctl+0x31/0x36 [drm] [ 89.150043] [<ffffffffa001070a>] ? drm_ioctl+0x279/0x3bc [drm] [ 89.150065] [<ffffffff810effd2>] ? tlb_finish_mmu+0xb/0x2f [ 89.150088] [<ffffffffa001c0ed>] ? drm_mode_setcrtc+0x4a9/0x4a9 [drm] [ 89.150112] [<ffffffff810f5caf>] ? vma_rb_erase+0x179/0x1c3 [ 89.150134] [<ffffffff811222f5>] ? do_vfs_ioctl+0x412/0x459 [ 89.150155] [<ffffffff810a30ea>] ? __audit_syscall_entry+0xb2/0xd2 [ 89.150178] [<ffffffff8100d2f2>] ? syscall_trace_enter_phase1+0x11e/0x127 [ 89.150203] [<ffffffff81122385>] ? SyS_ioctl+0x49/0x78 [ 89.150222] [<ffffffff810a3313>] ? __audit_syscall_exit+0x209/0x225 [ 89.150247] [<ffffffff8179efd2>] ? system_call_fastpath+0x12/0x17 [ 89.150269] ---[ end trace 3cc1abd29fb82700 ]--- ==Reproduce steps== ---------------------------- 1. ./gem_mmap_wc --run-subtest set-cache-level
http://patchwork.freedesktop.org/patch/40370/
(In reply to Chris Wilson from comment #1) > http://patchwork.freedesktop.org/patch/40370/ Test this patch on BDW, it works well .
commit b13c8f920cdf616fa5afbc8f0b9e3bc545eb02c8 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Jan 13 13:32:52 2015 +0000 drm/i915: Performed deferred clflush inside set-cache-level
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.