Bug 44384 - Computer crash when running Delphi32.exe using wine
Summary: Computer crash when running Delphi32.exe using wine
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Chris Wilson
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 06:14 UTC by Reinhard Karcher
Modified: 2012-01-26 13:00 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
relevant part of syslog (7.42 KB, text/plain)
2012-01-02 06:50 UTC, Reinhard Karcher
no flags Details
Error log from /sys (94.90 KB, application/x-bzip)
2012-01-03 02:57 UTC, Reinhard Karcher
no flags Details
The crashed one (6.05 KB, application/x-bzip)
2012-01-03 02:59 UTC, Reinhard Karcher
no flags Details
linux from git with Daniels patches (94.91 KB, application/x-bzip)
2012-01-04 06:46 UTC, Reinhard Karcher
no flags Details
The interesting part from the actual syslog (1.84 KB, application/x-bzip)
2012-01-04 06:48 UTC, Reinhard Karcher
no flags Details
New Xorg-driver with some more information (6.89 KB, application/x-bzip)
2012-01-15 23:48 UTC, Reinhard Karcher
no flags Details
Created with: cp /dev/tty2 terminal.log (1.20 KB, application/x-bzip)
2012-01-15 23:51 UTC, Reinhard Karcher
no flags Details
part from syslog (1.97 KB, application/x-bzip)
2012-01-15 23:53 UTC, Reinhard Karcher
no flags Details
actual copy from debugfs (95.26 KB, application/x-bzip)
2012-01-15 23:54 UTC, Reinhard Karcher
no flags Details
Copy from debugfs (96.30 KB, application/x-bzip)
2012-01-18 03:39 UTC, Reinhard Karcher
no flags Details

Description Reinhard Karcher 2012-01-02 06:14:40 UTC

    
Comment 1 Reinhard Karcher 2012-01-02 06:50:17 UTC
Created attachment 55045 [details]
relevant part of syslog
Comment 2 Reinhard Karcher 2012-01-02 06:53:10 UTC
Debian bug no. 654217
Comment 3 Chris Wilson 2012-01-03 02:28:06 UTC
As I mentioned to Cyril, your Xorg.log indicates that you have a lot of known bugs on your system and that the /sys/kernel/debug/dri/0/i915_error_state is my best bet for determining whether you have hit a novel bug.
Comment 4 Reinhard Karcher 2012-01-03 02:57:25 UTC
Created attachment 55071 [details]
Error log from /sys
Comment 5 Reinhard Karcher 2012-01-03 02:59:32 UTC
Created attachment 55072 [details]
The crashed one

Thanks to Cyril for his suggestions with sleep to get the error log.
Comment 6 Chris Wilson 2012-01-03 03:35:05 UTC
Ok, this looks like the finish-gpu kernel bug, as the source texture has been reused prior to the execution of the batch -- leaving the fence registers in a conflicting state with the tiling parameters.
Comment 7 Chris Wilson 2012-01-03 03:38:06 UTC
As I guess you are compiling your own kernels, you might like to try Daniel's tree as it contains most of the known fixes at this point: http://cgit.freedesktop.org/~danvet/drm/ #my-next
Comment 8 Reinhard Karcher 2012-01-03 06:45:56 UTC
No change with the new kernel with Daniels patches.
On the contrary, after boot the linux console is black.
Logging in and starting X is possible and the monitor is usable again. Switching to console is also possible, the monitor is no longer black.
Comment 9 Julien Cristau 2012-01-03 14:25:10 UTC
> --- Comment #8 from Reinhard Karcher <reinhard.karcher@gmx.net> 2012-01-03 06:45:56 PST ---
> No change with the new kernel with Daniels patches.
> On the contrary, after boot the linux console is black.
> Logging in and starting X is possible and the monitor is usable again.
> Switching to console is also possible, the monitor is no longer black.
> 
sounds like you don't have fbcon builtin.
Comment 10 Reinhard Karcher 2012-01-04 02:28:26 UTC
I managed to compile a broken kernel, after a 'make distclean' and compiling a new kernel, the issue with the black console is gone, but the main issue, the crashing of the kernel doesn't change.

Reinhard
Comment 11 Chris Wilson 2012-01-04 03:02:49 UTC
Verify that you did build using Daniel's my-next branch and attach the i915-error-state.
Comment 12 Reinhard Karcher 2012-01-04 06:46:19 UTC
Created attachment 55109 [details]
linux from git with Daniels patches

Daniels branch was fetched with the following command:
git clone --reference ../linux --branch my-next git://people.freedesktop.org/~danvet/drm

The directory ../linux contains the newest linux from git, command was executed at 12:42 UTC on Jan 3rd.

That kernel was running was the kernel crashed.

Reinhard
Comment 13 Reinhard Karcher 2012-01-04 06:48:04 UTC
Created attachment 55110 [details]
The interesting part from the actual syslog
Comment 14 Reinhard Karcher 2012-01-15 23:48:59 UTC
Created attachment 55621 [details]
New Xorg-driver with some more information

I tried the new interl-xorg driver from Debian unstable with some more error information. Attached is the Xorg log file.
I could login to the laptop via ssh, after I realized that the DHCP server suddenly decided to change the IP address of the laptop.
I will attach the copy of the linux console, on which I start X, part of syslog and the error log from debugfs.
Reinhard
Comment 15 Reinhard Karcher 2012-01-15 23:51:18 UTC
Created attachment 55622 [details]
Created with: cp /dev/tty2 terminal.log
Comment 16 Reinhard Karcher 2012-01-15 23:53:00 UTC
Created attachment 55623 [details]
part from syslog
Comment 17 Reinhard Karcher 2012-01-15 23:54:03 UTC
Created attachment 55624 [details]
actual copy from debugfs
Comment 18 Chris Wilson 2012-01-16 12:36:58 UTC
It dies on the second operation which happens to completely overwrite the first. Both are copying from the same GTT upload, 36x54 untiled pixmaps, sequential.

I see no reason for it to die!

0x0a874084:      0x79000002: 3DSTATE_DRAWING_RECTANGLE
0x0a874088:      0x00000000:    top left: 0,0
0x0a87408c:      0x00350023:    bottom right: 35,53
0x0a874090:      0x00000000:    origin: 0,0
0x0a874094:      0x78080003: 3DSTATE_VERTEX_BUFFERS
0x0a874098:      0x0800000c:    buffer 1: sequential, pitch 12b
0x0a87409c:      0x0a874198:    buffer address
0x0a8740a0:      0x00000000:    max index
0x0a8740a4:      0x00000000:    mbz
0x0a8740a8:      0x7b003c04: 3DPRIMITIVE: rect list sequential
0x0a8740ac:      0x00000003:    vertex count
0x0a8740b0:      0x00000000:    start vertex
0x0a8740b4:      0x00000001:    instance count
0x0a8740b8:      0x00000000:    start instance
0x0a8740bc:      0x00000000:    index bias
0x0a8740c0:      0x02000004: MI_FLUSH
0x0a8740c4:      0x78010004: 3DSTATE_BINDING_TABLE_POINTERS
0x0a8740c8:      0x00000000:    VS binding table
0x0a8740cc:      0x00000000:    GS binding table
0x0a8740d0:      0x00000000:    Clip binding table
0x0a8740d4:      0x00000000:    SF binding table
0x0a8740d8:      0x00003f80:    WM binding table
0x0a8740dc:      0x7b003c04: 3DPRIMITIVE: rect list sequential
0x0a8740e0:      0x00000003:    vertex count
0x0a8740e4:      0x00000003:    start vertex
0x0a8740e8:      0x00000001:    instance count
0x0a8740ec:      0x00000000:    start instance
0x0a8740f0:      0x00000000:    index bias
0x0a8740f4:      0x02000004: MI_FLUSH
0x0a8740f8: HEAD 0x78010004: 3DSTATE_BINDING_TABLE_POINTERS
Comment 19 Reinhard Karcher 2012-01-18 03:07:42 UTC
I just tested the xorg-driver from newest git and it didn't crash any longer.
(intel(0): SNA compiled from 2.17.0-458-gbbd6c81)
I tried the newest linux kernel from git and the Debian kernel 3.2.0-rc7.

The slightly older debian xorg-driver:
SNA compiled: xserver-xorg-video-intel 2:2.17.0+git20120115-1 (Cyril Brulebois <kibi@debian.org>)
had a soft crash:
The kde window manager died, the keyboard stopped working, but using the mouse, I could stop all applications and leave X. I have copied the i915_error_state, X server log file and the error lines from syslog. Do you want to see any of that files?
Starting X again, it complained about the gpu:
(WW) intel(0): cannot enable XVideo whilst the GPU is wedged
(WW) intel(0): cannot enable DRI2 whilst the GPU is wedged.
and enabled software rendering:
(II) AIGLX: Screen 0 is not DRI2 capable
(II) AIGLX: Screen 0 is not DRI capable
(II) AIGLX: Loaded and initialized swrast
(II) GLX: Initialized DRISWRAST GL provider for screen 0
 
Reinhard
Comment 20 Chris Wilson 2012-01-18 03:34:12 UTC
Yes, if you still have the i915_error_state can you attach it here as well. I imagine that it will be another unsolvable mystery, but it might also be the key to understanding what went wrong.

Please keep me posted as to whether the bug stays hidden. Otherwise we will just mark it as being likely fixed by recent updates. Thanks.
Comment 21 Reinhard Karcher 2012-01-18 03:39:20 UTC
Created attachment 55727 [details]
Copy from debugfs
Comment 22 Chris Wilson 2012-01-26 13:00:06 UTC
Reinhard mentioned that he hasn't seen a crash in the last week, so I'm presuming that I broke the bo being sampled by the batch.


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.