Lucid - radeon kms causes iwl3945 to drop connection on youtube but not with mainline

Bug #564376 reported by ndeubert
146
This bug affects 22 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Lucid by Stejarel Veres

Bug Description

Forgive me if this bug is a duplicate but I didn't see a recent bug with these details.... I did a clean install of Kubuntu 10.04 beta 2 and i noticed the wireless connection would work initially after boot and then it would drop and then tray icon would continue to say "Connecting" and "Activating" when i right clicked on it and never connect again. I did get it to reconnect once after unloading the iwl3945 and iwlcore modules and reloading them, then restarting the networking init.d script, but that only worked once, every other time i had to reboot for it to work again. Most recently though i connected it and left it on overnight and it stayed connected fine the whole time (i had received IMs meanwhile) and i was able to browse through gmail and the web fine but as soon as I went to a YouTube link it died right away. So then i installed the mainline kernel version: 2.6.34-999 from http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/ and tried the same YouTube link and everything works fine.

Previous kernel versions I was using that had the problem:
2.6.32-19
2.6.32-21

By the way in case it matters I was using google chrome as the browser and the wireless network I am connected too is using DD-WRT v24-sp1with WPA Personal. My laptop is an IBM Thinkpad T60 and here is my lspci:
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc M52 [Mobility Radeon X1300]
02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller

 $ lsmod | grep iw
iwl3945 75395 0
iwlcore 118803 1 iwl3945
mac80211 229304 2 iwl3945,iwlcore
cfg80211 148737 3 iwl3945,iwlcore,mac80211

So for now it seems to be working fine with the mainline kernel I installed but if there is any other info/testing i can provide let me know.
Thanks,
Nick

ndeubert (ndeubert)
description: updated
description: updated
Revision history for this message
manatorg (manatorg) wrote :

Hi,

i think #555286 is related to this problem
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/555286

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi ndeubert,

Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/releases/ . If the issue remains, please run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 564376

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Stejarel Veres (steju) wrote : apport information

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: steju 2087 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xefffc000 irq 21'
   Mixer name : 'SigmaTel STAC9200'
   Components : 'HDA:83847690,102801bd,00102201 HDA:14f12bfa,14f100c3,00090000'
   Controls : 12
   Simple ctrls : 7
DistroRelease: Ubuntu 10.04
HibernationDevice: RESUME=UUID=32199811-1b45-2ca7-7a19-567185c83737
MachineType: Dell Inc. MM061
Package: linux (not installed)
ProcCmdLine: root=UUID=d191a312-0936-4a39-94fd-bae4a280f89f ro quiet splash
ProcEnviron:
 LANGUAGE=en_CA:en
 PATH=(custom, no user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Regression: Yes
RelatedPackageVersions: linux-firmware 1.34
Reproducible: Yes
Tags: lucid networking regression-release needs-upstream-testing
Uname: Linux 2.6.32-21-generic i686
UserGroups:

WpaSupplicantLog:

dmi.bios.date: 06/13/2007
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A17
dmi.board.name: 0XD720
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA17:bd06/13/2007:svnDellInc.:pnMM061:pvr:rvnDellInc.:rn0XD720:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: MM061
dmi.sys.vendor: Dell Inc.

tags: added: apport-collected
Revision history for this message
Stejarel Veres (steju) wrote : AlsaDevices.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : AplayDevices.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : BootDmesg.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : Card0.Codecs.codec.1.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : IwConfig.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : Lspci.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : Lsusb.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : PciMultimedia.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : ProcModules.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : RfKill.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : UdevDb.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : UdevLog.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : WifiSyslog.txt

apport information

Revision history for this message
Stejarel Veres (steju) wrote : Re: Lucid - iwl3945 drops connection on youtube but not with mainline

Hello everyone,

I can confirm that I am affected by this bug as well. It is extremely easy to reproduce and it makes the wireless connection all but unusable.

I have run the apport-collect command suggested above and the report should be attached to this bug now. Since the 10.04 LTS is so close now I have marked this as regression-release. I haven't seen this bug with the latest 2.6.31 kernel found in 9.10, or with any other kernels in previous distributions. This behavior started occurring when I upgraded to 10.04 RC three days ago.

In my case, it appears that the bug manifests whenever there is high traffic over the wireless connection, but it is more prevalent when said traffic is generated by streaming video within a browser (I've tried with YouTube and a number of other streaming video websites). Most of the times, the adapter will disconnect within 30 seconds of starting streaming and sometimes it will reconnect immediately afterwards. In other cases, this will take longer to reconnect (ahem, I haven't waited more than a minute or so before disabling and re-enabling the adapter, which seems to speed up the reconnecting process).

When the adapter disconnects, the kernel log shows the messages attached to this post. Note that this particular occurrence resulted in a quick reconnection, but this didn't make it any less annoying.

Stejarel

tags: removed: needs-kernel-logs
Revision history for this message
Stejarel Veres (steju) wrote :

I forgot to mention that, unlike the original poster (Nick), installing 2.6.34-999 did not solve the problem for me - in fact, it made it worse (a subjective opinion, since this is not easily measurable). I have also installed linux-backports-modules-wireless-lucid-generic, to no avail. I will try installing a mainline kernel that is closer to the one currently running (per http://kernel.ubuntu.com/~kernel-ppa/info/kernel-version-map.html) and I will get back with details.

Revision history for this message
Stejarel Veres (steju) wrote :

All right, I've tested 2.6.32.12-lucid and 2.6.33.3-lucid (plus 2.6.34-999, April 25th edition, which I tried two days ago) hoping that upstream may have fixed this. Unfortunately, the bug is still present and, in addition, I could not extract any kernel logs because (see attachment). All in all this adds up to three very recent mainline versions having the same issue as far as iwl3945 is concerned.

With 2.6.32.12-lucid, I also saw what may have been an isolated occurrence, but the kill switch didn't work either, meaning that disabling and re-enabling the wireless adapter had no effect and I had to reboot in order to have my wireless connection working again.

Any input on this would be greatly appreciated. I remember finding something very similar two days ago on the Intel Bugzilla for iwl3945 but somehow (ahem) I forgot to save the reference and I can't seem to be able to locate it again.

Stejarel

tags: removed: needs-upstream-testing
Revision history for this message
Stejarel Veres (steju) wrote :

In support of the idea that this bug is a regression, I installed and tested the mainline 2.6.31.12 kernel, which is what the latest kernel in koala was based on. Surely enough, the bug *does not* manifest with the older kernel.

tags: added: lucid regression-potential
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → Medium
Revision history for this message
Stejarel Veres (steju) wrote :

Hello all,

I've done some more testing on this bug and I came to a surprising conclusion - at least for me.

I've been thinking about the weird behavior this bug exhibited. Initially I thought that it was about high traffic on the wireless interface. Then, I realized that this was not really the case - as I did some heavy wgets and nothing went wrong with those. This bug seems to only show up when high video activity is present as well (this explains why it manifests with streaming video).

The more I'm thinking about it, the more I lean towards some sort of IRQ conflict between iwl3945 and radeon (note that the original poster also had a Mobility Radeon video adapter). Anyway, thinking about how KMS created all sorts of issues for lucid, I went ahead and disabled it (radeon.modeset=0) with 2.6.32-21-generic (the current lucid kernel).

Lo and behold, the wireless adapter does not lose connection anymore (I've been abusing it for the past hour now).

This could also explain why this bug doesn't affect so many people - if it requires that *both* iwl3945 *and* radeon be present, the subset of users that have this particular hardware combination should be somewhat smaller.

I hope this helps.

Stejarel

Revision history for this message
Stejarel Veres (steju) wrote :

Hello all,

I just wanted to update this bug to show that it is still present with the newly released 2.6.32-22-generic kernel with radeon.modeset=1 and again disappears when radeon.modeset is set to 0.

Stejarel

Changed in linux (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Todd Johnson (johnson-todd) wrote :

I was seeing this bug in the betas, too. Last night (because of another issue, with X not loading and a bunch of radeon errors) I did a clean install of Lucid, and disabled KMS (to fix my weird X errors; I didn't know it was related to the wireless), and I haven't seen the bug yet this morning.

Revision history for this message
s0undt3ch (ufs) wrote :

I also have this issue. iwl3945 and ATI X1400 video card on LG laptop.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Yes, exactly my thought too, Stejarel. I'm running Lucid with radeon-KMS on ATI X1400 mobile graphics card (Lenovo Z61m laptop), and not only iwl3945 seems badly affected by graphical operations, but so does snd-hda-intel.

1) Youtube (or Flash in general) fullscreeen => iwl3945 very often drops the wireless connection during streaming (usually accompanied by some timeout errors in log, and sometimes even hpet "increasing min_delta_ns" warnings).
2) Fullscreen video or Flash => pops/crackles in audio, even though system is *not* overloaded (and this is *not* caused by Pulseaudio or HDA power management).
3) Running neverball under KMS actually causes dropped wireless connection, it seems (this happened with 2.6.34-rc7)..

I've been investigating audio issues under KMS for many days since I installed Lucid, since I have problems with crackling noise during video playback. Radeon KMS somehow causes problems with snd-hda-intel interrupt handling (been at it in bug 15912 at bugzilla.kernel.org, for a few days now).

Tried 2.6.34-rc7 (compiled myself from mainline, but using Ubuntu packaging and config), and after getting some other audio issue fixed (in same kernel bug metioned above), the pops/clicks and wireless problems sadly remain when using KMS.

Disabling radeon KMS definitely causes all audio problems to vanish, but I have not verified if it also cures the wireless problem with iwl3945.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

The wireless connection typically stays up during normal size Flash video streaming, but drops a short while after entering fullscreen, somehow relating it to system load or "graphical load". Perhaps it's some timing issue.

Revision history for this message
Tej (tej-patil) wrote :

Thanks to Stejarel Veres .

Your suggestion resolved my issue with wireless. Yes, I have a Dell Inspiron E1505 Laptop with Iw3945ABG and ATI X1400 video card.

As per Stejarel Veres I changed Added radeon.modeset=0 and I played variety of big video files 1080p, 720p quality and also in fulscreen which I did play for almost more than hour. I never had a connection drop once. I am happy about it now.

Regarding the bug #577537 which is a duplicate of this needs to be closed.

Tej

Revision history for this message
Jens Janssen (jayjay) wrote :

I see the same problem on AMD platform with Radeon X1250 (integrated/chipset) and Broadcom BCM4312 wireless card using b43 open source driver. So this problem is not only related to a Intel 3945ABG wireless card. Tested radeon.modeset=0 and the problem vanished so far.

Revision history for this message
Jens Janssen (jayjay) wrote :

This bug is easy to trigger by loading HD trailers from http://trailers.apple.com/.

Revision history for this message
JasonPorter (jasonporter) wrote :

I posted on the Phoronix forums to try to attract some of the radeon driver devs to this problem directly, and linked to this bug report for their reference. Several of the radeon developers participate there, so I thought it might help.

Phoronix thread here: http://www.phoronix.com/forums/showthread.php?t=23808

summary: - Lucid - iwl3945 drops connection on youtube but not with mainline
+ Lucid - radeon kms causes iwl3945 to drop connection on youtube but not
+ with mainline
Revision history for this message
In , JasonPorter (jasonporter) wrote :

Several Launchpad bug reports in process report radeon KMS conflicts with Intel wifi and audio output, causing wireless to hang/drop until power cycle and audio to crackle during any high GPU load. Disabling KMS as a workaround returns normal system operation.

Relevant Launchpad reports:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/564376
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/578342
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/571770
And one on Bugzilla:
https://bugzilla.kernel.org/show_bug.cgi?id=15912

My own hardware is a Thinkpad T60 with Radeon X1400 and Intel wireless (iwl3945 driver) running vanilla Ubuntu 10.04. Users of Radeon X1250, X1300, and Xpress 200M chipsets have also reported the same behavior, on Lenovo, Dell and LG laptops. Using a mainline kernel does not change the behavior.

This may possibly be due to a difference in PCI configuration between KMS and UMS, they use different IRQs for "Pin A" as detailed in the Bugzilla report linked above.

Thanks for any assistance you can provide! And thanks for all your hard work!

Revision history for this message
Tom Morton (tomm) wrote :

I also see this. Thinkpad T60, radeon X1300.

When I disable radeon KMS I get stronger wireless signals and am able to connect to networks I could not previously (network manager reports 88% connection strength when previously I would get 1 bar and then the connection would be lost)

Sure would be nice to have this fixed :)

Changed in xserver-xorg-driver-ati:
importance: Undecided → Unknown
status: New → Unknown
Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

Confirming this one, Thinkpad Z61m, ATI X1400. However, the IRQ difference does not seem to matter for the audio problems (I've tested with radeon KMS both with and without MSI, which is the difference between the two PCI configs listed in bug at https://bugzilla.kernel.org/show_bug.cgi?id=15912).

Revision history for this message
In , agd5f (agd5f) wrote :

Is there an option in your bios to assign different irqs to different pci devices? Some systems set every device to the same irq.

Revision history for this message
In , Maarten Fonville (maarten-fonville) wrote :

I don't think it is directly an IRQ issue that can be solved in the BIOS.
Because on my girlfriend's laptop which is also hit by this problem the radeon takes IRQ 17 with IO-APIC-fasteoi and hda_intel takes IRQ 24 with PCI-MSI-edge

Changed in xserver-xorg-driver-ati:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in xserver-xorg-driver-ati:
importance: Medium → Unknown
Changed in xserver-xorg-driver-ati:
importance: Unknown → Medium
tags: removed: regression-potential
55 comments hidden view all 135 comments
Revision history for this message
In , Maciej Borzecki (maciek-borzecki) wrote :

Created attachment 48007
dmesg from Ubuntu 11.04 - unaffected

Revision history for this message
In , Maciej Borzecki (maciek-borzecki) wrote :

Created attachment 48008
dmesg from Fedora 15 - affected

Revision history for this message
In , Maciej Borzecki (maciek-borzecki) wrote :

I've added dmesg output from Ubuntu 11.04 which is not affected with the bug (at least on my laptop - Thinkpad T60, 2623P2U, X1300) and Fedora 15 which does have the problem. Unless I missed something, the only relevant difference is DRM version reported, which is 2.8 for Ubuntu and 2.10 for Fedora (how come that's possible is another question).
So far, the following does not help:
- disp_priority=1
- agpmode=1
- gartsize=64
- dynclks=0

Revision history for this message
In , Jantaegert (jantaegert) wrote :

(In reply to comment #45)

Dynamic Powermanagement is disabled here (powermanagement profile is fixed to "default", what means, that all pcie lines stay allways enabled).

Revision history for this message
In , Maciej Borzecki (maciek-borzecki) wrote :

I played a bit with power_profile settings and it turns our that whenever profile is set to high, mid, sound stuttering is pronounced. Yet, once set to low, stuttering is gone (or unnoticeable).
If anyone wants to try (adjust path to suit your hardware):
echo low > /sys/class/drm/card0/device/power_profile
Then the actual frequency can be verified by:
cat /sys/kernel/debug/dri/0/radeon_pm_info

Also dynpm power_method does not really work, there was another bug report recenty that the frequency is never lowered if dynpm is used.

Additionally, given the recent fuss about pcie_aspm=force (and possible effect on PCIe), sound stuttering is present regardless of the setting.

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

(In reply to comment #50)
> I played a bit with power_profile settings and it turns our that whenever
> profile is set to high, mid, sound stuttering is pronounced. Yet, once set to
> low, stuttering is gone (or unnoticeable).
> If anyone wants to try (adjust path to suit your hardware):
> echo low > /sys/class/drm/card0/device/power_profile
> Then the actual frequency can be verified by:
> cat /sys/kernel/debug/dri/0/radeon_pm_info

Confirming this on ATI X1400 mobile, Ubuntu 11.04 x86. When using the "low" power profile, audio stuttering/crackling is much less prevalent (or maybe not even noticable) in Youtube fullscreen vids. Using the "high" setting results in definite audio crackling when switching to fullscreen. This is with the very latest Flashplayer 11 beta for Linux released today.

On my card, low setting results in:
# cat /sys/kernel/debug/dri/0/radeon_pm_info
default engine clock: 392000 kHz
current engine clock: 128250 kHz
default memory clock: 350000 kHz
current memory clock: 135000 kHz
PCIE lanes: 1

High setting gives:
# cat /sys/kernel/debug/dri/0/radeon_pm_info
default engine clock: 392000 kHz
current engine clock: 391500 kHz
default memory clock: 350000 kHz
current memory clock: 342000 kHz
PCIE lanes: 0

There's a difference not only in board frequencies, but also the PCIE lanes number (0 means full throttle, or is "more performant" than 1 I guess ??).

Revision history for this message
In , Maciej Borzecki (maciek-borzecki) wrote :

(In reply to comment #51)
> There's a difference not only in board frequencies, but also the PCIE lanes
> number (0 means full throttle, or is "more performant" than 1 I guess ??).

The PCIe lanes information seems to be read from the card itself (at least that's for RV515), look here:
http://lxr.linux.no/#linux+v2.6.39/drivers/gpu/drm/radeon/r300.c#L553
While 1 is understandable (PCIe x1), 0 value is confusing and I can't tell if that'x x16 or not. Maybe one of the driver authorsa can provide some input.

I've failed to locate any docs that contain information on the registers exposed on the PCI.

Revision history for this message
In , agd5f (agd5f) wrote :

Does adding noapic to the kernel commandline in grub help? See the last few comments in bug 37679.

Revision history for this message
In , Maciej Borzecki (maciek-borzecki) wrote :

(In reply to comment #53)
> Does adding noapic to the kernel commandline in grub help? See the last few
> comments in bug 37679.
No, it seems to have no effect on the problem, at least on my setup.

Revision history for this message
In , Richtigfalsch (richtigfalsch) wrote :

I'd like the importance of this bug being corrected to 'major' because disabling KMS in fact means a major loss of functionality. I'm now on kernel 2.6.40 and sadly this heavy bug still is there.

I skipped form Windows to Linux, mainly because the ATI Driver for the x1400 in my Thinkpad T60 (with iwl3945 od course) is crap.Now having tried many different distributions and kernels, i can confirm the bug still is there, and is making the notebook unusable. There's no 3D acceleration available at all on this GPU with KMS disabled. When playing a flash video it needs about 30 seconds fpr reaction if I clock some control with the mouse. Compiz or DirectX in Wine aren't working at all, and make the display crash. The GPU is wasting much energy and the notebook is running very hot, and overall just sluggish and not enjoyable in any fashion, I'd rather use my old Pentium M notebook, if it wasn't defective.

Please consider creating a solution fot this problem, as there's no single alternative for many Notebook owners, of expecially good notebooks (Thinkpad, Dell and more).

Problems with KMS enabled remain as before:
-iwl3945 WLAN gets slower and slower, until disconnect.
-heavy video (especially fullscreen) make the sound stutter in a fashion that makes it impossible to understand spoken word

Thanks,

Changed in xserver-xorg-driver-ati:
importance: Medium → High
Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

Seems worse than ever on Ubuntu 11.10 just released (kernel 3.0, libdrm 2.4.26, xserver 1.10.4, using the new Unity-interface-thing). Just moving the mouse pointer is enough to disturb audio now, apparently. And moving windows around turns audio into bubbling porridge.

Revision history for this message
In , Øyvind Stegard (oyvindstegard) wrote :

Unity is sluggish on the X1400. Guess it's too old to cope now, with the latest desktop tech. Anyways, audio interruption is more or less constant after a while. Don't even need to move anything. Got these:

[ 931.698537] CE: hpet increased min_delta_ns to 515452 nsec
[ 1019.733804] CE: hpet increased min_delta_ns to 773178 nsec
[ 1023.203405] hrtimer: interrupt took 7398146 ns
[ 1171.028962] CE: hpet increased min_delta_ns to 1159767 nsec

Revision history for this message
In , Maciej Borzecki (maciek-borzecki) wrote :

(In reply to comment #57)
> Unity is sluggish on the X1400. Guess it's too old to cope now, with the latest
> desktop tech.
Not really. Worked great with UMS. Compiz with way more advanced effects than fade in/out was smooth, same for ioquake running at decent framerate.

Revision history for this message
In , Tom Morton (tomm) wrote :

I get this on my Thinkpad T60, Radeon X1300 running debian sid.

As well as crackle on the internal intel audio, I get even worse crackle and popping when using my Logitech V20 USB speakers.

The only thing that resolves the problem for me is:

echo mid > /sys/class/drm/card0/device/power_profile

But then gnome-shell and all 3d apps are really slow.

Revision history for this message
In , Steffen-schloenvoigt (steffen-schloenvoigt) wrote :

Same problem on openSUSE 12.1 with lenovo T60, Radeon Mobility X1400

Revision history for this message
In , stevenb (stevenb) wrote :

Hi

Jan Kouba put me on track to this bug-page. I don't know if "official" developers use this channel as a information or judgment source of bugs. As far as I know Ubuntu works on launchpad to administrate bugs.

For this problem I created https://bugs.launchpad.net/ubuntu/+bug/879790 in order to make Ubuntu know that problem. It may be an idea to "make some noise" there in form of clicking on the button "This bug affects...". And - if you feel like - to reproduce some of your statements from this bug-report-page. Hopefully they will take notice finally.

keep fingers crossed
Quesst

Revision history for this message
In , Neven Klacar (nklacar) wrote :

Looks like this will never get solved ;(

If anyone has ideas on how to debug this issue, I have a t60 that I can use.

Revision history for this message
In , Neven Klacar (nklacar) wrote :

(In reply to comment #62)
> Looks like this will never get solved ;(
>
> If anyone has ideas on how to debug this issue, I have a t60 that I can use.

I tried enabling msi on alsa and its alot better. Still fulscreen is not good, but much sounds like 11.04

Add: options snd-hda-intel enable_msi=1" to the bottom of your /etc/modprobe.d/alsa-base file.

I think radeon is somehow not playing nice with msi. If we could disable it it might fix the problem...I tried doing it with echo 0 > msi_bus in the radeon bridge but it wasnt working

Revision history for this message
In , agd5f (agd5f) wrote :

With a new enough kernel, you can disable MSIs on radeon by setting radeon.msi=0 on the kernel command line in grub or when you load the module. You can disable MSIs globally by setting pci=nomsi on the kernel command line in grub.

Revision history for this message
In , agd5f (agd5f) wrote :
Revision history for this message
In , Neven Klacar (nklacar) wrote :

(In reply to comment #65)
> You might also try this patch:
> http://cgit.freedesktop.org/~airlied/linux/commit/?h=drm-fixes&id=b7f5b7dec3d539a84734f2bcb7e53fbb1532a40b

I tried to git the 11.10 package from ubuntu and recompile with the change you mentioned in rs600.c file and r100.c . It didnt seem to help. I noticed someone tried disabling MSI so this might not be related to MSI at all...

I was thinking of trying the latest radeon src?

Revision history for this message
In , agd5f (agd5f) wrote :

Has anyone tried messing with the audio or wifi drivers? It's possible the issue is on that side. How about messing with the cpufreq governors? Is it still an issue if you force the cpu power state to performance, etc.?

Revision history for this message
In , Neven Klacar (nklacar) wrote :

The wifi I tried disabling the sound quaility is still bad when doing anything display intensive. I havent tried disabling alsa altogether to see if the wifi is still dropping..

I wanna say when I first come up with MSI fixed version it sounds fine, youtube also sounds normal, but if I make the unity taskbar show up, then it goes into some sort of bad state where sound is bad again..maybe the clock switch in the gpu clock or cpu? Not sure....

I need to do some more experiments, haven't had the time.

Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

According to bug 38694 there can be problems when changing the number of PCIe lanes. Does disabling that as described there help for this problem?

Revision history for this message
In , Kolin S. Murray (kolinab) wrote :

Hi,

Apologies if this is not strictly on topic regarding fixing this bug - what I'm curious to know is what the 'best case' workaround all of you are using to avoid this problem? I'm open to absolutely any distribution, desktop environment, etc. Just wondering what the best alternative many of you have found to avoid the conflict and maintain the most functionality.

My best case options so far: Ubuntu 10.04 LTS where I don't remember noticing this problem, or even 12.04 in 2D if I could get my volume control buttons to work on my Thinkpad t60.

I'm also playing with arch to see if I can build something usable I like.

Regards,

K

Revision history for this message
In , Jan Kouba (kouba-honza) wrote :

Hi,

I have been able to get around this bug on IBM T60/x1400 running Kubuntu 12.04, by using kwin_gles desktop manager instead of the default one (kwin).

I had problems with sound slowing down and being very choppy when desktop effects were enabled, or when playing full-screen flash videos. I did not notice any problems with wifi. With kwin_gles I have absolutely no sound issues with desktop effects enabled.

How to change the window manager see:
http://weits.blogspot.cz/2012/02/kwin-gles-as-default-window-manager-in.html

I'm not X expert, so please take the following lines as my humble opinion. I belive, that the workaround is caused by the fact, that kwin_gles uses EGL for rendering, while kwin uses GLX. So maybe this bug can be avoided on other distros and window managers by setting them to use EGL instead of GLX.

Revision history for this message
In , Andrey Shamakhov (shamakhov-a) wrote :

Using kwin_gles doesn't make sense on my Asus A8Jr. Sound is crackling still during fullscreen flash video playing and when kwin desktop effects enabled.

Revision history for this message
In , Steffen-schloenvoigt (steffen-schloenvoigt) wrote :

Man, I love you! :)
I was fighting with this bug since - I don't know - and now, finally my laptop is usable again.

I know, using GLES is just a workarround - but at least there is one, now :)

Revision history for this message
In , Vassil Panayotov (vd-panayotov) wrote :

Just for the record I've tried Kubuntu 12.04.02 and the kwin_gles workaround does _not_ work for me unfortunately(T60 w/ X1400) . There are still messages like "CE: hpet increased min_delta_ns to 20113 nsec", and the wireless is very slow. This issue is very frustrating and is the first time when the open source model fails to work for me. I mean this report was filed 3 years ago, affects thousands of people, there is no good workaround and yet no one from the "radeon" developers seems to care.
I wonder if we can raise money and put together a bounty or something...

(posted this on https://bugs.launchpad.net/bugs/879790 24 hours ago but for some reason it's not synchronized yet, so posting it here "manually" too)

Revision history for this message
In , agd5f (agd5f) wrote :

This could just as easily be a chipset or sound or wifi issue tiggered by the additional bus activity of KMS.

Revision history for this message
In , Vassil Panayotov (vd-panayotov) wrote :

@Alex Deucher: Yes, the modern operating systems and hardware are complex beasts and I surely understand that some bugs may be hard to track down. The point is however that there wasn't a systematic effort to resolve this particular issue except for some "there is a random problem X described in ticket Y, which may be the reason for your troubles too, so why don't you try the solution proposed there". By the way I tried the change proposed by Michel Dänzer in https://bugs.freedesktop.org/show_bug.cgi?id=38694 , but unfortunately it doesn't seem to help either.
I am clueless about the kernel internals, but the manifestations of this bug seem to be consistent with the hypothesis that there is something wrong with the "radeon" driver. It seems like something locks the system for long periods of time and the other time sensitive modules "freak out". On my laptop the problem became even more pronounced when I swapped the "1440x900" LCD panel with a "1600x1200" one.

Revision history for this message
In , agd5f (agd5f) wrote :

(In reply to comment #76)
> @Alex Deucher: Yes, the modern operating systems and hardware are complex
> beasts and I surely understand that some bugs may be hard to track down. The
> point is however that there wasn't a systematic effort to resolve this
> particular issue except for some "there is a random problem X described in
> ticket Y, which may be the reason for your troubles too, so why don't you
> try the solution proposed there". By the way I tried the change proposed by
> Michel Dänzer in https://bugs.freedesktop.org/show_bug.cgi?id=38694 , but
> unfortunately it doesn't seem to help either.

There were several suggestions on this bug, but apparently none of them helped.

> I am clueless about the kernel internals, but the manifestations of this bug
> seem to be consistent with the hypothesis that there is something wrong with
> the "radeon" driver. It seems like something locks the system for long
> periods of time and the other time sensitive modules "freak out". On my
> laptop the problem became even more pronounced when I swapped the "1440x900"
> LCD panel with a "1600x1200" one.

A bigger display means more data is being moved around. It sounds to me like a chipset issue when large amounts of data are being transferred across the bus. KMS uses system memory more readily than UMS did which is likely why the issues shows up with KMS. I don't know of any other options to try in the driver. We don't have these problems with the same radeon chips is other systems. Unfortunately, I'm not a chipset expert so I'm not sure what sort of pci quirks, etc. to try.

It could also be that the there is an issue in the sound or wifi driver which didn't show up as readily when there was less traffic on the bug. As far as I know no one has investigated these avenues very much.

Revision history for this message
GHPS (software-sw) wrote :

Good news - the bug seems to be finally fixed in Kubuntu 13.04

Background: For two years I've been experiencing strange, yet increasing problems with Kubuntu on my ThinkPadsT60/T60p. It started with version 10.10 which suffered from strange WLAN faults and random desktop lockups. The workaround for the WLAN problem slowed the wireless interface down so much that is was unusable.

Since version 11.10 a problem with my USB keyboard came on top: Every now and then - but still regularly - the key last pressed was repeated endlesslyyyyyyyyy. And versions 12.04 and 12.10 also had the sound problem also experienced by others. The sound was distorted so much that listening to music and watching videos was impossible. The distortions were even worse in full screen video. The GUI ran quite slow and lagged (even on my 2.1 GHz machine).

A step in the right direction was the GLES window manager on my 12.04 Kubuntu. It worked fine fixing all these problems but was not very fast. Kubuntu was usable again at the price of less fun using the system. But Kwin GLES only works with Kubuntu up to version 12.04(.01), not version 12.10. In the latter the screen refresh is faulty which makes using the desktop impossible.

A few weeks ago I installed the backport of KDE SC 4.10 which was very promising.
(http://www.webupd8.org/2013/02/upgrade-to-kde-sc-410-in-kubuntu-1210.html) The standard KWin manager worked flawlessly out of the box. No need to use GLES any more.

So I was keen on testing the new Kubuntu 13.04 released last week. During the weekend I had the chance to use it quite extensively on a fresh installation and -
all problems with WLAN, keyboard, sound and speed are gone now. The new Kubuntu is the best version available for my ThinksPads - fast, stable and without the sharp edges previous versions had.

Great work! Thanks to the developers involved in this new version!

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Ubuntu 13.04 x86 was as bad as ever on old Thinkpad Z61m (tested with live CD, default Unity env). None of the problems with KMS+audio+wireless are fixed. Luckily I don't use that laptop much nowadays.

Revision history for this message
GHPS (software-sw) wrote :

> Ubuntu 13.04 x86 was as bad as ever on old Thinkpad Z61m (tested with live CD, default Unity env)

So you didn't use KDE at all?

Revision history for this message
penalvch (penalvch) wrote :

ndeubert, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily kernel folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.11.1

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
In , Tomwallroth (tomwallroth) wrote :

I had all the problems as described by Øyvind Stegard and I have the feeling that it got slightly better after installing the latest available BIOS for my Thinkpad T60 2007-CTO (ATI X1400, iwl3945, snd-hda-intel).

I'm running 32bit Arch with the 3.11.4-1-ARCH Kernel and xf86-video-ati 1:7.2.0-1

I've tried all other options mentioned here, without any sign of improvement. What can I do to further help investigating this problem? Would it be of any help to e.g. study the IRQ settings used in windows?

Revision history for this message
ndeubert (ndeubert) wrote :

I've been using Xubuntu Quantal on the same laptop for a year plus and I no longer have this issue.

Revision history for this message
penalvch (penalvch) wrote :

ndeubert, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/564376/comments/133 regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in linux (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
In , mirh (mirh) wrote :

Many of the linked issues report the problem fixed (broadly, by the time of ubuntu 14.04).

Is this still a thing?

penalvch (penalvch)
no longer affects: linux (Ubuntu)
affects: xserver-xorg-driver-ati → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: High → Undecided
status: Confirmed → New
status: New → Invalid
Displaying first 40 and last 40 comments. View all 135 comments or add a comment.
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.