Skip to content

x86: Enhance MTRR functionality to support multiple CPUs

Simon Glass u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22x86: mp_init: Switch to livetreearch/x86/cpu/mp_init.c+1 -21 reply
2/22x86: Move MP code into mp_initarch/x86/cpu/i386/cpu.c arch/x86/cpu/mp_init.c arch/x86/include/asm/mp.h+16 -471 reply
3/22x86: mp_init: Avoid declarations in header filesarch/x86/cpu/mp_init.c arch/x86/include/asm/mp.h+20 -231 reply
4/22x86: mp_init: Switch parameter names in start_aps()arch/x86/cpu/mp_init.c+6 -61 reply
5/22x86: mp_init: Drop the num_cpus static variablearch/x86/cpu/mp_init.c+15 -71 reply
6/22x86: mtrr: Fix 'ensable' typocmd/x86/mtrr.c+1 -11 reply
7/22x86: mp_init: Set up the CPU numbers at the startarch/x86/cpu/mp_init.c+9 -121 reply
8/22x86: mp_init: Adjust bsp_init() to return more informationarch/x86/cpu/mp_init.c include/dm/uclass.h+23 -141 reply
9/22x86: cpu: Remove unnecessary #ifdefsarch/x86/cpu/cpu.c arch/x86/cpu/i386/cpu.c+28 -321 reply
10/22x86: mp: Support APs waiting for instructionsarch/x86/cpu/mp_init.c arch/x86/include/asm/mp.h+104 -61 reply
11/22global_data: Add a generic global_data flag for SMP stateinclude/asm-generic/global_data.h+1 -01 reply
12/22x86: Set the SMP flag when MP init is completearch/x86/cpu/mp_init.c+1 -01 reply
13/22x86: mp: Allow running functions on multiple CPUsarch/x86/cpu/mp_init.c arch/x86/include/asm/mp.h+106 -61 reply
14/22x86: mp: Park CPUs before running the OSarch/x86/cpu/cpu.c arch/x86/cpu/mp_init.c arch/x86/include/asm/mp.h+40 -01 reply
15/22x86: mp: Add iterators for CPUsarch/x86/cpu/mp_init.c arch/x86/include/asm/mp.h+102 -01 reply
16/22x86: mtrr: Use MP calls to list the MTRRsarch/x86/cpu/mtrr.c arch/x86/include/asm/mtrr.h cmd/x86/mtrr.c+62 -41 reply
17/22x86: mtrr: Update MTRRs on all CPUsarch/x86/cpu/mtrr.c+57 -01 reply
18/22x86: mtrr: Add support for writing to MTRRs on any CPUarch/x86/cpu/mtrr.c arch/x86/include/asm/mtrr.h+102 -01 reply
19/22x86: mtrr: Update the command to use the new mtrr callscmd/x86/mtrr.c+8 -261 reply
20/22x86: mtrr: Restructure so command execution is in one placecmd/x86/mtrr.c+36 -191 reply
21/22x86: mtrr: Update 'mtrr' to allow setting MTRRs on any CPUcmd/x86/mtrr.c+16 -21 reply
22/22x86: mtrr: Enhance 'mtrr' command to list MTRRs on any CPUcmd/x86/mtrr.c+21 -11 reply

Reviews trailers per patch

18 of 22 patches have a Reviewed-by or Acked-by.

PatchWolfgang Wallner
1/22R-b
2/22R-b
3/22R-b
4/22
5/22R-b
6/22R-b
7/22R-b
8/22R-b
9/22R-b
10/22
11/22R-b
12/22R-b
13/22
14/22R-b
15/22R-b
16/22R-b
17/22R-b
18/22
19/22R-b
20/22R-b
21/22R-b
22/22R-b

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 00/22] x86: Enhance MTRR functionality to support multiple CPUs

At present MTRRs are mirrored to the secondary CPUs only once, as those CPUs are started up. But U-Boot may add more MTRRs later, e.g. if it decides that a video console must be set up.

This series enhances the x86 multi-processor support to allow MTRRs to be updated at any time. It also updates the 'mtrr' command to support setting the MTRRs on CPUs other than the boot CPU.

Simon Glass (22):
x86: mp_init: Switch to livetree
x86: Move MP code into mp_init
x86: mp_init: Avoid declarations in header files
x86: mp_init: Switch parameter names in start_aps()
x86: mp_init: Drop the num_cpus static variable
x86: mtrr: Fix 'ensable' typo
x86: mp_init: Set up the CPU numbers at the start
x86: mp_init: Adjust bsp_init() to return more information
x86: cpu: Remove unnecessary #ifdefs
x86: mp: Support APs waiting for instructions
global_data: Add a generic global_data flag for SMP state
x86: Set the SMP flag when MP init is complete
x86: mp: Allow running functions on multiple CPUs
x86: mp: Park CPUs before running the OS
x86: mp: Add iterators for CPUs
x86: mtrr: Use MP calls to list the MTRRs
x86: mtrr: Update MTRRs on all CPUs
x86: mtrr: Add support for writing to MTRRs on any CPU
x86: mtrr: Update the command to use the new mtrr calls
x86: mtrr: Restructure so command execution is in one place
x86: mtrr: Update 'mtrr' to allow setting MTRRs on any CPU
x86: mtrr: Enhance 'mtrr' command to list MTRRs on any CPU

 arch/x86/cpu/cpu.c                |  63 ++---
 arch/x86/cpu/i386/cpu.c           |  26 +--
 arch/x86/cpu/mp_init.c            | 377 +++++++++++++++++++++++++-----
 arch/x86/cpu/mtrr.c               | 149 ++++++++++++
 arch/x86/include/asm/mp.h         | 118 ++++++++--
 arch/x86/include/asm/mtrr.h       |  51 ++++
 cmd/x86/mtrr.c                    | 148 ++++++++----
 include/asm-generic/global_data.h |   1 +
 include/dm/uclass.h               |   2 +-
 9 files changed, 751 insertions(+), 184 deletions(-)
Signature · 1 line
2.27.0.rc0.183.gde8f92d652-goog