Discussion:
[coreboot] Kabylake H: SPI Transaction Error at Flash Offset d10000
Christian Gmeiner
2018-11-19 10:15:34 UTC
Permalink
Hi

Am Fr., 16. Nov. 2018 um 15:57 Uhr schrieb Jose Trujillo via coreboot
My Kabylake H system "HM175" with coreboot "bsl6" and "kblrvp" platforms with properly configured I/O failed to save Memory training data to the SPI cache 'RW_MRC_CACHE'.
FMAP: Found "FLASH" version 1.1 at d00000.
FMAP: base = ff000000 size = 1000000 #areas = 4
MRC: Checking cached data update for 'RW_MRC_CACHE'.
SF: Detected FAST_SPI Hardware Sequencer with sector size 0x1000, total 0x100000
MRC: no data in 'RW_MRC_CACHE'
MRC: cache data 'RW_MRC_CACHE' needs update.
SPI Transaction Error at Flash Offset d10000 HSFSTS = 0x01046003
REGF metadata allocation failed: 392 data blocks 4096 total blocks
MRC: Could not find region 'UNIFIED_MRC_CACHE'
MRC: NOT enabling PRR for 'RW_MRC_CACHE'
As a consequence fast boot never works. (fast boot works correctly on my coffeelake system).
Nico helped me to test the system ability to save data to the MRC_CACHE block from linux booting coreboot and I wrote random data to the 'RW_MRC_CACHE' block with the "flashrom" tool succesfully.
Maybe someone that had experience with this issue or have some idea how to fix it can give me advise on how to resolve this problem.
I run into the same problem: https://review.coreboot.org/c/coreboot/+/29159

Make sure you have this block in your devicetree.cb

# Lock Down
register "common_soc_config" = "{
.chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
}"
--
greets
--
Christian Gmeiner, MSc

https://christian-gmeiner.info
--
coreboot mailing list: ***@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot
Zaolin
2018-11-19 12:35:58 UTC
Permalink
Hey folks,

I guess this is an integration option. IMHO Chipset lockdown should be a
kconfig

option and not be defined as part of the device tree.

Maybe we should do a follow up and fix this issue. BTW same goes for SPI
flash

protection which should be interfaced globally, platform independent.


BR, Zaolin
Thank you Christian,
Works in my system too, Kabilake FSP2 issue?
The only small drawback is the disabled ability to upgrade coreboot from itself which correct me if I am wrong is great in terms of security.
Do you know if there is still the possibility to enable HECI to flash SPI in SMM mode even in CHIPSET_LOCKDOWN?
But now this system boots fast.
I owe you one bro.
Jose Trujillo
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Post by Christian Gmeiner
Hi
Am Fr., 16. Nov. 2018 um 15:57 Uhr schrieb Jose Trujillo via coreboot
My Kabylake H system "HM175" with coreboot "bsl6" and "kblrvp" platforms with properly configured I/O failed to save Memory training data to the SPI cache 'RW_MRC_CACHE'.
FMAP: Found "FLASH" version 1.1 at d00000.
FMAP: base = ff000000 size = 1000000 #areas = 4
MRC: Checking cached data update for 'RW_MRC_CACHE'.
SF: Detected FAST_SPI Hardware Sequencer with sector size 0x1000, total 0x100000
MRC: no data in 'RW_MRC_CACHE'
MRC: cache data 'RW_MRC_CACHE' needs update.
SPI Transaction Error at Flash Offset d10000 HSFSTS = 0x01046003
REGF metadata allocation failed: 392 data blocks 4096 total blocks
MRC: Could not find region 'UNIFIED_MRC_CACHE'
MRC: NOT enabling PRR for 'RW_MRC_CACHE'
As a consequence fast boot never works. (fast boot works correctly on my coffeelake system).
Nico helped me to test the system ability to save data to the MRC_CACHE block from linux booting coreboot and I wrote random data to the 'RW_MRC_CACHE' block with the "flashrom" tool succesfully.
Maybe someone that had experience with this issue or have some idea how to fix it can give me advise on how to resolve this problem.
I run into the same problem:https://review.coreboot.org/c/coreboot/+/29159
Make sure you have this block in your devicetree.cb
# Lock Down
register "common_soc_config" = "{
.chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
}"
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
greets
-------
Christian Gmeiner, MSc
https://christian-gmeiner.info
Loading...