Skip to content

x86: Support for Intel Microcode Staging Feature

Chang S. Bae lkml 6 versions – Applied

Status from this message: The following commit has been merged into the x86/microcode branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest7 patches 4 repliesApplied
  2. v57 patches 15 repliesSuperseded
  3. v46 patches 11 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v36 patches3 repliesSuperseded
v26 patches12 repliesSuperseded
v16 patches17 repliesSuperseded

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/7x86/cpu/topology: Make primary thread mask available with SMP=narch/x86/include/asm/topology.h arch/x86/kernel/cpu/topology.c arch/x86/kernel/cpu/topology_common.c +1 more+9 -130 replies
2/7x86/microcode: Introduce staging step to reduce late-loading timearch/x86/kernel/cpu/microcode/core.c arch/x86/kernel/cpu/microcode/internal.h+14 -10 replies
3/7x86/microcode/intel: Establish staging control logicarch/x86/include/asm/msr-index.h arch/x86/kernel/cpu/microcode/intel.c+50 -02 replies
4/7x86/microcode/intel: Define staging state structarch/x86/kernel/cpu/microcode/intel.c+17 -00 replies
5/7x86/microcode/intel: Implement staging handlerarch/x86/kernel/cpu/microcode/intel.c+120 -30 replies
6/7x86/microcode/intel: Support mailbox transferarch/x86/kernel/cpu/microcode/intel.c+166 -60 replies
7/7x86/microcode/intel: Enable staging when availablearch/x86/include/asm/msr-index.h arch/x86/kernel/cpu/microcode/intel.c+24 -00 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchTony LuckAnselm BusseChao Gao
1/7R-b
2/7R-b T-b R-b
3/7R-b R-b T-b T-b
4/7R-b T-b
5/7R-b T-b
6/7R-b T-b
7/7R-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/7] x86: Support for Intel Microcode Staging Feature

Hi all,

This posting incorporates the following updates:

* Addressed Boris' feedbacks:
* Trimmed down changelogs to key points
* Clarified error messages
* Folded a one-liner helper
- Fixed typos
- Corrected header include ordering

* Collected Tony's review tag

Boris also commented on the heuristic, worth highlighting:

Quoted 5 lines

Review

Quoted 3 lines
(quoted diff) +3 -0
+    * To tolerate this behavior, allow up to twice the expected
+    * number of transactions (i.e., a 10-chunk image can take up to
+    * 20 attempts).

Looks quirky but ok, let's try it in practice first

...

Quoted 4 lines

If this is part of normal operation, your send-max-2x-the-size heuristic might fail quickly here. I'd track the number of chunks it wants you to send and then set a per-chunk limit and when it reaches that limit, then cancel the transaction. Dunno, let's try the simple scheme first...

As the series continues to take shape, I hope this iteration can build momentum towards the integration.

The branch is available here:
git://github.com/intel-staging/microcode.git staging_v6

Previous posting:
https://lore.kernel.org/lkml/[email protected]/

Thanks,
Chang

Chang S. Bae (7):
x86/cpu/topology: Make primary thread mask available with SMP=n x86/microcode: Introduce staging step to reduce late-loading time x86/microcode/intel: Establish staging control logic x86/microcode/intel: Define staging state struct x86/microcode/intel: Implement staging handler x86/microcode/intel: Support mailbox transfer x86/microcode/intel: Enable staging when available

 arch/x86/include/asm/msr-index.h         |   9 +
 arch/x86/include/asm/topology.h          |  12 +-
 arch/x86/kernel/cpu/microcode/core.c     |  11 +
 arch/x86/kernel/cpu/microcode/intel.c    | 359 +++++++++++++++++++++++
 arch/x86/kernel/cpu/microcode/internal.h |   4 +-
 arch/x86/kernel/cpu/topology.c           |   4 -
 arch/x86/kernel/cpu/topology_common.c    |   3 +
 arch/x86/kernel/smpboot.c                |   3 -
 8 files changed, 391 insertions(+), 14 deletions(-)

base-commit: 835794d1ae4cb94b77f631f810018c286561181a

Signature · 1 line
2.48.1