X regularly freezes with "kernel: __iounmap: bad address d4384000"

Bug #16574 reported by postmast3r
8
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Invalid
High
Daniel Stone

Bug Description

A friend of mine has an issue with his fresh Kubuntu 5.04 install. Every 10 to
45 minutes or so, X freezes and he has to CTRL ALT backspace to kill X to be
able to use it again.

Each time X locks up, this message shows up in /var/log/kern.log and
/var/log/messages:
Apr 29 01:32:44 localhost kernel: __iounmap: bad address d4384000

This message shows up in /var/log/Xorg.0.log.old around the same time when it
happens:
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xd4205000 at 0xb5d8f000

$ uname -a
Linux linux2 2.6.10-5-386 #1 Tue Apr 5 12:12:40 UTC 2005 i686 GNU/Linux

$ cat /proc/cmdline
root=/dev/hda1 ro quiet splash acpi=off noapic noinotify apm=off

His video card is an ATI Radeon Rage 6.
X reports it is this in its logs:
(--) PCI:*(0:9:0) ATI Technologies Inc Radeon R100 QD [Radeon 7200] rev 0, Mem @
0xd0000000/27, 0xe0000000/19, I/O @ 0xdc00/8
...
(II) ATI: Candidate "Device" section "ATI Technologies, Inc. Radeon 7200 (R100
QD)".
...
(II) RADEON(0): initializing int10
(II) RADEON(0): Primary V_BIOS segment is: 0xc000
(--) RADEON(0): Chipset: "ATI Radeon QD (AGP)" (ChipID = 0x5144)
(--) RADEON(0): Linear framebuffer at 0xd0000000
(--) RADEON(0): VideoRAM: 32768 kByte (128 bit SDR SDRAM)
(II) RADEON(0): PCI card detected

Revision history for this message
postmast3r (postmast3r) wrote :

Created an attachment (id=2191)
Hardware report

Here is this person's hardware report file, generated by "hwdb-gui" (Ubuntu
Device Database).

Revision history for this message
postmast3r (postmast3r) wrote :

Created an attachment (id=2192)
X log after freeze of X

This is the X log I copied after X was frozen on his machine.

Revision history for this message
postmast3r (postmast3r) wrote :

Created an attachment (id=2193)
dmesg output after X freeze

Revision history for this message
Rodney (rmjokers) wrote :

I also have a Radeon card (different model). X says it is a:

(**) | |-->Device "ATI Technologies, Inc. Radeon 7000 VE (RV100 QY)"

After upgrading from Warty to Hoary using apt-get, X would freeze during the loading process for
gnome, xfce and fluxbox. I tried reconfiguring the X server but it did not seem to help. However,
I found that if I comment out the following lines in my
 /etc/X11/xorg.conf file, the X server does not freeze:

 #Load "dri"
 #Load "glx"

Perhaps there is a driver issue with the radeon driver or a problem with the configuration
application? Anyway, after changing the configuration I have been running X with 15 days uptime.
Since you also have a radeon, I though the problems might be related.

Revision history for this message
postmast3r (postmast3r) wrote :

I saw a few references to some fixes to something relating to "iounmap" in the
new 2.6.11 kernel that he saw in the logs on every X freeze. So, I grabbed the
latest vanilla kernel from www.kernel.org (2.6.11.7) and compiled it for him and
made it into a .deb and told him to install it and boot it and see if the X
freezes persist. After upgrading to that kernel version, without changing
anything else, X hasn't frozen, yet, after over 10 hours of it being up. No
changes were made to X.org's configuration when switching from the default
kernel 2.6.10 included in Kubuntu to 2.6.11.7 from www.kernel.org. So, that is
making me believe that somehow this X freezing is relating to something in the
kernel itself.

Revision history for this message
postmast3r (postmast3r) wrote :

hmm. His system ran fine for several days with the standard kernel version
2.6.11.7 from kernel.org and X locked up on him again today. The same iounmap
error appeared exactly the moment X froze but at a different address than before.

May 3 05:41:46 localhost kernel: __iounmap: bad address d43ff000
May 3 05:46:25 localhost kernel: __iounmap: bad address d43ff000

Revision history for this message
postmast3r (postmast3r) wrote :

(In reply to comment #4)
> I also have a Radeon card (different model). X says it is a:
>
> (**) | |-->Device "ATI Technologies, Inc. Radeon 7000 VE (RV100 QY)"
>
> After upgrading from Warty to Hoary using apt-get, X would freeze during the
loading process for
> gnome, xfce and fluxbox. I tried reconfiguring the X server but it did not
seem to help. However,
> I found that if I comment out the following lines in my
> /etc/X11/xorg.conf file, the X server does not freeze:
>
> #Load "dri"
> #Load "glx"
>
> Perhaps there is a driver issue with the radeon driver or a problem with the
configuration
> application? Anyway, after changing the configuration I have been running X
with 15 days uptime.
> Since you also have a radeon, I though the problems might be related.

After the lockup with the kernel from www.kernel.org, I had him try your
suggestion and it definitely stopped it from freezing. He booted the ubuntu
kernel, commented out the exact lines you said, and no longer has any lockups so
far. Sadly, none of the OpenGL screensavers work with this setting, but I guess
that is better than his X locking up every half hour.

Revision history for this message
postmast3r (postmast3r) wrote :

Also, before Ubuntu he was using Debian "Unstable" which used XFree86 4.x (I
think) and he never had these X freezes. It wasn't until he tried out Ubuntu,
which has X.org, that he had these freezes.

Revision history for this message
Daniel Stone (daniels) wrote :

Any chance you could give this a go with breezy?

Revision history for this message
Matt Zimmerman (mdz) wrote :

Please test with the Breezy preview:

http://releases.ubuntu.com/5.10/

Revision history for this message
Daniel Stone (daniels) wrote :

please reopen this bug if you can reproduce the issue with a current release

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.