← Back to team overview

kernel-packages team mailing list archive

[Bug 1000913] Re: K43SA hangs on suspend

 

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
?

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

Title:
  K43SA hangs on suspend

Status in “linux” package in Ubuntu:
  Fix Released
Status in “linux” source package in Precise:
  Confirmed

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.

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