Re: invalidate caches before going into suspend

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Wednesday, August 13, 2008 - 9:47 am

* Mark Langsdorf <mark.langsdorf@amd.com> wrote:


nice catch! Applied to x86/urgent.

I'm really curious: how did you find this bug? Did you see a CPU come up 
as !CPU_DEAD?


please send a patch for the 32-bit side too, it has the same bug.

also, we might be safer if the wbinvd(), the CLI and the halt was in a 
single assembly sequence:

	if (cpu >= i486)
		asm ("cli; wbinvd; cli; 1: hlt; jmp 1b")
	else
		asm ("cli; 1: hlt; jmp 1b")

to make sure the compiler doesnt ever insert something into this 
codepath? [ And note the double cli which would be further 
robustification - in theory we could get a spurious interrupt straight 
after the wbinvd. ] Hm?

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
invalidate caches before going into suspend, Mark Langsdorf, (Wed Aug 13, 9:41 am)
Re: invalidate caches before going into suspend, Ingo Molnar, (Wed Aug 13, 9:47 am)
Re: invalidate caches before going into suspend, H. Peter Anvin, (Wed Aug 13, 9:53 am)
Re: invalidate caches before going into suspend, Ingo Molnar, (Wed Aug 13, 10:01 am)
Re: invalidate caches before going into suspend, Mark Langsdorf, (Wed Aug 13, 10:09 am)
Re: invalidate caches before going into suspend, Linus Torvalds, (Wed Aug 13, 10:17 am)
Re: invalidate caches before going into suspend, H. Peter Anvin, (Wed Aug 13, 10:28 am)
Re: invalidate caches before going into suspend, Mark Langsdorf, (Wed Aug 13, 10:30 am)
Re: invalidate caches before going into suspend, Ingo Molnar, (Wed Aug 13, 10:35 am)
Re: invalidate caches before going into suspend, H. Peter Anvin, (Wed Aug 13, 10:37 am)
Re: invalidate caches before going into suspend, Ingo Molnar, (Wed Aug 13, 10:38 am)
Re: invalidate caches before going into suspend, Ingo Molnar, (Wed Aug 13, 10:52 am)
Re: [PATCH](retry 2) Re: invalidate caches before going in ..., Arjan van de Ven, (Wed Aug 13, 11:42 am)
Re: invalidate caches before going into suspend, Andi Kleen, (Wed Aug 13, 12:39 pm)