K43SA hangs on suspend

Bug #1000913 reported by Ritesh Khadgaray
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned
Precise
Invalid
Undecided
Unassigned

Bug Description

Hi

  K43SA hangs while suspending with
Linux K43SA 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

 The hdd light comes up, but system never goes into suspend and seems busy writing to disk.

-----------------------------------------

Suspending system by force works

$ cat suspend.c
#include <unistd.h>
#include <sys/io.h>
#include <stdint.h>
#include <stdio.h>

/* PM1 Sleep types */
#define SLP_ON 0
#define SLP_ST_PCLK 1
#define SLP_S3 5
#define SLP_S5 6
#define SLP_SOFT_OFF 7

#define PM1a 0x0404
//cat /proc/ioports | grep PM1a_CNT_BLK
// 0404-0405 : ACPI PM1a_CNT_BLK

int main(int argc, char **argv)
{
        uint16_t val;

        if (ioperm(PM1a, 2, 1) < 0) {
                printf("Cannot access port %d\n", PM1a);
                exit(0);
        }
        val = inw(PM1a);
        val &= ~(7 << 10); /* Clear SLP_TYPE */
        //val |= (SLP_SOFT_OFF << 10); /* Soft power off */
        //val |= (SLP_S5 << 10); /* Soft power off */
        val |= (SLP_S3 << 10); /* Soft power off */
        val |= (1 << 13); /* Trigger SLP_EN */
        outw(val, PM1a);
}
-----------------------------------------

Using pmdebug the below o/p is seen ( git://kernel.ubuntu.com/cking/pmdebug.git )

[pmdebug/locatehang] $ cat log
Looking for function that matches hash from the Magic Number from the kernel log.
  Magic: 12:64:42 maps to hash: a3d2c
  Hash matches: acpi_hw_write_pm1_control() (address: ffffffff81383f8b)
The kernel probably wrote to the southbridge the magic to put the machine
into suspend or hibernate and then the machine hung. Generally this means
that the machine did not wake up and get back to the kernel resume successfully
which normally indicates a BIOS issue.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.25.
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: ritesh 2559 F.... pulseaudio
 /dev/snd/controlC0: ritesh 2559 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xdff00000 irq 56'
   Mixer name : 'Realtek ALC269VB'
   Components : 'HDA:10ec0269,10431b63,00100100'
   Controls : 18
   Simple ctrls : 10
Card1.Amixer.info:
 Card hw:1 'Generic'/'HD-Audio Generic at 0xdfe40000 irq 57'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,00aa0100,00100200'
   Controls : 6
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
DistroRelease: Ubuntu 12.10
HibernationDevice: RESUME=UUID=8358ef03-1e13-4598-8bd9-4d206a7efec2
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120201.2)
MachineType: ASUSTeK Computer Inc. K43SA
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=en_IN:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_IN
 SHELL=/bin/bash
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.4.0-2-generic root=/dev/mapper/K43SA-root ro security=selinux selinux=1
ProcVersionSignature: Ubuntu 3.4.0-2.6-generic 3.4.0-rc7
RelatedPackageVersions:
 linux-restricted-modules-3.4.0-2-generic N/A
 linux-backports-modules-3.4.0-2-generic N/A
 linux-firmware 1.80
SourcePackage: linux
StagingDrivers: rts5139 mei
Tags: quantal running-unity staging quantal staging
Uname: Linux 3.4.0-2-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip libvirtd lpadmin plugdev sambashare sudo
dmi.bios.date: 08/18/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: K43SA.208
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: K43SA
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrK43SA.208:bd08/18/2011:svnASUSTeKComputerInc.:pnK43SA:pvr1.0:rvnASUSTeKComputerInc.:rnK43SA:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr1.0:
dmi.product.name: K43SA
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK Computer Inc.

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote :
Chris J Arges (arges)
Changed in linux (Ubuntu):
assignee: nobody → Chris J Arges (christopherarges)
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 1000913

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
tags: added: precise
Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: bot-stop-nagging
Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : AcpiTables.txt

apport information

tags: added: apport-collected quantal running-unity staging
description: updated
Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : AlsaDevices.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : AplayDevices.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : BootDmesg.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : IwConfig.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : Lspci.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : Lsusb.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : PciMultimedia.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : ProcModules.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : PulseList.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : RfKill.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : UdevDb.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : UdevLog.txt

apport information

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote : WifiSyslog.txt

apport information

Revision history for this message
Chris J Arges (arges) wrote :

This is working in 3.4.0-2-generic as reported.

Revision history for this message
Ritesh Khadgaray (khadgaray) wrote :

Works fine on Linux K43SA 3.4.0-2-generic #6-Ubuntu SMP Wed May 16 21:01:43 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: removed: quantal
Revision history for this message
penalvch (penalvch) wrote :

Ritesh Khadgaray, as per your comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1000913/comments/24 this is fixed in Quantal. If this still remains, do you desire a backport to a release prior to Quantal, or may we close this report as Status Invalid?

tags: added: needs-upstream-testing
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Chris J Arges (arges) wrote :

I can confirm that this is failing on Precise. Ritesh has tested this and so have I. I think a backport would be desired, however I will need time to work with Ritesh in bisecting kernel commits and testing.

Changed in linux (Ubuntu Precise):
status: New → Confirmed
assignee: nobody → Chris J Arges (christopherarges)
Changed in linux (Ubuntu):
assignee: Chris J Arges (christopherarges) → nobody
Revision history for this message
Ritesh Khadgaray (khadgaray) wrote :

works fine with saucy/trusty.

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

Ritesh Khadgaray / Chris J Arges, would you be able to identify the fix commit by reverse bisecting following https://wiki.ubuntu.com/Kernel/KernelBisection#How_do_I_reverse_bisect_the_upstream_kernel.3F ?

Chris J Arges (arges)
Changed in linux (Ubuntu Precise):
assignee: Chris J Arges (arges) → nobody
status: Confirmed → Incomplete
Revision history for this message
penalvch (penalvch) wrote :

Declining for Precise as original reporter is only one subscribed, and he advised works in Trusty. Please reopen if desire for a Precise fix exists.

Changed in linux (Ubuntu Precise):
status: Incomplete → 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.