Public bug reported:

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.

** Affects: linux (Ubuntu)
     Importance: Undecided
     Assignee: Chris J Arges (christopherarges)
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1000913

Title:
  K43SA hangs on suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1000913/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to