Skip to content

x86/CPU: Improve AMD Erratum 400 workaround

Borislav Petkov lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86/cpufeature: Provide helper to set bugs bitsarch/x86/include/asm/cpufeature.h+1 -00 replies
2/5x86/bugs: Separate AMD E400 erratum and C1E bugarch/x86/include/asm/cpufeatures.h arch/x86/kernel/cpu/amd.c arch/x86/kernel/process.c+16 -90 replies
3/5x86/amd: Check for the C1E bug post ACPI subsystem initarch/x86/kernel/process.c init/main.c+26 -00 replies
4/5x86/amd: Simplify AMD E400 aware idle routinearch/x86/include/asm/acpi.h arch/x86/include/asm/idle.h arch/x86/include/asm/processor.h +5 more+31 -570 replies
5/5x86: Remove empty idle.h headerarch/x86/include/asm/apic.h arch/x86/include/asm/idle.h arch/x86/kernel/apic/apic.c +15 more+0 -210 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchThomas Gleixner
1/5
2/5
3/5
4/5Siggested-by
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] x86/CPU: Improve AMD Erratum 400 workaround

From: Borislav Petkov <[email protected]>

Hi,

here's the final version of the pile we've been working on for a while now, trying to remove that rdmsr on the idle path.

@jolsa: just wait until it lands in tip and then you can run it on your box.

Thanks.

Borislav Petkov (2):
x86/cpufeature: Provide helper to set bugs bits
x86/amd: Simplify AMD E400 aware idle routine

Thomas Gleixner (3):
x86/bugs: Separate AMD E400 erratum and C1E bug x86/amd: Check for the C1E bug post ACPI subsystem init
x86: Remove empty idle.h header

 arch/x86/include/asm/acpi.h              |   2 +-
 arch/x86/include/asm/apic.h              |   1 -
 arch/x86/include/asm/cpufeature.h        |   1 +
 arch/x86/include/asm/cpufeatures.h       |   2 +
 arch/x86/include/asm/idle.h              |   6 --
 arch/x86/include/asm/processor.h         |   3 +-
 arch/x86/kernel/apic/apic.c              |   3 +-
 arch/x86/kernel/apic/io_apic.c           |   1 -
 arch/x86/kernel/cpu/amd.c                |  20 +++---
 arch/x86/kernel/cpu/common.c             |   1 -
 arch/x86/kernel/cpu/mcheck/mce_amd.c     |   1 -
 arch/x86/kernel/cpu/mcheck/therm_throt.c |   1 -
 arch/x86/kernel/cpu/mcheck/threshold.c   |   1 -
 arch/x86/kernel/cpu/mshyperv.c           |   1 -
 arch/x86/kernel/irq.c                    |   1 -
 arch/x86/kernel/irq_64.c                 |   1 -
 arch/x86/kernel/kvm.c                    |   1 -
 arch/x86/kernel/process.c                | 102 +++++++++++++++----------------
 arch/x86/kernel/process_32.c             |   1 -
 arch/x86/kernel/process_64.c             |   1 -
 arch/x86/kernel/smpboot.c                |   2 -
 arch/x86/platform/uv/tlb_uv.c            |   1 -
 drivers/acpi/processor_idle.c            |   2 +-
 drivers/thermal/intel_powerclamp.c       |   1 -
 drivers/xen/events/events_base.c         |   1 -
 init/main.c                              |   3 +
 26 files changed, 74 insertions(+), 87 deletions(-)
 delete mode 100644 arch/x86/include/asm/idle.h
Signature · 1 line
2.11.0