Bug 155761 - SONY Vaio PCG-GRT995MP does not resume-from-RAM unless 'noapic' is given.
Summary: SONY Vaio PCG-GRT995MP does not resume-from-RAM unless 'noapic' is given.
Status: RESOLVED WONTFIX
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Beta 6
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 140732
  Show dependency treegraph
 
Reported: 2006-03-07 15:57 UTC by Forgotten User ZhJd0F0L3x
Modified: 2008-03-18 20:03 UTC (History)
3 users (show)

See Also:
Found By: Component Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
dmesg after boot (17.09 KB, text/plain)
2006-03-07 15:58 UTC, Forgotten User ZhJd0F0L3x
Details
dmidecode (6.75 KB, text/plain)
2006-03-07 15:59 UTC, Forgotten User ZhJd0F0L3x
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User ZhJd0F0L3x 2006-03-07 15:57:52 UTC
A Sony Vaio PCG-GRT995MP worked fine wrt suspend2ram in 10.0. It does not, however, in 10.1beta6. Adding "nolapic" fixes this.
Without nolapic, it hangs after resuming the hardware and shortly before "Restarting Tasks". It does not hang hard, sysrq still works.
Comment 1 Forgotten User ZhJd0F0L3x 2006-03-07 15:58:42 UTC
Created attachment 71591 [details]
dmesg after boot
Comment 2 Forgotten User ZhJd0F0L3x 2006-03-07 15:59:04 UTC
Created attachment 71592 [details]
dmidecode
Comment 3 Olaf Kirch 2006-03-08 07:41:39 UTC
Did it work with earlier betas?

Does it work with the latest KOTD? Andi's "enable APIC when BIOS is
recent enough" patch would turn on APIC unconditionally, even when the
BIOS had APIC support disabled. This should be fixed in the current
KOTD.
Comment 4 Forgotten User ZhJd0F0L3x 2006-03-09 17:48:06 UTC
It did work with 10.0
With Beta7, it still does not work, but with "nolapic" it does not boot anymore (hangs when discovering ide hda), "noapic" is needed now.
Comment 5 Olaf Kirch 2006-03-10 09:16:24 UTC
Handing over to Andi; IOAPIC trouble.

Maybe the easiest thing is to disable the APIC based on the DMI info.
Comment 6 Forgotten User ZhJd0F0L3x 2006-03-16 15:35:13 UTC
still in SLED10beta8.
Comment 7 Andreas Kleen 2006-03-24 11:55:42 UTC
Hmm, you said it booted with beta6 and didn't boot with beta7? 
Can you please narrow down which change broke it using kerneltest kernels?

The noapic / nolapic confusion is weird. nolapic should include noapic. 
I think there is another bug for that open.
Comment 8 Len Brown 2006-03-27 07:36:53 UTC
This is a UP+IOAPIC notebook.

I suspect that previous releases didn't enable the IOAPIC.
Now that IOAPIC is enabled by default, we notice that suspend/resume
with IOAPIC enabled isn't reliable.

So the question is with the old (working)( kernels booted with "apic"
to force the use of the IOAPIC, does it fail the same way as the new kernel?
Comment 9 Andreas Kleen 2006-03-27 09:31:36 UTC
Unless Len has some good idea I will just blacklist it
Comment 10 Luming Yu 2006-03-27 13:45:08 UTC
>Without nolapic, it hangs after resuming the hardware and shortly before
>"Restarting Tasks". It does not hang hard, sysrq still works

Any clues to debug further?

>Unless Len has some good idea I will just blacklist it
Maybe it is just ok as a short term solution.
Comment 11 Forgotten User ZhJd0F0L3x 2006-03-29 15:15:51 UTC
The (In reply to comment #8)
> This is a UP+IOAPIC notebook.
> 
> I suspect that previous releases didn't enable the IOAPIC.

yes.

> Now that IOAPIC is enabled by default, we notice that suspend/resume
> with IOAPIC enabled isn't reliable.
> 
> So the question is with the old (working)( kernels booted with "apic"
> to force the use of the IOAPIC, does it fail the same way as the new kernel?

yes.

Should i further pursue the "nolapic" problem?
Comment 12 Luming Yu 2006-03-30 07:32:01 UTC
>Should i further pursue the "nolapic" problem?
I think yes. as a long term solution, we do need to root-cause, and have a right fix either in kernel , or in bios.
Comment 13 Shaohua Li 2006-03-30 08:37:25 UTC
Does adding a 'clear_IO_APIC' in 'ioapic_resume' change anything?
Comment 14 Forgotten User ZhJd0F0L3x 2006-03-30 09:08:32 UTC
(In reply to comment #12)
> >Should i further pursue the "nolapic" problem?
> I think yes. as a long term solution, we do need to root-cause, and have a
> right fix either in kernel , or in bios.

Ok, i created bug #162098 for that since it is not suspend related.
Comment 15 Andreas Kleen 2006-03-31 15:24:30 UTC
Well I don't see how we can root cause anything if the reporter
refuses to fix anything. Can you please try shaohua's suggestion from
comment #13?

Comment 18 Forgotten User ZhJd0F0L3x 2006-04-04 12:06:39 UTC
i tried it, but it does not help, it hangs just the same, before "restarting tasks..."
Comment 19 Andreas Kleen 2006-04-12 06:03:51 UTC
Please retest with latest kotd
Comment 20 Forgotten User ZhJd0F0L3x 2006-04-12 15:28:13 UTC
without any options, it still hangs on resume, but both "noapic" and "nolapic" make it resume.

Note that when the resume hangs, i can try to reboot with ctrl-alt-del, but i only get "stopping all md..." and then it does not reboot. It seems that some interrupt setup is wrong after resume if none of the no(l)apic options are present.

Tested with kernel-default-2.6.16-20060412122502
Comment 21 Joachim Werner 2006-04-23 15:08:35 UTC
Any progress here?

BTW I am seeing a similar behaviour on my HP Compaq nx6125. In some cases the machine does not reboot, but hang at the end of the shutdown process.
Comment 22 Andreas Kleen 2006-04-24 04:33:48 UTC
No progress - probably you should pass your laptop to a kernel hacker 
and let them figure it out.

I double checked the IO-APIC suspend/resume and as far as I can see 
every documented register is saved/restored.

Or Luming do you have any ideas?
Comment 23 Forgotten User ZhJd0F0L3x 2006-04-24 04:58:27 UTC
I'd think the machine is plain broken and needs to be blacklisted. It is a SONY after all, so there will be no BIOS update.
Or would this be the only machine that's blacklisted wrt APIC?
Comment 24 Andreas Kleen 2006-04-24 05:36:04 UTC
Sure I can blacklist it.

I suspect there will be more, but we didn't aggressively blacklist so far.

If you can generate a list of laptops with dmidecode that need nolapic the might
be useful.
Comment 25 Luming Yu 2006-04-24 06:20:17 UTC
Re: >It does not hang hard, sysrq still works.
Could you post some information about this?

Re: >probably you should pass your laptop to a kernel hacker 
Good idea. Is it possible to ship it to me. It makes some sense, especially when you want to just blacklist. 


Comment 26 Andreas Kleen 2006-04-24 06:29:08 UTC
Luming, I assume you have a couple of test laptops already. Do they all suspend/resume with IO-APIC on?
Comment 27 Andreas Kleen 2006-05-04 17:34:52 UTC
Does this work with RC3/RC4?
Comment 28 Forgotten User ZhJd0F0L3x 2006-05-09 19:25:54 UTC
SLED10B11 still needs "nolapic" or "noapic".
Comment 30 Forgotten User ZhJd0F0L3x 2008-03-18 20:03:08 UTC
I am quite sure that i have seen this machine resume without problems on later openSUSE releases without noapic. There was a fix somewhen in late 2006 or 2007 that fixed APIC suspend / resume on a lot of machines and i think this fixed this machine, too.

Since additionally this machine is totally unimportant for SLED, let's just wontfix this bug.