public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [rfc-patch, bugfix] x86-microcode
@ 2008-08-03 15:42 Dmitry Adamushko
  2008-08-04 19:31 ` Max Krasnyansky
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Adamushko @ 2008-08-03 15:42 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Tigran Aivazian, H. Peter Anvin, Peter Oruba, Thomas Gleixner,
	Max Krasnyansky, Rafael J. Wysocki, LKML


Hi,


[ consider it a pre-release and RFC... I'm a bit in hurry now and just send what I have got by this moment.
Although, I expect it to be workable ]


this change is supposed to fix bug#11197 (note, its name "Oops in microcode sysfs registration" is misleading)

The problem description can be found here:
http://www.ussg.iu.edu/hypermail/linux/kernel/0807.3/3791.html
or
http://lkml.org/lkml/2008/7/24/260

perhaps it does look quite bulky for -rc, although it's mainly move-redesign-some-bits of the code and
I tried to preserve the original logic (even if it looked like a possible optimizations might had been applied)
as much as possible.

The basic idea is that we introduce another mechanism to run ucode-updates on a target cpu
and replace set_cpus_allowed_ptr() in (1) cpu-hotplug events and (2) module load.


[1/2] x86-microcode: generic updates

Basically, it introduces microcode_update_cpu() which can be run either from start_secondary()
(perhaps via a function pointer) or scheduled via keventd ([2/2]) and reworks the logic of cpu-hotplug events.

[2/2] x86-microcode: do updates via workqueue


More testing is necessary. I tested without ucode-package (so only generic machinery) and for
- load/unload module;
- cpu-hotplug (so it doesn't give an oops anymore)

hm, suspend/resume seems to be broken even without the 'microcode' module (will check the date of my previous kernel).


--Dmitry




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-04 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-03 15:42 [rfc-patch, bugfix] x86-microcode Dmitry Adamushko
2008-08-04 19:31 ` Max Krasnyansky
2008-08-04 20:01   ` Dmitry Adamushko
2008-08-04 21:32     ` Max Krasnyansky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox