Messages in this thread | | | Date | Wed, 20 Jun 2012 11:56:16 +0200 | From | Borislav Petkov <> | Subject | Re: [PATCH 2/2] x86, microcode: Make reload interface per system |
| |
On Wed, Jun 20, 2012 at 10:59:38AM +0200, Peter Zijlstra wrote: > On Wed, 2012-06-20 at 01:28 +0200, Borislav Petkov wrote: > > > > which makes me wonder whether we still need that OLD INTERFACE. > > Henrique, any thoughts here? > > Yes I need it, I've no f'ing clue where to put the ucode image so that > the whole firmware mess can find it :-)
On AMD:
static enum ucode_state request_microcode_amd(int cpu, struct device *device) { char fw_name[36] = "amd-ucode/microcode_amd.bin"; const struct firmware *fw; enum ucode_state ret = UCODE_NFOUND; struct cpuinfo_x86 *c = &cpu_data(cpu);
if (c->x86 >= 0x15) snprintf(fw_name, sizeof(fw_name), "amd-ucode/microcode_amd_fam%.2xh.bin", c->x86); ...
On Intel:
static enum ucode_state request_microcode_fw(int cpu, struct device *device) { char name[30]; struct cpuinfo_x86 *c = &cpu_data(cpu); const struct firmware *firmware; enum ucode_state ret;
sprintf(name, "intel-ucode/%02x-%02x-%02x", c->x86, c->x86_model, c->x86_mask);
...
And that's all under /lib/firmware/
Phew, now that Peter is converted, we can kill the old interface too :-)
-- Regards/Gruss, Boris.
Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach GM: Alberto Bozzo Reg: Dornach, Landkreis Muenchen HRB Nr. 43632 WEEE Registernr: 129 19551
| |