]> git.baikalelectronics.ru Git - kernel.git/commit
x86, microcode: Verify the family before dispatching microcode patching
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 19 Apr 2013 23:36:03 +0000 (16:36 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 19 Apr 2013 23:36:03 +0000 (16:36 -0700)
commitf1285e4b821dc538ab9977b68ac8fda039de1b07
tree60413af0bbe1fff8afdc35f36719e8150d78b7af
parent72d5ca1eac44528c23edafd68069345b2e032fd9
x86, microcode: Verify the family before dispatching microcode patching

For each CPU vendor that implements CPU microcode patching, there will
be a minimum family for which this is implemented.  Verify this
minimum level of support.

This can be done in the dispatch function or early in the application
functions.  Doing the latter turned out to be somewhat awkward because
of the ineviable split between the BSP and the AP paths, and rather
than pushing deep into the application functions, do this in
the dispatch function.

Reported-by: "Bryan O'Donoghue" <bryan.odonoghue.lkml@nexus-software.ie>
Suggested-by: Borislav Petkov <bp@alien8.de>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Link: http://lkml.kernel.org/r/1366392183-4149-1-git-send-email-bryan.odonoghue.lkml@nexus-software.ie
arch/x86/kernel/microcode_core_early.c