Bug 4989
Summary: | S3 wakeup hangs w/ TP 600X | ||
---|---|---|---|
Product: | ACPI | Reporter: | Sanjoy Mahajan (sanjoy) |
Component: | Power-Sleep-Wake | Assignee: | acpi_power-sleep-wake |
Status: | REJECTED UNREPRODUCIBLE | ||
Severity: | normal | CC: | acpi-bugzilla, akpm |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.13-rc2-git1 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
acpidmp output
dmesg log dmidecode output patch that breaks S3 wakeup |
Description
Sanjoy Mahajan
2005-08-03 00:42:55 UTC
Sorry, attaching files is not working for me (hangs mozilla and galeon and lynx gets back from bugzilla that I forgot the attachment number, whatever that is). So I'll try again in a bit. Created attachment 5493 [details]
acpidmp output
Created attachment 5494 [details]
dmesg log
Created attachment 5495 [details]
dmidecode output
Thanks for doing the bsearch - that really helps. I bunch of power management fixes are going into 2.6.13-rc6. Fingers crossed, we'll fix this up. PLease retest it promptly and update us with the results. > bsearch...really helps
I got 'git bisect' working reliably (maybe overkill) by using cg-export to make
a pristine tree and then compiling the kernel from scratch (rather than just
checking out new files in the same directory and running make), so I narrowed it
down to one commit. After several bisection steps, 'git bisect' says:
299de0343c7d18448a69c635378342e9214b14af is first bad commit
90b54929b626c80056262d9d99b3f48522e404d0 was the last good one, and
75865858971add95809c5c9cd35dc4cfba08e33b is the last bad one, which is how
bisect came up with the conclusion above. To test it, I applied the result of
git diff 90b54929b626c80056262d9d99b3f48522e404d0..\
299de0343c7d18448a69c635378342e9214b14af
to a copy of the just-compiled-and-installed
90b54929b626c80056262d9d99b3f48522e404d0 directory tree, then recompiled and
tested. Voila, it didn't work, as bisect predicted.
I'll attach that diff in case any lines jump out as "Oh, here's why it breaks on
wakeup."
The latest releases are well beyond this patch, but if this patch causes the
problem (rather than merely exposes a different problem), then it's worth
knowing about because it is in the kernel. Here's a test against my -rc5 tree
(where /usr/src/bisect/s3-culprit.diff is the diff in question):
$ patch --dry-run -R -p1 < /usr/src/bisect/s3-culprit.diff
patching file arch/i386/pci/common.c
patching file arch/i386/pci/i386.c
patching file drivers/pci/setup-bus.c
Hunk #1 succeeded at 268 (offset -5 lines).
Created attachment 5509 [details]
patch that breaks S3 wakeup
Yeah, we had a ton of trouble with that code. As I say, I think 2.6.13-rc6 or even 2.6.13-rc5-git3 should fix this. 2.6.13-rc5-git2 sleeps and wakes up! Pushing my luck, I even tried a 2nd sleep/wake cycle, and that worked too (on a few of the -mm kernels, the first sleep/wake would work but not the second). And hibernation (swsusp) is mostly working (the fan no longer is controllable on wake, I'll file a report...). So I finally have a single kernel version that can sleep and mostly hibernate (before 2.6.11.4 would sleep but not hibernate, and various 2.6.13 kernels would hibernate but not sleep). Almost like with APM (the main regression since APM days: waking up is slower with ACPI, plus the vga adapter is always hosed upon wake, no matter what video_post or fake x server tricks I try). I'll try -git3 to make sure there's no regression, and -rc6 when it arrives. > 2.6.13-rc5-git2 sleeps and wakes up!
thanks for testing. Please re-open if you have any
problems with 2.6.13-rc6, or 2.6.13.
|