[Ubuntu 12.04.1 LTS 32-bit] SiS chipset USB wakes up the system from ACPI S3 State instantaneously bug

Bug #1068393 reported by fpgahardwareengineer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
Invalid
High
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I have discovered a serious bug where Ubuntu wakes up the system from ACPI S3 State instantaneously if I am using a system with SiS chipset's USB.
This bug seems to have started with Ubuntu 12.04 LTS (3.2 Linux kernel) because it didn't exist in Ubuntu 10.04.4 LTS 32-bit (2.6 Linux kernel).
As far as I know, this bug occurs with SiS 963 and 964 southbridges.
I observed this bug with ASUS P4S8X (SiS 648/963) and ASUS P4S8X-MX (SiS 661GX/964) mainboards.

WORKAROUND:
The problem will go away if I disable SiS chipset's USB in BIOS setup.

WORKAROUND: Execute these commands at a terminal:
sudo sh -c "echo EUSB> /proc/acpi/wakeup"
sudo sh -c "echo USB > /proc/acpi/wakeup"
sudo sh -c "echo USB2 > /proc/acpi/wakeup"
sudo sh -c "echo USB3 > /proc/acpi/wakeup"

WORKAROUND: USB devices that are slow devices (keyboard, mouse, etc.) seems to trigger this bug.
We are talking about USB Full-Speed (FS) and Low-Speed (LS) devices here.
If USB High-Speed (HS) devices (Also called USB 2.0 devices.) are used, they don't seem to trigger this bug.
An example can be a USB 2.0 flash memory dongle.

WORKAROUND: I have discovered that ECS L4S5A/DX+ mainboard (SiS 645DX + SiS 962) is not impacted by this bug.
SiS 962 chipset implements USB 2.0 (EHCI) as well as USB 1.1 (OHCI).
So far, 2 of the mainboards affected by this bug were made by ASUS.
Perhaps, the bug can be BIOS implementation specific.
They have SiS 963 (ASUS P4S8X mainboard) and SiS 964 (ASUS P4S8X-MX mainboard).
SiS 962, 963, 964 are fairly similar to one another, especially around the USB.

* SiS chipset SouthBridge comparision *

SiS 962 (USB 1.1/2.0 6-port, FireWire)
SiS 963 (USB 1.1/2.0 6-port, FireWire, faster MuTIOL)
SiS 964 (USB 1.1/2.0 8-port, SATA 1.5Gb, faster MuTIOL)

Test System 1:

- Intel Pentium 4 2.8 GHz
  * 800 MHz FSB
  * 130nm device (Northwood)
  * Hyperthreading enabled
- ASUS P4S8X-MX mainboard
  * SiS 661GX northbridge
  * SiS 964 southbridge
  * BIOS Revision 0808 (last release)
  * Power -> Suspend Mode: S3 State (ACPI S3 State)
  * Legacy keyboard/mouse emulation enabled
- 1GB DDR SDRAM
  * 512MB DDR400 DDR SDRAM module
  * 512MB DDR400 DDR SDRAM module
- SiS 661GX integrated graphics
  * Using 16MB for graphics
- Hitachi IC35L060AVV207-0 60GB PATA hard drive
- Hitachi-LG Data Storage GCC-4481B PATA CD-RW/DVD-ROM drive
- USB multi-card reader
- PS/2 keyboard
- PS/2 mouse

Test System 2:

- Intel Pentium 4 2.66 GHz
  * 533 MHz FSB
  * 130nm device (Northwood)
  * No Hyperthreading
- ASUS P4S8X mainboard
  * SiS 648 northbridge
  * SiS 963 southbridge
  * BIOS Revision 1005 (last release)
  * Power -> ACPI Suspend to RAM: Enabled (ACPI S3 State)
  * Legacy keyboard/mouse emulation enabled
- 1GB DDR333 DDR SDRAM
  * 1GB DDR333 DDR SDRAM module
- NVIDIA GeForce 4 MX440
  * 64MB DDR SDRAM
  * AGP
- Seagate ST340014A 40 GB PATA hard drive
- Pioneer DVR-111D PATA DVD-RW drive
- 3.5" 1.44 MB floppy disk drive
- PS/2 keyboard
- PS/2 mouse

Please fix this bug.

Regards,

fpgahardwareengineer

---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: SI7012 [SiS SI7012], device 0: Intel ICH [SiS SI7012]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
ApportVersion: 2.0.1-0ubuntu13
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: kevinbrace 1530 F.... pulseaudio
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Card0.Amixer.info:
 Card hw:0 'SI7012'/'SiS SI7012 with ALC655 at irq 18'
   Mixer name : 'Realtek ALC655 rev 0'
   Components : 'AC97a:414c4760'
   Controls : 41
   Simple ctrls : 26
Card1.Amixer.info:
 Card hw:1 'UART'/'MPU-401 UART at 0x330, irq 10'
   Mixer name : ''
   Components : ''
   Controls : 0
   Simple ctrls : 0
Card1.Amixer.values:

CurrentDmesg: [ 26.000021] eth2: no IPv6 routers present
DistroRelease: Ubuntu 12.04
HibernationDevice: RESUME=UUID=136c2082-2c52-4011-81fa-59efa6f2452f
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
IwConfig:
 lo no wireless extensions.

 eth2 no wireless extensions.
MachineType: System manufacturer System Product Name
Package: linux (not installed)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-31-generic-pae root=UUID=61560ced-efae-467a-9763-82f00c876564 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.2.0-31.50-generic-pae 3.2.28
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-31-generic-pae N/A
 linux-backports-modules-3.2.0-31-generic-pae N/A
 linux-firmware 1.79.1
RfKill:

Tags: precise running-unity
Uname: Linux 3.2.0-31-generic-pae i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 12/20/2005
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1008.008
dmi.board.name: P4S8X-MX
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1008.008:bd12/20/2005:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP4S8X-MX:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote :
no longer affects: gvfs (Ubuntu)
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1068393

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
penalvch (penalvch) wrote :

fpgahardwareengineer, thank you for reporting this and helping make Ubuntu better. Could you please execute the following at a terminal:
apport-collect 1068393

As well, could you please provide the information following https://wiki.ubuntu.com/DebuggingKernelSuspend ?

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 kernel in the daily 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 and remove the tag:
needs-upstream-testing

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 text:
needs-upstream-testing

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.

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

If you are unable to test the mainline kernel, please comment as to why specifically you were unable to test it and add the following tags:
kernel-unable-to-test-upstream
kernel-unable-to-test-upstream-VERSION-NUMBER

Please let us know your results. Thank you for your understanding.

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : AcpiTables.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : AlsaDevices.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : ArecordDevices.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : BootDmesg.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : Card0.Codecs.codec97.0.ac97.0.0.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : Card0.Codecs.codec97.0.ac97.0.0.regs.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : Lspci.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : Lsusb.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : PciMultimedia.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : ProcInterrupts.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : ProcModules.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : PulseList.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : UdevDb.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : UdevLog.txt

apport information

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote : WifiSyslog.txt

apport information

description: updated
penalvch (penalvch)
tags: added: needs-upstream-testing suspend
removed: sis usb
description: updated
tags: added: regression-release
Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote :

(In reply to #3)

Hi Christopher,

For Ubuntu 12.04 (Precise Pangolin), which version of latest upstream kernel shoul I test with?
Should I try,

 ...
[DIR] v3.4-rc7-precise/ 13-May-2012 02:54 -
...
[DIR] v3.7-rc2-quantal/ 20-Oct-2012 19:49 -
[DIR] v3.7-rc2-raring/ 22-Oct-2012 08:44 -

This information is from http://kernel.ubuntu.com/~kernel-ppa/mainline, dated 10/23/2012.
Will my Ubuntu 12.04 work with Linux kernel 3.7?

Regards,

fpgahardwareenginer

Revision history for this message
penalvch (penalvch) wrote :
Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote :

(In reply to #22)

Hi Chrisopher,

I just installed 3.7.0-030700rc2-generic version of Linux kernel from the above location.
I don't see any change in the standby (ACPI S3 State or Suspend to RAM) behavior of ASUS P4S8X-MX mainboard (SiS 661GX/964 chipset) when I tried.
It goes into standby and it comes out in 1 second.
I really want this bug fixed in Ubuntu 12.04 LTS since this bug prevents me from using this mainboard for Linux.
Again, this bug didn't exist in Ubuntu 10.04.4 LTS 32-bit.

Regards,

fpgahardwareengineer

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote :

Hi,

I must also add that I verified that I am running 3.7.0-030700rc2-generic version of Linux kernel.

:~$ uname -r
3.7.0-030700rc2-generic

Regards,

fpgahardwareengineer

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote :

Hi Chrisopher,

I just updated the tags to inform you that 3.7.0-030700rc2-generic version of the Linux kernel has the exact same bug.

Regards,

fpgahardwareengineer

tags: added: kernel-bug-exists-upstream-3.7.0-030700rc2-generic sis usb
tags: removed: needs-upstream-testing
Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote :

Hi Chrisopher,

I just removed needs-upstream-testing tag because the upstream version still contains the exact same bug that exists in Linux 3.2 kernel.

Regards,

fpgahardwareengineer

Revision history for this message
penalvch (penalvch) wrote :

fpgahardwareeengineer, thank you for testing the mainline kernel. Could you please provide the information following https://wiki.ubuntu.com/DebuggingKernelSuspend ?

tags: added: kernel-bug-exists-upstream-v3.7-rc2-raring
removed: kernel-bug-exists-upstream-3.7.0-030700rc2-generic sis usb
Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote :

Hi,

Some progress on this issue has been made, although it is merely a workaround of the bug.

https://bugzilla.kernel.org/show_bug.cgi?id=47991#c25

I can now get ACPI S3 State to work with Ubuntu 12.04 LTS and ASUS P4S8X-MX mainboard (SiS 661GX/964 chipset).

Regards,

fpgahardwareengineer

penalvch (penalvch)
description: updated
Revision history for this message
penalvch (penalvch) wrote :

fpgahardwareengineer, thank you for your comments. As per Lan Tianyu's comment https://bugzilla.kernel.org/show_bug.cgi?id=47991#c26 , the next step is to bisect this issue in order to find the problematic commit.

Hence, could you please test for this problem in a Oneiric live environment via http://releases.ubuntu.com/oneiric/ ?

Thank you for your understanding.

Helpful bug reporting tips:
https://help.ubuntu.com/community/ReportingBugs

description: updated
Changed in linux:
importance: Unknown → High
status: Unknown → Confirmed
Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote :

(In reply to Comment #29)

Hi Christopher,

Sorry for neglecting the issue on launchpad with regards to this USB wakeup related bug of ASUS P4S8X-MX mainboard.
I will burn a DVD with Ubuntu 11.10 (Oneiric Ocelot) and take a look at the problem shortly.

Regards,

fpgahardwareengineer

Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote :

(In reply to Comment #29 and #30)

Hi Christopher,

I tested Ubuntu 11.10 without installing it (i.e., Try Ubuntu without installing) on ASUS P4S8X-MX mainboard.

I will say that Ubuntu 11.10 does not suffer from the USB instant wakeup bug that currently exists in Ubuntu 12.04.
Here is what /proc/acpi/wakeup looks like,

$ cat /proc/acpi/wakeup
Device S-state Status Sysfs node
UAR1 S4 *disabled pnp:00:08
PS2K S4 *enabled pnp:00:0c
PS2M S4 *disabled pnp:00:0d
EUSB S3 *disabled pci:0000:00:03.3
USB S3 *disabled pci:0000:00:03.0
USB2 S3 *disabled pci:0000:00:03.1
USB3 S3 *disabled pci:0000:00:03.2
AC97 S4 *disabled pci:0000:00:02.7
MC97 S4 *disabled
PCI1 S4 *disabled
PCI2 S4 *disabled
PCI3 S4 *disabled
MAC S4 *disabled pci:0000:00:04.0

Instant wakeup is not happening because Status for EUSB and USBx devices are at *disabled state.

In Ubuntu 12.04 (Linux 3.2), they will all be at *enabled state.
Just to confirm the Linux kernel version,

$ uname -r
3.0.0-12-generic

The result here is in line with what Lan Tianyu discussed in Comment #26 of this same bug report I submitted over there at kernel.org.

https://bugzilla.kernel.org/show_bug.cgi?id=47991#c26

Regards,

fpgahardwareengineer

penalvch (penalvch)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
description: updated
description: updated
description: updated
Revision history for this message
fpgahardwareengineer (mypersonalmailbox1) wrote :

Hi,

If anyone is curious about this bug, visit Linux kernel bugzilla for the latest development.

https://bugzilla.kernel.org/show_bug.cgi?id=47991

I occasionally feedback information to launchpad regarding this bug.

Regards,

fpgahardwareengineer

description: updated
Changed in linux (Ubuntu):
status: Confirmed → Triaged
Changed in linux:
status: Confirmed → Invalid
Revision history for this message
penalvch (penalvch) wrote :

fpgahardwareengineer -> Page gone

tags: added: bios-outdated-1001
Changed in linux (Ubuntu):
status: Triaged → Invalid
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.