Re: S3 test tool (was : Re: Bizarre oops after suspend to RAM (was: Re: Resume from Suspend to RAM))

Frank Siegert
2005-06-10T18:49:41Z

> > Against which kernel version/tree does this patch go? I would be happy to
> > test it, but I am pretty new to kernel patching, so this is not so
> > obvious to me.
>
> I think any kernel version should be ok, but please try latest kernel.
> Please note, this isn't a fix but a test case.
> If the test failed, then suspend/resume code path or drivers are broken.
> If the test succeeded, then
> 1. Linux forgot doing something BIOS lets it do
> or 2. BIOS is broken.

Sorry for rather being newbish than much of a help, but I'd like to try this out
and find out whether it's Linux or my notebook that has the problems.

But it gives me problems.
1. The patch won't apply or I am doing something wrong:
| [20:38 frank: ~/downloads/linux-2.6.12-rc6]$ patch -p1 <patch_resume.diff
| patching file drivers/acpi/hardware/hwsleep.c
| Hunk #2 FAILED at 328.
| 1 out of 2 hunks FAILED -- saving rejects to file drivers/acpi/hardware/hwsleep.c.rej

(same for linux-2.6.11.9)

2. I tried to add the patch manually (and can't see where I missed something -- the
"extern void machine_real_restart(...)" line exists), but kernel compilation then fails.
| CC init/version.o
| LD init/built-in.o
| LD .tmp_vmlinux1
| ld: BFD 2.15 assertion fail ../../bfd/linker.c:619
| drivers/built-in.o(.text+0x203ef): In function `acpi_enter_sleep_state':
| : undefined reference to `machine_real_restart'
| make[1]: *** [.tmp_vmlinux1] Fehler 1
| make[1]: Verlasse Verzeichnis »/usr/src/linux-2.6.12-rc6«
| make: *** [stamp-build] Fehler 2

Would you mind posting the patch as attachment and the exact command I have to
issue in my kernel directory?

Thanks a lot,
Frank

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r