[PATCH v3] x86: Change tesing logic of mtrr commit

Bin Meng bmeng.cn at gmail.com
Tue Aug 1 04:07:46 CEST 2023


On Mon, Jul 31, 2023 at 9:56 PM Simon Glass <sjg at chromium.org> wrote:
>
> From: Bin Meng <bmeng.cn at gmail.com>
>
> On Coral U-Boot SPL programs some MTRRs and FSPv2 in U-Boot proper
> needs to program MTRRs too. With current testing logic of mtrr
> commit in init_cache_f_r(), the mtrr commit is skipped which won't
> work as the queued mtrr requests include setup for DRAM regions.
>
> Change the logic to allow such configuration.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> Tweak to put back CONFIG_FSP_VERSION2 at top:
> Signed-off-by: Simon Glass <sjg at chromium.org>
>
> ---
>
> Changes in v3:
> - Allow committing MTRRs with FSP_VERSION2
>
> Changes in v2:
> - new patch: "x86: Change tesing logic of mtrr commit"
>
>  arch/x86/lib/init_helpers.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
>

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list