]> Git Repo - linux.git/commit
x86/cpu/amd: Add Spectral Chicken
authorPeter Zijlstra <[email protected]>
Tue, 14 Jun 2022 21:16:04 +0000 (23:16 +0200)
committerBorislav Petkov <[email protected]>
Mon, 27 Jun 2022 08:34:00 +0000 (10:34 +0200)
commitd7caac991feeef1b871ee6988fd2c9725df09039
tree3898bfd6d98b4721394662c2af34ab2c69fbc558
parenta09a6e2399ba0595c3042b3164f3ca68a3cff33e
x86/cpu/amd: Add Spectral Chicken

Zen2 uarchs have an undocumented, unnamed, MSR that contains a chicken
bit for some speculation behaviour. It needs setting.

Note: very belatedly AMD released naming; it's now officially called
      MSR_AMD64_DE_CFG2 and MSR_AMD64_DE_CFG2_SUPPRESS_NOBR_PRED_BIT
      but shall remain the SPECTRAL CHICKEN.

Suggested-by: Andrew Cooper <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/cpu.h
arch/x86/kernel/cpu/hygon.c
This page took 0.056847 seconds and 4 git commands to generate.