lkml.org 
[lkml]   [2006]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] microcode update driver rewrite
On Thu, May 25, 2006 at 11:50:49AM +0800, Shaohua Li wrote:
> This is the rewrite of microcode update driver. Changes:
> 1. trim the code

Hm, but the code is now bigger.

> 2. using request_firmware to pull ucode from userspace, so we don't need
> the application 'microcode_ctl' to assist. We name each ucode file
> according to CPU's info as intel-ucode/family-model-stepping. In this
> way we could split ucode file as small one. This has a lot of advantages
> such as selectively update and validate microcode for specific models,
> better manage microcode file, easily write tools for administerators and
> so on.
> 3. add sysfs support. Currently each CPU has two microcode related
> attributes. One is 'version' which shows current ucode version of CPU.
> Tools can use the attribute do validation or show CPU ucode status. The
> other is 'reload' which allows manually reloading ucode.

Why are you not using the current cpu struct devices in the system?
Don't roll your own logic for this with "raw" kobjects please.

> 4. add suspend/resume and CPU hotplug support.
>
> With the changes, we should put all intel-ucode/xx-xx-xx microcode files
> into the firmware dir (I had a tool to split previous big data file into
> small one and later we will release new style data file). The init
> script should be changed to just loading the driver without unloading
> for hotplug and suspend/resume (for back compatibility I keep old
> interface, so old init script also works).
>
> Downside. We are using request_firmware. If the driver is build-in and
> initramfs hasn't udev support, the driver will wait for request_firmware
> to finish for a long time. But I suppose this is very rare, as microcode
> driver usually is a module.

Don't use request_firmware, use request_firmware_nowait() instead. That
way you never stall. You only want to update the firmware when
userspace tells you to, not for every boot like I think this will do.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-25 06:11    [W:1.417 / U:0.492 seconds]
©2003-2014 Jasper Spaans. Advertise on this site