Stack trace on console, can not do clean shutdown

Bug #476154 reported by Onkar Shinde
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Medium
linux (Ubuntu)
Fix Released
Medium
Stefan Bader
Karmic
Fix Released
Medium
Unassigned

Bug Description

SRU Justification:

Impact: From 2.6.31.6 patch commit "b43: Fix PPC crash in rfkill polling on unload" fixed the bug reported in Bugzilla No. 14181; however, it introduced a new bug. Whenever the radio switch was turned off, it was necessary to unload and reload the driver for it to recognize the switch again.

Fix: This patch fixes both the original bug in #14181 and the bug introduced by the previous patch. It must be stated, however, that if there is a BCM4306/3 with an rfkill switch (not yet proven), then the driver will need an unload/reload cycle to turn the device back on.

---

I updated my ibook G4 laptop to karmic yesterday. Since then I am not able to do clean shutdown on this laptop. Whenever I try to shutdown the laptop (through panel menu), I see following stack trace on console and the shutdown process never completes.

Nov 6 01:41:34 iBook kernel: [ 231.816275] Modules linked in: binfmt_misc ppdev lp parport snd_powermac snd_aoa_i2sbus snd_pcm_oss snd_mixer_oss snd_seq_dummy snd_pcm snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device arc4 ecb b43 snd snd_page_alloc mac80211 cfg80211 uinput sbp2 iptable_filter rfkill loop soundcore radeon ip_tables apm_emu ipv6 x_tables pmac_zilog snd_aoa_soundbus drm evdev serial_core rtc_generic apm_emulation windfarm_core sungem sungem_phy ohci1394 ieee1394 ssb uninorth_agp agpgart
Nov 6 01:41:34 iBook kernel: [ 231.816340] NIP: c001bb64 LR: f20ac610 CTR: c001bb5c
Nov 6 01:41:34 iBook kernel: [ 231.816347] REGS: ef85fe10 TRAP: 0200 Not tainted (2.6.31-14-powerpc)
Nov 6 01:41:34 iBook kernel: [ 231.816351] MSR: 00149030 <EE,ME,IR,DR> CR: 42000022 XER: 00000000
Nov 6 01:41:34 iBook kernel: [ 231.816363] TASK = ef84bd40[5] 'events/0' THREAD: ef85e000
Nov 6 01:41:34 iBook kernel: [ 231.816367] GPR00: c1cab850 ef85fec0 ef84bd40 000002c0 0000049a 00010000 00000002 00000010
Nov 6 01:41:34 iBook kernel: [ 231.816377] GPR08: 00000000 f20aeff4 00000000 c001bb5c 22000022 00000000 0021b960 0021b9e4
Nov 6 01:41:34 iBook kernel: [ 231.816387] GPR16: 0021b93c 0021bb28 002413b0 0021b860 ef84bd40 c1d08700 c0505b74 c0505bac
Nov 6 01:41:34 iBook kernel: [ 231.816397] GPR24: c055383c ef2599c0 c1cab800 00000001 ef2591a0 f2ac95f4 0000049a c1cab800
Nov 6 01:41:34 iBook kernel: [ 231.816425] NIP [c001bb64] ioread16+0x8/0x18
Nov 6 01:41:34 iBook kernel: [ 231.816453] LR [f20ac610] ssb_pci_read16+0x30/0x68 [ssb]
Nov 6 01:41:34 iBook kernel: [ 231.816457] Call Trace:
Nov 6 01:41:34 iBook kernel: [ 231.816467] [ef85fec0] [f20aab58] ssb_device_enable+0xe0/0x118 [ssb] (unreliable)
Nov 6 01:41:34 iBook kernel: [ 231.816519] [ef85fed0] [f2d9a8e0] b43_is_hw_radio_enabled+0x60/0x74 [b43]
Nov 6 01:41:34 iBook kernel: [ 231.816532] [ef85fee0] [f2d9a93c] b43_rfkill_poll+0x48/0x134 [b43]
Nov 6 01:41:34 iBook kernel: [ 231.816596] [ef85ff10] [f2b90a60] ieee80211_rfkill_poll+0x34/0x44 [mac80211]
Nov 6 01:41:34 iBook kernel: [ 231.816639] [ef85ff20] [f2b26020] cfg80211_rfkill_poll+0x20/0x30 [cfg80211]
Nov 6 01:41:34 iBook kernel: [ 231.816660] [ef85ff30] [f2ac9620] rfkill_poll+0x2c/0x54 [rfkill]
Nov 6 01:41:34 iBook kernel: [ 231.816676] [ef85ff40] [c005770c] run_workqueue+0xd0/0x178
Nov 6 01:41:34 iBook kernel: [ 231.816684] [ef85ff80] [c0057854] worker_thread+0xa0/0x124
Nov 6 01:41:34 iBook kernel: [ 231.816694] [ef85ffc0] [c005c38c] kthread+0x78/0x7c
Nov 6 01:41:34 iBook kernel: [ 231.816700] [ef85fff0] [c001646c] kernel_thread+0x4c/0x68
Nov 6 01:41:34 iBook kernel: [ 231.816704] Instruction dump:
Nov 6 01:41:34 iBook kernel: [ 231.816708] 3863f638 483f78fd 7f800124 4bfffdac 7c0004ac 88630000 0c030000 4c00012c
Nov 6 01:41:34 iBook kernel: [ 231.816718] 5463063e 4e800020 7c0004ac 7c601e2c <0c030000> 4c00012c 5463043e 4e800020
Nov 6 01:41:34 iBook kernel: [ 231.816733] ---[ end trace af91316c77c880e2 ]---

ProblemType: Bug
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Snapper [PowerMac Snapper], device 0: PMac Snapper [PowerMac Snapper]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: powerpc
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Snapper [PowerMac Snapper], device 0: PMac Snapper [PowerMac Snapper]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: onkar 1411 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Snapper'/'PowerMac Snapper (Dev 38) Sub-frame 0'
   Mixer name : 'PowerMac Snapper'
   Components : ''
   Controls : 15
   Simple ctrls : 14
Date: Fri Nov 6 10:40:12 2009
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=UUID=52845555-d3e5-4681-9005-1d144f673e1b
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Package: linux-image-2.6.31-14-powerpc 2.6.31-14.48
PciMultimedia:

ProcCmdLine: root=/dev/hda6 ro quiet
ProcEnviron:
 LANG=en_IN
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-powerpc
RelatedPackageVersions: linux-firmware 1.24
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
Uname: Linux 2.6.31-14-powerpc ppc
WpaSupplicantLog:

XsessionErrors:
 (gnome-settings-daemon:1532): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:1532): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:1578): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:1567): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed

Revision history for this message
Onkar Shinde (onkarshinde) wrote :
Revision history for this message
Onkar Shinde (onkarshinde) wrote :

If I unload b43 module manually using modprobe then shutdown works correctly. I am wondering if b43 has been updated to play nice after the rfkill rewrite in kernel 2.6.31.

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Found upstream bug - http://bugzilla.kernel.org/show_bug.cgi?id=14181
The bug is fixed only in 2.6.32 branch - http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=d50bae33d1358b909ade05ae121d83d3a60ab63f

Can someone please backport the change to our kernel.

Andy Whitcroft (apw)
tags: added: regression-release
Revision history for this message
Stefan Bader (smb) wrote :

The mentioned patch seems to be in review for 2.6.31.6 and should come to Karmic as part of the upstream stable updates. For now I created some powerpc test kernels with that patch specifically applied. Please have a try with one of those and give us feedback here. Thanks. (http://people.canonical.com/~smb/bug476154/)

Changed in linux (Ubuntu):
assignee: nobody → Stefan Bader (stefan-bader-canonical)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Onkar Shinde (onkarshinde) wrote :

@Stefan,

I tried the test kernel build and it works properly. The panic is not seen now and machine shuts down cleanly.

tags: added: 2.6.31.6
Changed in linux:
status: Unknown → Fix Released
Revision history for this message
Stefan Bader (smb) wrote :

I believe this one should already be in the Lucid tree.

Changed in linux (Ubuntu):
status: Triaged → Fix Released
Changed in linux (Ubuntu Karmic):
importance: Undecided → Medium
status: New → Fix Committed
Stefan Bader (smb)
description: updated
Revision history for this message
tournesolo (tournesolo) wrote :

I have what looks like the same issue, but with b43legacy (instead of b43) -- and this new kernel does *not* fix the issue. I still have a freeze on shutdown, unless I modprobe -r b43legacy. (See https://bugs.launchpad.net/ubuntu/+source/linux/+bug/450159 )

Revision history for this message
tournesolo (tournesolo) wrote :

I should probably have specificied: aluminium powerbook G4, running Karmic, wifi =

0001:10:12.0 Network controller [0280]: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller [14e4:4320] (rev 02)

~$ lsmod | grep b43
b43legacy 132868 0
mac80211 194580 1 b43legacy
cfg80211 101460 2 b43legacy,mac80211
ssb 40472 1 b43legacy

Revision history for this message
Stefan Bader (smb) wrote :

Blindly assuming the changes for b43 just can be taken to b43legacy, I build some test kernels on that base. They can be found at http://people.canonical.com/~smb/bug476154/ as well (the -16 kernels).
@tournesolo, can you check whether this solves your problem? If yes, I assume the other bug you mentioned (bug 450159) is for the legacy version of the b43. So this should then be followed up the other report (as well as here) and then I see to send the patch upstream and to stable.

Revision history for this message
tournesolo (tournesolo) wrote :

Fantastic! This new kernel solves the shutdown issue for b43legacy on my powerpc laptop. Thanks a lot. (Now if only it could also solve the suspend/hibernate issue, the laptop would be fully usable ;)

Revision history for this message
Stefan Bader (smb) wrote :

This is the patch I will send upstream.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted linux into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Onkar Shinde (onkarshinde) wrote :

The bug is fixed in the package in karmic-proposed.

tags: added: verification-done
removed: verification-needed
Revision history for this message
rednose (roberto-crema) wrote :

Hello,

thx all for the update, it solves the issue of suspend/resume cycle with b43 too. I was forced to manually rmmod/modprobe the b43 module if I wanted to suspend/resume my mac.

Somehow I still need to do it, because AFTER a resume the b43 module, even if loaded (lsmod) is not working. I need to manually unload and reload b43 to have the wifi waked up.

Ciao

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (11.9 KiB)

This bug was fixed in the package linux - 2.6.31-17.54

---------------
linux (2.6.31-17.54) karmic-proposed; urgency=low

  [ John Johansen ]

  * SAUCE: AppArmor: Fix oops after profile removal
    - LP: #475619
  * SAUCE: AppArmor: Fix Oops when in apparmor_bprm_set_creds
    - LP: #437258
  * SAUCE: AppArmor: Fix cap audit_caching preemption disabling
    - LP: #479102
  * SAUCE: AppArmor: Fix refcounting bug causing leak of creds
    - LP: #479115
  * SAUCE: AppArmor: Fix oops there is no tracer and doing unsafe
    transition.
    - LP: #480112

  [ Leann Ogasawara ]

  * Revert "[Upstream] (drop after 2.6.31) usb-storage: Workaround devices
    with bogus sense size"
    - LP: #461556
  * Revert "[Upstream] (drop after 2.6.31) Input: synaptics - add another
    Protege M300 to rate blacklist"
    - LP: #480144

  [ Tim Gardner ]

  * [Config] udeb: Add squashfs to fs-core-modules
    - LP: #352615

  [ Upstream Kernel Changes ]

  * Revert "e1000e: swap max hw supported frame size between 82574 and
    82583"
    - LP: #461556
  * Revert "drm/i915: Fix FDI M/N setting according with correct color
    depth"
    - LP: #480144
  * Revert "agp/intel: Add B43 chipset support"
    - LP: #480144
  * Revert "drm/i915: add B43 chipset support"
    - LP: #480144
  * Revert "ACPI: Attach the ACPI device to the ACPI handle as early as
    possible"
    - LP: #327499, #480144
  * SCSI: Retry ADD_TO_MLQUEUE return value for EH commands
    - LP: #461556
  * SCSI: Fix protection scsi_data_buffer leak
    - LP: #461556
  * SCSI: sg: Free data buffers after calling blk_rq_unmap_user
    - LP: #461556
  * ARM: pxa: workaround errata #37 by not using half turbo switching
    - LP: #461556
  * tracing/filters: Fix memory leak when setting a filter
    - LP: #461556
  * x86/paravirt: Use normal calling sequences for irq enable/disable
    - LP: #461556
  * USB: ftdi_sio: remove tty->low_latency
    - LP: #461556
  * USB: ftdi_sio: remove unused rx_byte counter
    - LP: #461556
  * USB: ftdi_sio: clean up read completion handler
    - LP: #461556
  * USB: ftdi_sio: re-implement read processing
    - LP: #461556
  * USB: pl2303: fix error characters not being reported to ldisc
    - LP: #461556
  * USB: digi_acceleport: Fix broken unthrottle.
    - LP: #461556
  * USB: serial: don't call release without attach
    - LP: #461556
  * USB: option: Toshiba G450 device id
    - LP: #461556
  * USB: ipaq: fix oops when device is plugged in
    - LP: #461556
  * USB: cp210x: Add support for the DW700 UART
    - LP: #461556
  * USB: Fix throttling in generic usbserial driver
    - LP: #461556
  * USB: storage: When a device returns no sense data, call it a Hardware
    Error
    - LP: #400652, #461556
  * arm, cris, mips, sparc, powerpc, um, xtensa: fix build with bash 4.0
    - LP: #461556
  * intel-iommu: Cope with broken HP DC7900 BIOS
    - LP: #461556
  * futex: Detect mismatched requeue targets
    - LP: #461556
  * futex: Fix wakeup race by setting TASK_INTERRUPTIBLE before queue_me()
    - LP: #461556
  * tpm-fixup-pcrs-sysfs-file-update
    - LP: #461556
  * TPM: fix pcrread
    - LP: #461556
  * Bluetooth: Disconnect HIDRAW devices on disconnect
    - LP...

Changed in linux (Ubuntu Karmic):
status: Fix Committed → Fix Released
Changed in linux:
importance: Unknown → Medium
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.