soc/intel/common/block: Do not die if PRMRR size unsupported
If a given PRMRR size is not supported, do NOT brick people's devices. We don't do that when PRMRRs aren't even supported anyway. Change-Id: Ib917be873aedbc5e789bb0894fca335b5ee9e2c2 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45373 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
parent
2d90ddd2d2
commit
2ce386a3c2
|
@ -367,10 +367,11 @@ int get_prmrr_size(void)
|
|||
valid_size = 0;
|
||||
}
|
||||
|
||||
/* die if we could not find a valid size within the limit */
|
||||
if (!valid_size)
|
||||
die("Unsupported PRMRR size limit %i MiB, check your config!\n",
|
||||
if (!valid_size) {
|
||||
printk(BIOS_WARNING, "Unsupported PRMRR size of %i MiB, check your config!\n",
|
||||
CONFIG_SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
printk(BIOS_DEBUG, "PRMRR size set to %i MiB\n", valid_size);
|
||||
|
||||
|
|
Loading…
Reference in New Issue