Bug 95066

Summary: Intel HD with DRI 3 - laptop freezes
Product: DRI Reporter: doaxan77
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED DUPLICATE QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
screen freeze
none
xorg log file with error none

Description doaxan77 2016-04-22 12:15:22 UTC
Created attachment 123148 [details]
screen freeze

On xfce, Intel HD 4000 with DRI 3 - laptop freezes. Step to reproduce:
1) Enable DRI 3, add Option "DRI" "3" and Option "TearFree" "true" to xorg file.
2) Reboot
3) Install virtualgl. In terminal, open glxspheres64. Open chromium, take tab and start moving it quickly across the screen.
4) Screen freeze. Screenshot: http://s31.postimg.org/iauoa088p/20160422_132257.jpg

With "DRI" "2" system not freezes, but moving windows is delayed and there are white color graphic artifacts from the top(its not tearing, i know this), when you drive the cursor on the background of this video: https://www.youtube.com/watch?v=cuXsupMuik4(watch in 1080p60). With uxa everything ok.
Lenovo Y580, Intel HD4000, Intel core i7 3610qm. Kernel 4.4.8, 4.6rc4, mesa 11.2.1-1, xf86-video-intel 1:2.99.917+631+gf2a4645-0.1, xorg-server 1.17.4-2, manjaro xfce.
My xorg file:
Section "Device"
        Identifier  "Device0"
        Driver      "intel"
        BusID       "PCI:0:2:0"
        Option      "AccelMethod" "sna"
        Option      "DRI"    "3"
        Option      "TearFree" "true"
EndSection


Section "DRI"
        Group  "video"
        Mode   0666
EndSection


Section "Extensions"
        Option "Composite" "Enable"
        Option "RENDER"    "Enable"
EndSection


Section "InputClass"
        Identifier          "Keyboard Defaults"
        MatchIsKeyboard     "yes"
        Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
Comment 1 Chris Wilson 2016-04-22 12:25:40 UTC
commit 29b70ccdf67ee7afa19bed26de8678476ba94f6e
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Apr 17 15:02:46 2016 +0100

    sna/present: Fix requeuing after interrupting TearFree
    
    Increment the target_msc by one, not the last known msc!
    
    Reported-by: Rafael Ristovski <rafael.ristovski@gmail.com>
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

commit 562ae1f29fd4946c5204bacc9eaa4ee13e809753
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Apr 18 20:56:05 2016 +0100

    sna/present: Postpone recursed vblank during TearFree by 1ms
    
    Avoid postponing until the next vblank to avoid continually recursing
    every TearFree update, and to minimise the presentation delay.
    
    References: https://bugs.freedesktop.org/show_bug.cgi?id=94982
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 2 doaxan77 2016-04-22 12:36:00 UTC
Created attachment 123149 [details]
xorg log file with error

Xorg log file with error
Comment 3 doaxan77 2016-04-22 14:12:51 UTC
In Antergos, Kernel 4.5.1, mesa 11.2.1-1, xf86-video-intel 1:2.99.917+636+g562ae1f-1, xorg-server 1.18.3-1, with Option "TearFree" "true" system NOT freezes.
Comment 4 Chris Wilson 2016-04-22 14:33:32 UTC

*** This bug has been marked as a duplicate of bug 94982 ***

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.