Re: [PATCH] x86, microcode: Make reload interface per system

Henrique de Moraes Holschuh
2012-06-19T18:30:51Z

On Tue, 19 Jun 2012, Peter Zijlstra wrote:
> On Tue, 2012-06-19 at 12:22 +0200, Borislav Petkov wrote:
> > But I haven't tested what happens when it is built in and I use the
> > reload interface, hehe something to play with today.
>
> I couldn't easily find where to place the damn ucode image anyway, so I
> built in the old-style /dev interface and used the microcode.ctl package
> to load it.

The firmware interface is fine *after the system boot*, we just needed a
better way to trigger it through sysfs. These patches address that.

The sysfs interface is useful to immediately apply a microcode update
when a new one is made available, without the need for a reboot... most
microcode updates are not of the sort the kernel is testing for their
presence at boot. The sysfs interface is also useful when the required
microcode is not available at the time the microcode driver first
requests it.

We still need a proper way to load microcode very very early (which
requires that the microcode be available to the kernel and THAT
has nothing to do with sysfs :-)

Even if we have the very early microcode facility, we *still* want the
runtime one based on sysfs+request_firmware in order to update microcode
without the need for a reboot.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh