audk/ArmPlatformPkg/Drivers
Laszlo Ersek 582085eb1f ArmPlatformPkg: NorFlashDxe: mellow DEBUG messages about flash reinit
The ValidateFvHeader() function checks several conditions against the
firmware volume header. Failure of the first of these checks, reported as
"No Firmware Volume header present", is a common situation for unformatted
flash images, especially when a new virtual machine is created.

Similarly, "Variable Store Guid non-compatible" is common when the
firmware binary is switched from Secure Boot-incapable to Secure
Boot-capable, or vice versa.

The only caller of ValidateFvHeader(), NorFlashFvbInitialize(), handles
all these mismatches by installing a new FVB header. It also emits
another, loud ERROR message (which is even less justified when it is
triggered by (BootMode == BOOT_WITH_DEFAULT_SETTINGS)).

Downgrade these messages from EFI_D_ERROR to EFI_D_INFO, so that they
don't clutter the debug output when the PcdDebugPrintErrorLevel mask only
enables EFI_D_ERROR (i.e., in a "silent" build).

These messages have annoyed / confused users; see for example:
- https://bugzilla.redhat.com/show_bug.cgi?id=1270279
- http://thread.gmane.org/gmane.comp.bios.edk2.devel/2772/focus=2869

Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Drew Jones <drjones@redhat.com>
Cc: Yehuda Yitschak <yehuday@marvell.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18618 6f19259b-4bc3-4df7-8a09-765794883524
2015-10-16 15:46:28 +00:00
..
ArmTrustZone ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
LcdGraphicsOutputDxe ArmPlatformPkg/HdLcd: add missing LcdIdentify() 2015-09-04 10:02:43 +00:00
NorFlashDxe ArmPlatformPkg: NorFlashDxe: mellow DEBUG messages about flash reinit 2015-10-16 15:46:28 +00:00
PL011Uart ArmPlatformPkg: detect correct pl011 fifo depth 2015-01-23 16:10:00 +00:00
PL34xDmc ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
PL35xSmc ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
PL061GpioDxe ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
PL180MciDxe ArmPlatformPkg/PL180MciDxe: check PrimeCell ID before initializing 2015-08-25 13:11:02 +00:00
PL301Axi ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
PL310L2Cache ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
SP804TimerDxe ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00
SP805WatchdogDxe ARM Packages: Removed trailing spaces 2014-08-19 13:29:52 +00:00