Bug 57156 - Sims 3 under Wine hangs computer
Summary: Sims 3 under Wine hangs computer
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.7 (2012.06)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-15 13:53 UTC by Deve
Modified: 2013-01-16 17:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log.tar.bz2 (820.52 KB, text/plain)
2012-11-15 13:53 UTC, Deve
no flags Details

Description Deve 2012-11-15 13:53:01 UTC
Created attachment 70117 [details]
Xorg.0.log.tar.bz2

I noticed, that Sims 3 under Wine hangs computer now. I can run it, set my family, and then run real game. Then, sometimes after few second, sometimes after about a minute computer hangs. I must to use power button.

I have this problem with lastest intel drivers: 2.20.13 and 2.20.12. I didn't test pervious, but 2.20.9 works without this bug.

Not working configuration:
Intel 965GM with SNA acceleration
xserver-xorg-video-intel 2.20.13
libdrm 2.24.39
mesa 9.0
kernel 3.6.6

Working with:
xserver-xorg-video-intel 2.20.9
Comment 1 Chris Wilson 2012-11-15 14:06:29 UTC
That debug log shows constant activity - are you experiencing a hard hang? ie. is the machine pingable or remotely accessible? There's nothing there to suggest a problem, so if you are indeed convinced that it is a ddx regression, please do bisect. The more likely culprit in this case is mesa since all the ddx doing is asking the kernel to pageflip.
Comment 2 Deve 2012-11-15 16:50:36 UTC
3e770f09dbe76287293fea0a8a1f231885aa1c1f is the first bad commit
commit 3e770f09dbe76287293fea0a8a1f231885aa1c1f
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Oct 3 13:00:25 2012 +0100

    sna/dri: Delay the deactivation of the pageflipping
    
    As we need to clflush the scanout buffer as we return it to the bo cache
    on SNB+, it is costly to terminate the pageflipping as soon as we drop a
    frame as mesa often fails to keep up to the vrefresh rate.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

:040000 040000 c52079be324edc5d4daa9c2d966115d028997d1c 4842f09c9467a1beb1a64b91d712b0296fd2f0bf M	src



I had problems with this commit in other bug:
https://bugs.freedesktop.org/show_bug.cgi?id=56236
where also I had crash, but when I close the game.

Yes, it is hard hang. It's not possible to do anything. Any Ctrl+Alt+Backspace, shutdown or anything other. Only power button.
Comment 3 Chris Wilson 2012-11-20 18:55:46 UTC
I think I've solved it, please test:

commit 9ab1d1f94e502e5fde87e7c171f3502f8a55f22b
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Nov 20 18:42:58 2012 +0000

    sna/dri: Queue a vblank-continuation after flip-completion
    
    If a vblank request was delayed due to a pending flip, we need to make
    sure that we then queue it after that flip or else progress ceases.
    
    Reported-by: Jiri Slaby <jirislaby@gmail.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56423
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57156
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 4 Deve 2012-11-20 19:45:19 UTC
Unfortunatelly stil it's the same.

xserver-xorg-video-intel - current git 9ab1d1f94e502e5fde87e7c171f3502f8a55f22b
linux-image 3.6.7
mesa 9.0.1
libdrm 2.4.39

Please write, if it's needed for example newer kernel.
Comment 5 Deve 2012-11-22 13:38:43 UTC
I'm not sure, but I think now game hangs earlier. Now it's just after run real game. Before this change, it was sometimes after few minutes.
Comment 6 Chris Wilson 2012-12-12 16:12:45 UTC
My suspicion is that this is actually bug 58107 (aka bug 53385), just on a less forgiving GPU.

So one thing you can try is http://cgit.freedesktop.org/~ickle/linux-2.6 #master as well.
Comment 7 Deve 2012-12-12 16:43:12 UTC
I tried yesterday kernel 3.7 and intel drivers from git. I didn't have any hangs in Sims 3. But everything worked unstable - problems with changing resolutions, black screen etc. So I'll test it further in near future.
Comment 8 Deve 2012-12-15 09:28:25 UTC
Everything works with:
xserver-xorg-video-intel current-git 6593ad3fecb3d044ee5ca161176d8ecaa0b4126a
linux-image-3.7.0-996-generic_3.7.0-996.201212130432_i386 from kernel.ubuntu.com
Comment 9 Deve 2013-01-16 17:41:05 UTC
Now it works with intel 2.20.18 and stable kernel 3.6.11. So it was bug in intel drivers ;-)
Comment 10 Chris Wilson 2013-01-16 17:54:33 UTC
No, the underlying issue is still there, just implemented the caching slightly differently which doesn't get the hardware in a tiz.


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.