Bug 679105 - radeon [Xpress 200M] Sporadic system freeze
Summary: radeon [Xpress 200M] Sporadic system freeze
Status: RESOLVED DUPLICATE of bug 678264
Alias: None
Product: openSUSE 11.4
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Final
Hardware: x86 SUSE Other
: P3 - Medium : Critical (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-12 11:18 UTC by Markus Walser
Modified: 2011-03-17 16:03 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Xorg.0.log (37.42 KB, text/plain)
2011-03-12 11:24 UTC, Markus Walser
Details
Xorg.0.log with nomodeset crash (45.94 KB, text/plain)
2011-03-14 07:14 UTC, Markus Walser
Details
Xorg.0.log from thinkpad r51e (41.97 KB, text/plain)
2011-03-14 10:03 UTC, Per Jessen
Details
init log (1.93 KB, text/plain)
2011-03-14 18:18 UTC, Markus Walser
Details
Full callstack (3.95 KB, text/plain)
2011-03-15 22:05 UTC, Markus Walser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walser 2011-03-12 11:18:01 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.15) Gecko/20110303 SUSE/3.6.15-0.2.2 Firefox/3.6.15

After certain time between 10 minutes and 4 hours the systems freezes completely.
Usual work being done when freeze happens is scrolling in Firefox. With the freeze the screen gets scrambled.
Magic SysRq keys don't work. On serial (usb) console nothing is logged. Also no crash dump in /var/log/message or X.org.log. 
Failsafe boot doesn't prevent freeze.

About the system:
CPU:           AMD Turion ML-34
RAM:           1.5GB
Video:         ATI Radeon XPRESS 200M 
Installation:  OpenSuSE 11.4 final 32bit installation with KDE desktop.

Only suspicious thing found during boot: ati_ixp4x0 quirk not complete.

Reproducible: Always

Steps to Reproduce:
1.Install OpenSuSE 11.4 on similar HW with Radeon 200M
2.Use LibreOffice or surf with Firefox (e.g. search for similar bugs in this bugzilla)
Actual Results:  
System will freeze with screen corruption, usually within half an hour.

Expected Results:  
System should run stable :-)
Comment 1 Markus Walser 2011-03-12 11:24:51 UTC
Created attachment 418970 [details]
Xorg.0.log
Comment 2 Stefan Dirsch 2011-03-12 11:31:48 UTC
Please try without KMS as mentioned in our release notes. Does that fix the issue?
Comment 3 Markus Walser 2011-03-12 11:44:44 UTC
Hi Stefan

As mentioned in the bug report I tried failsafe boot which also disables KMS by setting nomodeset. This doesn't help to prevent the freeze.

What I forgot to mention: It's a laptop NX6125.

Do you have other suggestions?
Comment 4 Stefan Dirsch 2011-03-12 12:24:39 UTC
Hmm. Failsafe boot means fbdev driver instead of radeon UMS driver. That would rule out a X driver problem.
Comment 5 Markus Walser 2011-03-14 07:12:08 UTC
Tried to verify failsave boot and did complete fresh OpenSuSE 11.4 final reinstall. With failsave or nomodeset I get crash in the x-server:

Backtrace:
[    30.354] 0: /usr/bin/Xorg (xorg_backtrace+0x37) [0x80ee5f7]
[    30.354] 1: /usr/bin/Xorg (0x8048000+0x5cbea) [0x80a4bea]
[    30.354] 2: (vdso) (__kernel_rt_sigreturn+0x0) [0xffffe410]
[    30.354] Segmentation fault at address (nil)
[    30.354]
Fatal server error:
[    30.354] Caught signal 11 (Segmentation fault). Server aborting
Comment 6 Markus Walser 2011-03-14 07:14:24 UTC
Created attachment 419057 [details]
Xorg.0.log with nomodeset crash

X Server log after starting with kernel command line:

root=/dev/disk/by-id/ata-ST9808211A_3LF1YF4P-part6 resume=/dev/disk/by-id/ata-ST9808211A_3LF1YF4P-part2 splash=silent quiet vga=0x342 nomodeset
Comment 7 Per Jessen 2011-03-14 09:02:48 UTC
I'm seeing the same problem. My hardware is:

IBM Thinkpad R51e, 1.5GHz Celeron, 512M RAM, ATI Xpress 200M. 

I tried booting with nomodeset, but that only disabled the GUI altogether.
Comment 8 Stefan Dirsch 2011-03-14 09:47:42 UTC
Markus, I would like to see the X logfile for failsafe boot entry. It sounds weird for me that also fbdev crashes X.

Per, could you add your X logfile as well?
Comment 9 Per Jessen 2011-03-14 09:59:03 UTC
Willdo. Quick additional comment - at first I also thought it was firefox and/or openoffice related, but I've just now got hung up when I started k3b.
Comment 10 Per Jessen 2011-03-14 10:03:49 UTC
Created attachment 419094 [details]
Xorg.0.log from thinkpad r51e
Comment 11 Stefan Dirsch 2011-03-14 10:11:50 UTC
(In reply to comment #10)
> Created an attachment (id=419094) [details]
> Xorg.0.log from thinkpad r51e

[    25.907] (II) RADEON(0): Direct rendering enabled

Apparently you've attached the wrong logfile. Please attach the one when booting with 'nomodeset'.
Comment 12 Markus Walser 2011-03-14 18:18:13 UTC
Created attachment 419212 [details]
init log

Hi Stefan
Just tried to record xorg.log in failsafe mode.
But x isn't starting at all and thus there's no xorg.0.log.
Trying to start kdm from console mode shows that there is a failsafe configuration file missing.
Comment 13 Stefan Dirsch 2011-03-14 18:53:25 UTC
(In reply to comment #12)
> Created an attachment (id=419212) [details]
> init log

> The failsafe X.Org configuration /etc/X11/xorg.conf.install no longer exists.
> Either move it back (if still available) or copy /etc/X11/xorg.conf to
> /etc/X11/xorg.conf.install to use the native graphics driver instead of the
> failsafe graphics driver. Of course the latter option no longer can be called
> failsafe.

Hmm. Did you remove /etc/X11/xorg.conf.install ?!?
Comment 14 Markus Walser 2011-03-14 21:51:45 UTC
For sure I didn't delete it manually. Its fresh install from KDE Live CD with updates (installation of remaining packages as suggested by Yast) via network. In the Yast's runlevel editor I disabled virtualbox and vmware tools.
Comment 15 Stefan Dirsch 2011-03-14 23:20:01 UTC
(In reply to comment #14)
> For sure I didn't delete it manually. Its fresh install from KDE Live CD with
> updates (installation of remaining packages as suggested by Yast) via network.
> In the Yast's runlevel editor I disabled virtualbox and vmware tools.

Ok. I guess when doing a LiveCD installation there is no /etc/X11/xorg.conf.install created on the installed system since already the Live system runs without any xorg.conf in place. Its different with a real installation. There
we have a fbdev driver based configuration with xorg.conf in place which is copied
to /etc/11/xorg.conf.install during installation as fallback and for the failsafe
mode.
Comment 16 Markus Walser 2011-03-15 07:15:51 UTC
And that's just because of the installation medium? No matter whether doing installation from boot prompt or from running live system.

I suppose failsafe was working in one of the previous milestones/RCs.

Is /etc/11/xorg.conf.install part of a rpm package which could be installed?
Comment 17 Stefan Dirsch 2011-03-15 08:12:47 UTC
(In reply to comment #16)
> And that's just because of the installation medium? 

That's my understanding, yes.

> No matter whether doing installation from boot prompt or from running live 
> system.

?
 
> I suppose failsafe was working in one of the previous milestones/RCs.

Is that a claim or a question? I doubt that this ever worked with a LiveCD
installation.

> Is /etc/11/xorg.conf.install part of a rpm package which could be installed?

No, it's generated on the fly during a regular installation.
Comment 18 Markus Walser 2011-03-15 08:36:55 UTC
>> No matter whether doing installation from boot prompt or from running live 
>> system.

>?

I mean even if LiveCD I have the choice between starting the installation from the grub boot prompt as well as from the running desktop.

>Is that a claim or a question? I doubt that this ever worked with a LiveCD
>installation.

It's a strong guess. I'm sure I booted failsafe in the last couple of weeks, but can't remember what version it was, it could be even 11.3. However, I always used KDE CDs the last years for installation.
Comment 19 Stefan Dirsch 2011-03-15 09:19:06 UTC
(In reply to comment #18)
> >> No matter whether doing installation from boot prompt or from running live 
> >> system.
> 
> >?
> 
> I mean even if LiveCD I have the choice between starting the installation from
> the grub boot prompt as well as from the running desktop.

Ok. Understood. I didn't know that a LiveCD installation is also possible from
the grub boot prompt.
 
> >Is that a claim or a question? I doubt that this ever worked with a LiveCD
> >installation.

> It's a strong guess. I'm sure I booted failsafe in the last couple of weeks,
> but can't remember what version it was, it could be even 11.3. However, I
> always used KDE CDs the last years for installation.

Ok. Maybe the LiveCD installation did change since openSUSE 11.3.
Comment 20 Markus Walser 2011-03-15 09:59:43 UTC
>> I mean even if LiveCD I have the choice between starting the installation from
>> the grub boot prompt as well as from the running desktop.

>Ok. Understood. I didn't know that a LiveCD installation is also possible from
>the grub boot prompt.

And the installation from grub was definitely what I did.

Well, what possibilities exist of getting this failsafe configuration back?
Comment 21 Stefan Dirsch 2011-03-15 10:31:23 UTC
(In reply to comment #20)
> Well, what possibilities exist of getting this failsafe configuration back?

I suggest to open a seperate bugreport filed against YaST component to request this file back.
Comment 22 Markus Walser 2011-03-15 18:16:33 UTC
I check bugzilla and found there is already bug 664308 reported about the failsafe problem.

Is there anything that can be done about the x-server crash with nomodeset?
So far I installed the debug symbols of the x-server but call stack is still not resolved.
Comment 23 Stefan Dirsch 2011-03-15 19:40:54 UTC
Markus, unfortunately I can't help you at the moment. Additionally we no longer have any Xpress 200M graphics hardware available for testing.
Comment 24 Markus Walser 2011-03-15 20:49:03 UTC
OpenSuSE 11.4 is too nice to give up so early :-)

I started the x-server in the debug mode and got finally a reasonable callstack:

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0xad16b226 in ?? () from /usr/lib/dri/r300_dri.so
#2  0xb7a78050 in __glXDRIscreenProbe (pScreen=0x8263380) at glxdri.c:1131
#3  0xb7a6f278 in GlxExtensionInit () at glxext.c:377
#4  0x080d0ea5 in InitExtensions (argc=1, argv=0xbffff664) at ../../../mi/miinitext.c:553
#5  0x080666f2 in main (argc=1, argv=0xbffff664, envp=0xbffff66c) at main.c:213
(gdb)

I'll try to install debug symbols for the shared dri library to get more information about the root of the problem.
Comment 25 Markus Walser 2011-03-15 21:42:30 UTC
It looks like the x server is failing to talk with the dri driver:


    psp->api_mask = (1 << __DRI_API_OPENGL);

->  *driver_modes = driDriverAPI.InitScreen(psp);
    if (*driver_modes == NULL) {
        free(psp);
        return NULL;
    }


(gdb) bt
#0  0x00000000 in ?? ()
#1  0xad16b226 in driCreateNewScreen (scrn=0, ddx_version=0xbffff3f8, dri_version=0xbffff3ec,
    drm_version=0xbffff3e0, frame_buffer=0xbffff3c4, pSAREA=0xb77ff000, fd=18, extensions=0xb7aa04c4,
    driver_modes=0xbffff404, loaderPrivate=0x82a1520) at ../common/dri_util.c:830
#2  0xb7a78050 in __glXDRIscreenProbe (pScreen=0x8263380) at glxdri.c:1131
#3  0xb7a6f278 in GlxExtensionInit () at glxext.c:377
#4  0x080d0ea5 in InitExtensions (argc=1, argv=0xbffff624) at ../../../mi/miinitext.c:553
#5  0x080666f2 in main (argc=1, argv=0xbffff624, envp=0xbffff62c) at main.c:213
(gdb) print driDriverAPI
$5 = {InitScreen = 0, DestroyScreen = 0xad16f1a0 <dri_destroy_screen>,
  CreateContext = 0xad16e2d0 <dri2_create_context>, DestroyContext = 0xad16ed70 <dri_destroy_context>,
  CreateBuffer = 0xad16e260 <dri2_create_buffer>, DestroyBuffer = 0xad16fbb0 <dri_destroy_buffer>,
  SwapBuffers = 0, MakeCurrent = 0xad16ee70 <dri_make_current>, UnbindContext = 0xad16ede0 <dri_unbind_context>,
  GetSwapInfo = 0, WaitForMSC = 0, WaitForSBC = 0, SwapBuffersMSC = 0, CopySubBuffer = 0, GetDrawableMSC = 0,
  InitScreen2 = 0xad16e0b0 <dri2_init_screen>}
(gdb)

Is the x-server allowed to use dri with nomodeset?
Comment 26 Markus Walser 2011-03-15 22:05:14 UTC
Created attachment 419540 [details]
Full callstack
Comment 27 Stefan Dirsch 2011-03-15 22:53:48 UTC
> Is the x-server allowed to use dri with nomodeset?

Well, for some reason radeon UMS behaves here differently than radeon KMS. A workaround would be to disable DRI completely in X by adding

Section "Module"
  Disable "dri"
  Disable "dri2"
EndSection

to /etc/X11/xorg.conf.d/50-device.conf. Of course then everything falls back to
software rendering, but that's still better than a crashing Xserver already
during startup.
Comment 28 Markus Walser 2011-03-16 11:59:12 UTC
> Section "Module"
>   Disable "dri"
>   Disable "dri2"
> EndSection

This works around x-server crash with nomodeset successfully. 

Checking stability now...
Comment 29 Stefan Dirsch 2011-03-17 16:03:17 UTC
That's just another duplicate.

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