]> git.karo-electronics.de Git - karo-tx-linux.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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:13 +0000 (10:57 -0400)
commit8be5957887fc21f67a8c122a0b1c098732d32c5f
treece9746141c904e2e0ad98ae499dfab7b64362a2f
parentbc8e0d6b8c7bb24127ab355df1569662d4df581f
x86, cpu: AMD errata checking framework

commit d78d671db478eb8b14c78501c0cee1cc7baf6967 upstream.

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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/amd.c