Skip to content

Commit

Permalink
x86/fault: Skip erratum torvalds#93 workaround on new CPUs
Browse files Browse the repository at this point in the history
Erratum torvalds#93 applies to the first generation of AMD K8 CPUs.  Skip the
workaround on newer CPUs.

Signed-off-by: Andy Lutomirski <[email protected]>
  • Loading branch information
amluto committed Feb 10, 2021
1 parent 79b73a4 commit c7010da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/x86/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,8 @@ static void dump_pagetable(unsigned long address)
*/
static int is_errata93(struct pt_regs *regs, unsigned long address)
{
#if defined(CONFIG_X86_64) && defined(CONFIG_CPU_SUP_AMD)
if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD
|| boot_cpu_data.x86 != 0xf)
#if defined(CONFIG_X86_64)
if (!is_amd_k8_pre_npt())
return 0;

if (user_mode(regs))
Expand Down

0 comments on commit c7010da

Please sign in to comment.