Bug 45761 - Unable to enter sleep on Zepto Znote 6024w
Summary: Unable to enter sleep on Zepto Znote 6024w
Status: ASSIGNED
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_other
URL: https://bugs.launchpad.net/ubuntu/+so...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-09 11:51 UTC by Peter
Modified: 2013-04-17 03:46 UTC (History)
6 users (show)

See Also:
Kernel Version: 2.6.32 to 3.9.0-999
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
lspci output (50 bytes, text/plain)
2012-08-09 11:51 UTC, Peter
Details
AcpiTables output (54 bytes, text/plain)
2012-08-09 11:54 UTC, Peter
Details
Boot dmesg (53 bytes, text/plain)
2012-08-09 11:54 UTC, Peter
Details
Udev DB (50 bytes, text/plain)
2012-08-09 11:56 UTC, Peter
Details

Description Peter 2012-08-09 11:51:59 UTC
Created attachment 77171 [details]
lspci output

For me the sleep (and hibernate) feature stopped working when updating to Ubuntu 10.04 (I remember it very clearly) and it has been broken every since.

It tries to sleep, but it gets stuck somewhere in the process. The screen goes black with a blinking cursor, but nothing more happens.

I've completely removed and re-installed Ubuntu 11.10. But the issue is still there and reproducible every time. The bug is still valid for Ubuntu 12.04, I updated and tested it this weekend.

I've added a similar bug to the Ubuntu bug tracker, which you can find here with lots of more generated hardware information:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/950296

I installed the daily/current mainline kernel and tested with it, getting the same results.

peter@zepto:~$ uname -a
Linux zepto 3.4.0-999-generic #201205220406 SMP Tue May 22 08:07:00 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Here's the dmesg output from trying to make it sleep:

[  272.750877] PM: Syncing filesystems ... done.
[  272.753613] PM: Preparing system for mem sleep
[  273.016166] Freezing user space processes ... (elapsed 0.01 seconds) done.
[  273.032141] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[  273.048137] PM: Entering mem sleep
[  273.048159] Suspending console(s) (use no_console_suspend to debug)
[  273.064286] sd 2:0:0:0: [sda] Synchronizing SCSI cache
[  273.064392] sd 2:0:0:0: [sda] Stopping disk
[  277.852058] tpm_tis 00:0a: tpm_transmit: tpm_send: error -62
[  277.852067] legacy_suspend(): pnp_bus_suspend+0x0/0x90 returns -62
[  277.852071] PM: Device 00:0a failed to suspend: error -62
[  277.852073] PM: Some devices failed to suspend
[  278.044359] ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
[  278.044363] ata1.00: ACPI cmd ef/03:42:00:00:00:a0 (SET FEATURES) filtered out
[  278.092218] ata1.00: configured for UDMA/33
[  279.072102] ata3.00: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[  279.072118] ata3.01: SATA link down (SStatus 0 SControl 300)
[  279.080186] ata3.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
[  279.080191] ata3.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
[  279.096293] ata3.00: configured for UDMA/133
[  280.444052] ata4.01: failed to resume link (SControl 0)
[  280.455096] ata4.00: SATA link down (SStatus 0 SControl 300)
[  280.455114] ata4.01: SATA link down (SStatus 0 SControl 0)
[  280.715697] Extended CMOS year: 2000
[  280.716827] sd 2:0:0:0: [sda] Starting disk
[  283.695049] PM: resume of devices complete after 5842.974 msecs
[  283.695249] PM: resume devices took 5.840 seconds
[  283.695268] PM: Finishing wakeup.
[  283.695270] Restarting tasks ... done.
[  283.812307] video LNXVIDEO:01: Restoring backlight state


I checked my dmesg for the device that gets legacy_suspend(), and this occurs at boot time:

peter@zepto:~$ dmesg | grep -i 00:0a
[ 0.225825] pnp 00:0a: [mem 0xfed40000-0xfed44fff]
[ 0.225828] pnp 00:0a: [io 0x004e-0x004f]
[ 0.225831] pnp 00:0a: [io 0x1670-0x167f]
[ 0.225837] pnp 00:0a: [irq 11]
[ 0.225891] pnp 00:0a: Plug and Play ACPI device, IDs IFX0102 PNP0c31 (active)
[ 9.150673] tpm_tis 00:0a: 1.2 TPM (device-id 0xB, rev-id 16)
[ 9.292148] tpm_tis 00:0a: Adjusting TPM timeout parameters.
[ 10.084067] tpm_tis 00:0a: A TPM error (7) occurred attempting to read a pcr value
[ 10.084077] tpm_tis 00:0a: TPM is disabled/deactivated (0x7)

I don't know if that helps, I really hope it does... Ubuntu 9.10 was using the 2.6.31-kernel while Ubuntu 10.04 seems to have been using 2.6.32, so I guess the regression was introduced during the 2.6.32 development window.

Here's some information from the Ubuntu bug report:

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: hibernate (not installed)
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Thu Mar 8 21:51:02 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: hibernate
UpgradeStatus: No upgrade log present (probably fresh install)
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: peter 1446 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf0500000 irq 46'
   Mixer name : 'Realtek ALC268'
   Components : 'HDA:10ec0268,11700040,00100003 HDA:10573055,10573055,00100700'
   Controls : 22
   Simple ctrls : 14
DistroRelease: Ubuntu 11.10
HibernationDevice: RESUME=UUID=a5886402-d5a1-466f-914a-a9e747ddc97a
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MachineType: Zepto Znote
Package: linux (not installed)
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic root=UUID=475ed585-21a8-475e-9c27-9354022fcd86 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-12-generic N/A
 linux-backports-modules-3.0.0-12-generic N/A
 linux-firmware 1.60
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
Tags: oneiric running-unity
Uname: Linux 3.0.0-12-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 12/20/2007
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: Z14ND06
dmi.board.name: Znote
dmi.board.vendor: Zepto
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 1
dmi.chassis.vendor: Zepto
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvrZ14ND06:bd12/20/2007:svnZepto:pnZnote:pvr6024W:rvnZepto:rnZnote:rvrNotApplicable:cvnZepto:ct1:cvrN/A:
dmi.product.name: Znote
dmi.product.version: 6024W
dmi.sys.vendor: Zepto
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: peter 1679 F.... pulseaudio
 /dev/snd/pcmC0D0p: peter 1679 F...m pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf0500000 irq 45'
   Mixer name : 'Realtek ALC268'
   Components : 'HDA:10ec0268,11700040,00100003 HDA:10573055,10573055,00100700'
   Controls : 23
   Simple ctrls : 13
DistroRelease: Ubuntu 12.04
HibernationDevice: RESUME=UUID=a5886402-d5a1-466f-914a-a9e747ddc97a
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MachineType: Zepto Znote
Package: linux (not installed)
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-24-generic root=UUID=475ed585-21a8-475e-9c27-9354022fcd86 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.2.0-24.38-generic 3.2.16
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-24-generic N/A
 linux-backports-modules-3.2.0-24-generic N/A
 linux-firmware 1.79
SourcePackage: linux
Tags: precise precise
Uname: Linux 3.2.0-24-generic x86_64
UpgradeStatus: Upgraded to precise on 2012-05-19 (3 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 12/20/2007
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: Z14ND06
dmi.board.name: Znote
dmi.board.vendor: Zepto
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 1
dmi.chassis.vendor: Zepto
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvrZ14ND06:bd12/20/2007:svnZepto:pnZnote:pvr6024W:rvnZepto:rnZnote:rvrNotApplicable:cvnZepto:ct1:cvrN/A:
dmi.product.name: Znote
dmi.product.version: 6024W
dmi.sys.vendor: Zepto
Comment 1 Peter 2012-08-09 11:54:10 UTC
Created attachment 77181 [details]
AcpiTables output
Comment 2 Peter 2012-08-09 11:54:43 UTC
Created attachment 77191 [details]
Boot dmesg
Comment 3 Peter 2012-08-09 11:56:21 UTC
Created attachment 77201 [details]
Udev DB
Comment 4 Len Brown 2012-08-23 02:15:39 UTC
is it possible to reproduce this regression using an upstream
kernel build from source?

if yes, can you isolate which release first broke,
and ideally bisect to the offending commit?
Comment 5 Peter 2012-09-04 10:29:03 UTC
I haven't  tried with a recent upstream build, only the Ubuntu 3.4.0-999-generic build.

I'm not sure how to bisect since I guess the 10.04 kernel won't work with a modern Ubuntu 12.04 system. But I do know that the problem was introduced between 2.6.31 and 2.6.32.
Comment 6 Peter 2012-10-14 10:32:49 UTC
Please don't hesitate to give me a shout if you need more info, or if I should test any patches! I'm glad if I can help.
Comment 7 Zhang Rui 2012-11-28 14:03:09 UTC
what if you unload tpm_tis driver before suspend?
Comment 8 Peter 2012-12-06 16:55:22 UTC
I'll test that as soon as I get home, and get back to you with the results.
Comment 9 Peter 2012-12-06 19:42:17 UTC
It works! Finally my laptop can sleep/suspend for the first time in 3 years!

Can I somehow force the laptop to unload the module when sleeping?
Comment 10 Peter 2012-12-06 20:08:52 UTC
Nevermind, I found it in the man page =)
I guess this is still a valid bug, and that the module should be fixed?
Comment 11 Peter 2012-12-30 17:28:39 UTC
Is any more info needed?
Comment 12 Aaron Lu 2013-03-12 06:36:05 UTC
(In reply to comment #10)
> Nevermind, I found it in the man page =)
> I guess this is still a valid bug, and that the module should be fixed?

Hi Peter,
Do you still have this problem on latest upstream kernel? If so, I'll ask some TPM guys to take a look, thanks.
Comment 13 Peter 2013-03-12 16:19:14 UTC
I'm not sure, I can check it out this evening or tomorrow! I'll just have to install the latest one Ubuntu 12.10.
This is when I wish I was running Gentoo on the laptop, it's just so nice to get new kernel releases every week.
Comment 14 Aaron Lu 2013-03-18 06:34:15 UTC
Hi Peter,

Any update?
Comment 15 Peter 2013-03-18 11:56:30 UTC
I'm sorry, I haven't had time to check it out yet! Hopefully I can do it this evening.
Comment 16 Peter 2013-03-18 21:27:54 UTC
BTW, by "latest upstream" do you mean 3.9-rc3 or latest stable release?
Comment 17 Peter 2013-03-18 21:53:36 UTC
I've now tried with the 3.9.0.999 and the problem still remains. This is the piece of the log (still the same as before):

[  192.281757] PM: Syncing filesystems ... done.
[  192.692479] Freezing user space processes ... (elapsed 0.01 seconds) done.
[  192.708159] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[  192.724151] Suspending console(s) (use no_console_suspend to debug)
[  192.724612] sd 2:0:0:0: [sda] Synchronizing SCSI cache
[  192.724785] sd 2:0:0:0: [sda] Stopping disk
[  197.512047] tpm_tis 00:08: tpm_transmit: tpm_send: error -62
[  197.512055] legacy_suspend(): pnp_bus_suspend+0x0/0xa0 returns -62
[  197.512057] PM: Device 00:08 failed to suspend: error -62
[  197.512058] PM: Some devices failed to suspend
[  197.700365] ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
[  197.700368] ata1.00: ACPI cmd ef/03:42:00:00:00:a0 (SET FEATURES) filtered out
[  197.748238] ata1.00: configured for UDMA/33
[  198.308100] ata3.00: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[  198.308114] ata3.01: SATA link down (SStatus 0 SControl 300)
[  198.316180] ata3.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
[  198.316182] ata3.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
[  198.332308] ata3.00: configured for UDMA/133
[  198.332501] sd 2:0:0:0: [sda] Starting disk
[  198.860048] ata4.01: failed to resume link (SControl 0)
[  198.871125] ata4.00: SATA link down (SStatus 0 SControl 300)
[  198.871142] ata4.01: SATA link down (SStatus 0 SControl 0)
[  201.172079] PM: resume of devices complete after 3660.017 msecs


I got the kernel build from here: http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/

peter@zepto:~$ uname -a
Linux zepto 3.9.0-999-generic #201303180427 SMP Mon Mar 18 08:28:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Comment 18 Aaron Lu 2013-03-19 02:36:52 UTC
Hi Peter,

Thanks for the test, I've sent an email to TPM driver maintainer Rajiv Andrade as he is not a registered user of kernel bugzilla so I can't cc him here, let's see if he has an idea about what happened here.
Comment 19 Aaron Lu 2013-03-20 01:04:32 UTC
Hi Peter,

Luigi Semenzato has replied to my email regarding this problem, please kindly reply to him, thanks.
Comment 20 Aaron Lu 2013-03-21 05:26:53 UTC
Hi Peter,

are you still there?
Comment 21 Peter 2013-03-21 13:12:38 UTC
Hi, yes I'm still here! I'll answer his e-mail (instead of writing here, right?) now.
Comment 22 Aaron Lu 2013-04-17 03:46:54 UTC
Mail sent to lkml and tpmdd-devel:
http://marc.info/?l=tpmdd-devel&m=136370170518989&w=2

Note You need to log in before you can comment on or make changes to this bug.