From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [PATCH 00/22] x86: Enhance MTRR functionality to support multiple CPUs
Date: Fri, 22 May 2020 13:54:57 +0300 [thread overview]
Message-ID: <20200522105457.GS1634618@smile.fi.intel.com> (raw)
In-Reply-To: <20200522022326.238388-1-sjg@chromium.org>
On Thu, May 21, 2020 at 08:23:04PM -0600, Simon Glass wrote:
> 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.
Hmm... Why do you need MTRR if CPU supports PAT?
>
>
> 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(-)
>
> --
> 2.27.0.rc0.183.gde8f92d652-goog
>
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2020-05-22 10:54 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-22 2:23 [PATCH 00/22] x86: Enhance MTRR functionality to support multiple CPUs Simon Glass
2020-05-22 2:23 ` [PATCH 01/22] x86: mp_init: Switch to livetree Simon Glass
2020-06-10 13:25 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 02/22] x86: Move MP code into mp_init Simon Glass
2020-06-10 13:25 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 03/22] x86: mp_init: Avoid declarations in header files Simon Glass
2020-06-10 13:25 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 04/22] x86: mp_init: Switch parameter names in start_aps() Simon Glass
2020-06-10 13:25 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 05/22] x86: mp_init: Drop the num_cpus static variable Simon Glass
2020-06-10 13:25 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 06/22] x86: mtrr: Fix 'ensable' typo Simon Glass
2020-06-10 13:26 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 07/22] x86: mp_init: Set up the CPU numbers at the start Simon Glass
2020-06-10 13:26 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 08/22] x86: mp_init: Adjust bsp_init() to return more information Simon Glass
2020-06-10 13:26 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 09/22] x86: cpu: Remove unnecessary #ifdefs Simon Glass
2020-06-10 13:26 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 10/22] x86: mp: Support APs waiting for instructions Simon Glass
2020-06-10 13:27 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 11/22] global_data: Add a generic global_data flag for SMP state Simon Glass
2020-06-10 13:27 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 12/22] x86: Set the SMP flag when MP init is complete Simon Glass
2020-06-10 13:27 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 13/22] x86: mp: Allow running functions on multiple CPUs Simon Glass
2020-06-10 13:27 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 14/22] x86: mp: Park CPUs before running the OS Simon Glass
2020-06-10 13:27 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 15/22] x86: mp: Add iterators for CPUs Simon Glass
2020-06-10 13:27 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 16/22] x86: mtrr: Use MP calls to list the MTRRs Simon Glass
2020-06-10 13:28 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 17/22] x86: mtrr: Update MTRRs on all CPUs Simon Glass
2020-06-10 13:28 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 18/22] x86: mtrr: Add support for writing to MTRRs on any CPU Simon Glass
2020-06-10 13:28 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 19/22] x86: mtrr: Update the command to use the new mtrr calls Simon Glass
2020-06-10 13:28 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 20/22] x86: mtrr: Restructure so command execution is in one place Simon Glass
2020-06-10 13:28 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 21/22] x86: mtrr: Update 'mtrr' to allow setting MTRRs on any CPU Simon Glass
2020-06-10 13:29 ` Wolfgang Wallner
2020-05-22 2:23 ` [PATCH 22/22] x86: mtrr: Enhance 'mtrr' command to list " Simon Glass
2020-06-10 13:29 ` Wolfgang Wallner
2020-05-22 10:54 ` Andy Shevchenko [this message]
2020-05-22 13:42 ` [PATCH 00/22] x86: Enhance MTRR functionality to support multiple CPUs Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200522105457.GS1634618@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox