]> bbs.cooldavid.org Git - net-next-2.6.git/commit
x86, cpu: AMD errata checking framework
authorHans Rosenfeld <hans.rosenfeld@amd.com>
Wed, 28 Jul 2010 17:09:30 +0000 (19:09 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 28 Jul 2010 20:12:04 +0000 (13:12 -0700)
commitd78d671db478eb8b14c78501c0cee1cc7baf6967
tree584432da234b4c50a7e1500459d6ada7d7517cc3
parent7d50d07da23995a18ac449636cb42aec2cb2808d
x86, cpu: AMD errata checking framework

Errata are defined using the AMD_LEGACY_ERRATUM() or AMD_OSVW_ERRATUM()
macros. The latter is intended for newer errata that have an OSVW id
assigned, which it takes as first argument. Both take a variable number
of family-specific model-stepping ranges created by AMD_MODEL_RANGE().

Iff an erratum has an OSVW id, OSVW is available on the CPU, and the
OSVW id is known to the hardware, it is used to determine whether an
erratum is present. Otherwise, the model-stepping ranges are matched
against the current CPU to find out whether the erratum applies.

For certain special errata, the code using this framework might have to
conduct further checks to make sure an erratum is really (not) present.

Signed-off-by: Hans Rosenfeld <hans.rosenfeld@amd.com>
LKML-Reference: <1280336972-865982-1-git-send-email-hans.rosenfeld@amd.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/amd.c