ppc kernel crash on pccard insertion

Bug #455723 reported by Jonathan Hudson
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Unassigned
Karmic
Medium
Stefan Bader

Bug Description

SRU Justication:

Impact: On powerpc, the cardbus code needs to run through fixup code, otherwise the kernel will crash with inserted cards.

Fix: The patch, backported from upstream, will create a fixup function which is doing nothing on all architectures but powerpc. And for powerpc
it will call the required fixup code. For Lucid this has been forwarded to <email address hidden>, but the 2.6.31.y support ended now.

Testcase: See below

---

Binary package hint: linux-image-2.6.31-14-powerpc

Using PPC Karmic of 2009-10-19, on inserting a PCCard (a USB 2.0 device), the kernel Oops is observed. This may be related to https://bugs.launchpad.net/bugs/421940, which is another failure of the PCCard sub-system on PPC.

[ 321.006206] ------------[ cut here ]------------
[ 321.006216] kernel BUG at /build/buildd/linux-2.6.31/arch/powerpc/include/asm/dma-mapping.h:250!
[ 321.006237] Oops: Exception in kernel mode, sig: 5 [#1]
[ 321.006243] PowerMac
[ 321.006247] Modules linked in: binfmt_misc ppdev lp parport uinput autofs4 cpufreq_stats radeon drm ipv6 sha256_generic aes_generic sbp2 apm_emu apm_emulation dm_crypt dm_mod airport rt2500pci orinoco rt2x00pci rt2x00lib input_polldev iptable_filter mac80211 cfg80211 rfkill eeprom_93cx6 ip_tables x_tables snd_powermac snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi pcmcia snd_seq_midi_event snd_seq yenta_socket pmac_zilog snd_aoa_i2sbus snd_pcm_oss rsrc_nonstatic serial_core rtc_generic pcmcia_core snd_mixer_oss snd_seq_device snd_pcm evdev snd_timer snd_aoa_soundbus snd soundcore snd_page_alloc nfsd exportfs nfs lockd nfs_acl auth_rpcgss sunrpc raid10 raid456 raid6_pq async_xor async_memcpy async_tx xor raid1 raid0 multipath linear md_mod windfarm_core usbhid hid sungem sungem_phy ohci1394 ieee1394 uninorth_agp agpgart
[ 321.006453] NIP: c03482a8 LR: c0329a60 CTR: c034431c
[ 321.006463] REGS: de283d00 TRAP: 0700 Not tainted (2.6.31-14-powerpc)
[ 321.006470] MSR: 00029032 <EE,ME,CE,IR,DR> CR: 24000028 XER: 20000000
[ 321.006490] TASK = df3b2df0[691] 'pccardd' THREAD: de282000
[ 321.006497] GPR00: 00000001 de283db0 df3b2df0 de3ddc58 de3ddc00 00000000 00000001 00000001
[ 321.006515] GPR08: 00000020 00000000 00000000 00000140 24000044 00000000 0021b960 0021b9e4
[ 321.006532] GPR16: 0021b93c 0021bb28 002413b0 0021b860 018fec78 018fec68 0000002e 00000000
[ 321.006550] GPR24: 00000000 c05c3778 00000002 00000000 000000a0 de3dd000 de3dc400 de3dc4e8
[ 321.006583] NIP [c03482a8] ohci_init+0x2cc/0x408
[ 321.006594] LR [c0329a60] usb_add_hcd+0x144/0x404
[ 321.006600] Call Trace:
[ 321.006617] [de283db0] [c05c3778] iomem_resource+0x0/0x1c (unreliable)
[ 321.006629] [de283dd0] [c0329a60] usb_add_hcd+0x144/0x404
[ 321.006641] [de283df0] [c03384d8] usb_hcd_pci_probe+0x1dc/0x29c
[ 321.006655] [de283e20] [c0247740] local_pci_probe+0x24/0x34
[ 321.006667] [de283e30] [c0248a60] pci_device_probe+0x84/0xa8
[ 321.006680] [de283e60] [c02c541c] really_probe+0x74/0x198
[ 321.006691] [de283e80] [c02c47bc] bus_for_each_drv+0x70/0xac
[ 321.006702] [de283eb0] [c02c5758] device_attach+0x84/0xa8
[ 321.006712] [de283ed0] [c02c3fe0] bus_probe_device+0x2c/0x44
[ 321.006729] [de283ee0] [c02c2a44] device_add+0x2c8/0x3d8
[ 321.006746] [de283f20] [c0241a40] pci_bus_add_device+0x1c/0x5c
[ 321.006758] [de283f30] [c0241ad8] pci_bus_add_devices+0x58/0x174
[ 321.006799] [de283f50] [e29b500c] cb_alloc+0xe4/0x628 [pcmcia_core]
[ 321.006818] [de283f70] [e29b09c0] socket_insert+0xe8/0x114 [pcmcia_core]
[ 321.006839] [de283f80] [e29b1494] pccardd+0x240/0x2a4 [pcmcia_core]
[ 321.006853] [de283fc0] [c005c38c] kthread+0x78/0x7c
[ 321.006866] [de283ff0] [c001646c] kernel_thread+0x4c/0x68
[ 321.006873] Instruction dump:
[ 321.006879] 80090004 0c000000 4c00012c 4bfffdcc 807fff18 38000001 39200000 2f830000
[ 321.006896] 419e0010 81230084 7d200034 5400d97e <0f000000> 80090000 38800100 38bf0008
[ 321.006918] ---[ end trace 97910773f9883602 ]---

Revision history for this message
Jonathan Hudson (jh+lpd) wrote :

A patch was published 2009-12-09 by Benjamin Herrenschmidt <email address hidden> "[PATCH] cardbus: Add a fixup hook and fix powerpc" that fixes this problem.

The patch is attached. It applies with offset against 2.6.31 kernels, and cleanly against 2.6.32.

-jh

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Stefan Bader (smb)
Changed in linux (Ubuntu Karmic):
assignee: nobody → Stefan Bader (stefan-bader-canonical)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Romel R. Sandoval-Palomo (romel-lavabit) wrote :

Is this patch going to be included on regular Ubuntu updates or do I have to apply manually?

If is not going to be included on Ubuntu updates, how do I apply this patch? I'm using kernel 2.6.31.

Thanks.

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

Fix is in Lucid

Changed in linux (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Stefan Bader (smb) wrote :

The fix currently is only available in our pre-proposed PPA (https://launchpad.net/~kernel-ppa/+archive/pre-proposed). It will be included in the next kernel going to proposed, but it waits on the current proposed kernel being moved to updates.

Changed in linux (Ubuntu Karmic):
status: Triaged → Fix Committed
Stefan Bader (smb)
description: updated
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
Jonathan Hudson (jh+lpd) wrote :

There appears to be no installable package for the architecture (ppc) that this bugs affects, which makes testing the fix less easy. Is this correct?

-jh

Revision history for this message
Jonathan Hudson (jh+lpd) wrote :

However, the lucid kernel works fine (image downloaded 2010-03-25 02:00:00)

-jh

Revision history for this message
Stefan Bader (smb) wrote : Re: [Bug 455723] Re: ppc kernel crash on pccard insertion

Seems the packages for Karmic need archive action to be released. Thanks for the
pointer.

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

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

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

  [ Andy Whitcroft ]

  * [Config] generic-pae switch to M586TSC
    - LP: #519448

  [ Chris Wilson ]

  * (pre-stable) drm/i915: Increase fb alignment to 64k
    - LP: #404064

  [ Colin Ian King ]

  * Input: i8042 - bypass AUX IRQ delivery test on laptops
    - LP: #534448

  [ Jerone Young ]

  * SAUCE: Fix volume hotkeys for Dell Studio 1557
    - LP: #465250

  [ Mirsal Ennaime ]

  * SAUCE: aufs: Fix header files inclusion in debug.h
    - LP: #517151

  [ Stefan Bader ]

  * [Config] Enable all CGROUP configuration options
    - LP: #480739

  [ Surbhi Palande ]

  * Revert "[Upstream] acerhdf: Limit modalias matching to supported
    boards"
    - LP: #509730
  * [Config] ext3 defaults to ordered mode
    - LP: #510067

  [ Tim Gardner ]

  * [Config] Fix sub-flavours package conflicts
    - LP: #454827

  [ Upstream Kernel Changes ]

  * PCI/cardbus: Add a fixup hook and fix powerpc
    - LP: #455723
  * fnctl: f_modown should call write_lock_irqsave/restore
    - LP: #519436
  * ACPI: enable C2 and Turbo-mode on Nehalem notebooks on A/C
    - LP: #516325
  * tg3: Add 57788, remove 57720
    - LP: #515390
  * HID: ignore all recent SoundGraph iMON devices
    - LP: #488443
  * Input: ALPS - add interleaved protocol support (Dell E6x00 series)
    - LP: #296610
  * acerhdf: limit modalias matching to supported
    - LP: #509730
  * ASoC: Do not write to invalid registers on the wm9712.
    - LP: #509730
  * cifs: NULL out tcon, pSesInfo, and srvTcp pointers when chasing DFS
    referrals
    - LP: #509730
  * clockevents: Prevent clockevent_devices list corruption on cpu hotplug
    - LP: #509730
  * dma: at_hdmac: correct incompatible type for argument 1 of
    'spin_lock_bh'
    - LP: #509730
  * drivers/net/usb: Correct code taking the size of a pointer
    - LP: #509730
  * Libertas: fix buffer overflow in lbs_get_essid()
    - LP: #509730
  * md: Fix unfortunate interaction with evms
    - LP: #509730
  * pata_cmd64x: fix overclocking of UDMA0-2 modes
    - LP: #509730
  * pata_hpt3x2n: fix clock turnaround
    - LP: #509730
  * SCSI: fc class: fix fc_transport_init error handling
    - LP: #509730
  * sound: sgio2audio/pdaudiocf/usb-audio: initialize PCM buffer
    - LP: #509730
  * USB: emi62: fix crash when trying to load EMI 6|2 firmware
    - LP: #509730
  * USB: Fix a bug on appledisplay.c regarding signedness
    - LP: #509730
  * USB: musb: gadget_ep0: avoid SetupEnd interrupt
    - LP: #509730
  * USB: option: support hi speed for modem Haier CE100
    - LP: #490068, #509730
  * x86, cpuid: Add "volatile" to asm in native_cpuid()
    - LP: #509730
  * e100: Use pci pool to work around GFP_ATOMIC order 5 memory allocation
    failure
    - LP: #509730
  * e100: Fix broken cbs accounting due to missing memset.
    - LP: #509730
  * hostap: Revert a toxic part of the conversion to net_device_ops
    - LP: #509730
  * hwmon: (fschmd) Fix check on unsigned in watchdog_write()
    - LP: #509730
  * hwmon: (sht15) Off-by-one error in array index + incorrect constants
    - LP: #509730
  * i2c/tsl2550: Fix...

Read more...

Changed in linux (Ubuntu Karmic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers