amd/stoneyridge: Reorder temp mtrr for flash
commit8f031d8234212266a6a18747415550ae5b89c776
authorMarshall Dawson <marshalldawson3rd@gmail.com>
Tue, 10 Apr 2018 04:15:06 +0000 (9 22:15 -0600)
committerMartin Roth <martinroth@google.com>
Wed, 11 Apr 2018 14:13:56 +0000 (11 14:13 +0000)
tree3d26310924fa9ee472e5fb9a7fd1adfbe29fb4fa
parentfbc66b9dc035bcd287d434363ce984c41118bf95
amd/stoneyridge: Reorder temp mtrr for flash

Relocate setting the temp range MTRR, for the SPI flash device, to
after completion of mp_init.  The mp_init functionality mirrors the
BSP's exact MTRR settings into the AP cores.  The ranges need to be
the correct calculated values and not some temporary setting.

This solves an MTRR sync issue on APUs with more than two cores,
i.e. more than a single compute-unit.  MTRRs within a CU are shared
so the AP always stays in sync.

BUG=b:77457944
TEST=run on Kahlee

Change-Id: Idc4cccdf721e252bc87d6cba62a3406a9f19b940
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/25575
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/soc/amd/stoneyridge/cpu.c