Suspend on Lucid beta sometimes kills the r8192_pci module

Bug #552717 reported by Tim Towers
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Undecided
Tim Gardner

Bug Description

Binary package hint: linux-image

when resume fails, the following information is left in dmesg:

[122147.278450] PM: resume devices took 1.764 seconds
[122147.278523] PM: Finishing wakeup.
[122147.278527] Restarting tasks ... done.
[122148.502230] rtl819xE: PlatformInitFirmware()==>
[122148.502237]
[122148.527531] rtl819xE:Download Firmware: Put code fail!
[122148.527537]
[122148.527544] rtl819xE:ERR in CPUcheck_maincodeok_turnonCPU()
[122148.527548]
[122148.527552] rtl819xE:CPUcheck_maincodeok_turnonCPU fail!
[122148.527555]
[122148.527560] rtl819xE:ERR in init_firmware()
[122148.527563]
[122148.527569] rtl819xE:ERR!!! _rtl8192_up(): initialization is failed!

functionality can be restored with "rmmod r8192_pci ; modprobe r8192_pci"

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image (not installed)
Regression: No
Reproducible: Yes
TestedUpstream: Yes
ProcVersionSignature: Ubuntu 2.6.32-17.26-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-17-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: tim 1470 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf0400000 irq 22'
   Mixer name : 'Realtek ALC269'
   Components : 'HDA:10ec0269,144dc072,00100004'
   Controls : 13
   Simple ctrls : 8
Date: Wed Mar 31 18:27:31 2010
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=ac75e8dd-95c4-49ad-aa6a-8fca366852e8
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
MachineType: SAMSUNG ELECTRONICS CO., LTD. N150/N210/N220
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-17-generic root=UUID=764347fd-d4df-4469-aedd-4d10fb037f09 ro quiet splash
ProcEnviron:
 LANG=en_GB.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.33
RfKill:
 5: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
StagingDrivers: r8192_pci
Title: [STAGING]
dmi.bios.date: 12/07/2009
dmi.bios.vendor: Phoenix Technologies Ltd.
dmi.bios.version: 03JI.M018.20091207.JIP
dmi.board.asset.tag: SAMSUNG
dmi.board.name: N150/N210/N220
dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLtd.:bvr03JI.M018.20091207.JIP:bd12/07/2009:svnSAMSUNGELECTRONICSCO.,LTD.:pnN150/N210/N220:pvrNotApplicable:rvnSAMSUNGELECTRONICSCO.,LTD.:rnN150/N210/N220:rvrNotApplicable:cvnSAMSUNGELECTRONICSCO.,LTD.:ct10:cvrN/A:
dmi.product.name: N150/N210/N220
dmi.product.version: Not Applicable
dmi.sys.vendor: SAMSUNG ELECTRONICS CO., LTD.

Revision history for this message
Tim Towers (tim-lorien) wrote :
Revision history for this message
Duncan Clough (duncan-clough) wrote :

I experience the same problem, with the same dmseg output. However I only experience this sometimes after a suspend, as well as sometimes on startup.

"rmmod r8192_pci ; modprobe r8192_pci" usually restores functionality, but sometimes it doesn't. If I run the command repeatedly (2-5 times), it fixes the problem most of the time. Once or twice, I've had to restart to fix the problem.

Sometimes the wireless connection also just dies after a while - in this case the dmesg output after running rmmod and modprobe is the same (assuming that running the commands doesn't restore wireless).

I'm running up-to-date 32-bit Xubuntu 10.04 (with the firmware fix from Bug #508746 installed from lucid-proposed) on a Samsung N150.

dmseg output:
[ 14.606740] rtl819xE: PlatformInitFirmware()==>
[ 14.644982] rtl819xE 0000:05:00.0: firmware: requesting RTL8192E/boot.img
[ 14.664889] rtl819xE 0000:05:00.0: firmware: requesting RTL8192E/main.img
[ 14.756040] rtl819xE:Download Firmware: Put code fail!
[ 14.756046]
[ 14.756050] rtl819xE:ERR in CPUcheck_maincodeok_turnonCPU()
[ 14.756053]
[ 14.756057] rtl819xE:CPUcheck_maincodeok_turnonCPU fail!
[ 14.756060]
[ 14.756063] rtl819xE:ERR in init_firmware()
[ 14.756065]
[ 14.756070] rtl819xE:ERR!!! _rtl8192_up(): initialization is failed!

Revision history for this message
Tim Towers (tim-lorien) wrote :

problem still exists in the 2.6.35-23-generic kernel.

Revision history for this message
Tim Towers (tim-lorien) wrote :

There is an unreliable workaround which removes the module on suspend and reinserts it on wakeup documented in
http://www.backports.ubuntuforums.org/showpost.php?p=8574835&postcount=3

Synopsis: Edit /usr/lib/pm-utils/sleep.d/55NetworkManager to add this functionality, example below:

...

case "$1" in
 hibernate|suspend)
  modprobe -r r8192e_pci
  suspend_nm
  ;;
 thaw|resume)
  modprobe r8192e_pci
  resume_nm
  ;;
 *) exit $NA
  ;;
esac

Revision history for this message
Tim Gardner (timg-tpi) wrote :

We are unlikely to fix suspend/resume issues in this driver. It originated from the OEM and is currently unmaintained whilst they are getting their sources integrated into the upstream kernel. The best work around is as you've described in comment #4.

affects: linux-ports-meta (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
assignee: nobody → Tim Gardner (timg-tpi)
status: New → Won't Fix
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.