CPUID-less CPU/sync_core fixes and improvements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest posting 2/24 patches 2 repliesIn review
- v4 posting 1/20 of 4 patches 0 repliesSuperseded
- v3 posting 2/24 patches 11 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 posting 1/2 | 0 of 4 patches | 0 replies | Superseded | |
| v2 | 6 patches | 34 replies | Superseded | |
| v1 | 4 patches | 12 replies | Superseded |
Changes in v4 from the cover letter
- Improve sync_core() comments.
- Tidy up sync_core() asm.
Patches in v4 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | x86/asm/32: Make sync_core() handle missing CPUID on all 32-bit kernelsarch/ | +1 | 0 replies | |
| 1/4 | x86/asm/32: Make sync_core() handle missing CPUID on all 32-bit kernelsarch/ | +1 | 0 replies | |
| 2/4 | Revert "x86/boot: Fail the boot if !M486 and CPUID is missing"arch/ | +0 | 0 replies | |
| 2/4 | Revert "x86/boot: Fail the boot if !M486 and CPUID is missing"arch/ | +0 | 0 replies | |
| 3/4 | x86/microcode/intel: Replace sync_core() with native_cpuid()arch/ | +23 | 0 replies | |
| 3/4 | x86/microcode/intel: Replace sync_core() with native_cpuid()arch/ | +23 | 0 replies | |
| 4/4 | x86/asm: Rewrite sync_core() to use IRET-to-selfarch/ | +58 | 0 replies | |
| 4/4 | x86/asm: Rewrite sync_core() to use IRET-to-selfarch/ | +58 | 0 replies |
Reviews trailers per patch
2 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Borislav Petkov |
|---|---|
| 1/4 | |
| 1/4 | |
| 2/4 | |
| 2/4 | |
| 3/4 | A-b A-b |
| 3/4 | A-b A-b |
| 4/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/4] CPUID-less CPU/sync_core fixes and improvements
*** PATCHES 1 and 2 MAY BE 4.9 MATERIAL ***
Alan Cox pointed out that the 486 isn't the only supported CPU that doesn't have CPUID. Let's clean up the mess and make everything faster while we're at it.
Patch 1 is intended to be an easy fix: it makes sync_core() work without CPUID on all 32-bit kernels. It should be quite safe. This will have a negligible performance cost during boot on kernels built for newer CPUs. With this in place, patch 2 reverts the buggy 486 check I added.
Patches 3-4 are meant to improve the situation. Patch 3 cleans up the Intel microcode loader and the patch 4 (which depends on patch 3 to work correctly) stops using CPUID in sync_core() altogether.
Changes from v3:
- Improve sync_core() comments.
- Tidy up sync_core() asm.
Changes from v2:
- Switch to IRET-to-self and get rid of all the paravirt code.
- Further immprove the sync_core() comment.
Changes from v1:
- Fix Xen
- Add timing info to the changelog (hint: 2x speedup)
- Document patch 1 a bit better.
Andy Lutomirski (4):
x86/asm/32: Make sync_core() handle missing CPUID on all 32-bit
kernels
Revert "x86/boot: Fail the boot if !M486 and CPUID is missing" x86/microcode/intel: Replace sync_core() with native_cpuid() x86/asm: Rewrite sync_core() to use IRET-to-self
arch/x86/boot/cpu.c | 6 --- arch/x86/include/asm/processor.h | 80 +++++++++++++++++++++++++---------- arch/x86/kernel/cpu/microcode/intel.c | 26 ++++++++++-- 3 files changed, 81 insertions(+), 31 deletions(-)
Signature · 1 line
2.9.3