Blame SOURCES/0021-ArmVirtPkg-silence-DEBUG_VERBOSE-0x00400000-in-QemuR.patch

75d8e7
From e90b3928d862a2dadda7d5c7c8f680f05854bc6f Mon Sep 17 00:00:00 2001
c4e3b2
From: Laszlo Ersek <lersek@redhat.com>
c4e3b2
Date: Wed, 27 Jan 2016 03:05:18 +0100
c4e3b2
Subject: ArmVirtPkg: silence DEBUG_VERBOSE (0x00400000) in QemuRamfbDxe (RH
c4e3b2
 only)
c4e3b2
c4e3b2
Notes about the RHEL-8.3/20200603-ca407c7246bf [edk2-stable202005] ->
c4e3b2
RHEL-8.5/20210520-e1999b264f1f [edk2-stable202105] rebase:
c4e3b2
c4e3b2
- no change
c4e3b2
c4e3b2
Notes about the RHEL-8.2/20190904-37eef91017ad [edk2-stable201908] ->
c4e3b2
RHEL-8.3/20200603-ca407c7246bf [edk2-stable202005] rebase:
c4e3b2
c4e3b2
- no change
c4e3b2
c4e3b2
Notes about the RHEL-8.1/20190308-89910a39dcfd [edk2-stable201903] ->
c4e3b2
RHEL-8.2/20190904-37eef91017ad [edk2-stable201908] rebase:
c4e3b2
c4e3b2
- The previous version of this patch (downstream commit 76b4ac28e975)
c4e3b2
  caused a regression (RHBZ#1714446), which was fixed up in downstream
c4e3b2
  commit 5a216abaa737 ("ArmVirtPkg: silence DEBUG_VERBOSE masking
c4e3b2
  ~0x00400000 in QemuRamfbDxe (RH only)", 2019-08-05).
c4e3b2
c4e3b2
  Squash the fixup into the original patch. Fuse the commit messages.
c4e3b2
  (Acked-by tags are not preserved, lest we confuse ourselves while
c4e3b2
  reviewing this rebase.)
c4e3b2
c4e3b2
Notes about the RHEL-8.0/20180508-ee3198e672e2 ->
c4e3b2
RHEL-8.1/20190308-89910a39dcfd rebase:
c4e3b2
c4e3b2
- new patch, due to upstream commit c64688f36a8b ("ArmVirtPkg: add
c4e3b2
  QemuRamfbDxe", 2018-06-14)
c4e3b2
c4e3b2
QemuRamfbDxe uses FrameBufferLib. The FrameBufferBltLib instance added in
c4e3b2
commit b1ca386074bd ("MdeModulePkg: Add FrameBufferBltLib library
c4e3b2
instance") logs many messages on the VERBOSE level; for example, a normal
c4e3b2
boot with ArmVirtQemu[Kernel] can produce 500+ "VideoFill" messages,
c4e3b2
dependent on the progress bar, when the VERBOSE bit is set in
c4e3b2
PcdDebugPrintErrorLevel.
c4e3b2
c4e3b2
Clear the VERBOSE bit without touching other bits -- those other bits
c4e3b2
differ between the "silent" and "verbose" builds, so we can't set them as
c4e3b2
constants.
c4e3b2
c4e3b2
QemuRamfbDxe itself doesn't log anything at the VERBOSE level, so we lose
c4e3b2
none of its messages, with the VERBOSE bit clear.
c4e3b2
c4e3b2
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
c4e3b2
(cherry picked from commit 76b4ac28e975bd63c25db903a1d42c47b38cc756)
c4e3b2
Reported-by: Andrew Jones <drjones@redhat.com>
c4e3b2
Suggested-by: Laszlo Ersek <lersek@redhat.com>
c4e3b2
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
c4e3b2
(cherry picked from commit 5a216abaa737195327235e37563b18a6bf2a74dc)
c4e3b2
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
c4e3b2
(cherry picked from commit e5b8152bced2364a1ded0926dbba4d65e23e3f84)
c4e3b2
(cherry picked from commit e7f57f154439c1c18ea5030b01f8d7bc492698b2)
c4e3b2
---
c4e3b2
 ArmVirtPkg/ArmVirtQemu.dsc       | 5 ++++-
c4e3b2
 ArmVirtPkg/ArmVirtQemuKernel.dsc | 5 ++++-
c4e3b2
 2 files changed, 8 insertions(+), 2 deletions(-)
c4e3b2
c4e3b2
diff --git a/ArmVirtPkg/ArmVirtQemu.dsc b/ArmVirtPkg/ArmVirtQemu.dsc
75d8e7
index ec0edf6e7b..e6fad9f066 100644
c4e3b2
--- a/ArmVirtPkg/ArmVirtQemu.dsc
c4e3b2
+++ b/ArmVirtPkg/ArmVirtQemu.dsc
75d8e7
@@ -509,7 +509,10 @@
c4e3b2
   #
c4e3b2
   # Video support
c4e3b2
   #
c4e3b2
-  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
c4e3b2
+  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf {
c4e3b2
+    <PcdsFixedAtBuild>
c4e3b2
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|($(DEBUG_PRINT_ERROR_LEVEL)) & 0xFFBFFFFF
c4e3b2
+  }
c4e3b2
   OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
c4e3b2
   OvmfPkg/PlatformDxe/Platform.inf
c4e3b2
 
c4e3b2
diff --git a/ArmVirtPkg/ArmVirtQemuKernel.dsc b/ArmVirtPkg/ArmVirtQemuKernel.dsc
75d8e7
index a8bb83b288..656c9d99a3 100644
c4e3b2
--- a/ArmVirtPkg/ArmVirtQemuKernel.dsc
c4e3b2
+++ b/ArmVirtPkg/ArmVirtQemuKernel.dsc
75d8e7
@@ -438,7 +438,10 @@
c4e3b2
   #
c4e3b2
   # Video support
c4e3b2
   #
c4e3b2
-  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
c4e3b2
+  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf {
c4e3b2
+    <PcdsFixedAtBuild>
c4e3b2
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|($(DEBUG_PRINT_ERROR_LEVEL)) & 0xFFBFFFFF
c4e3b2
+  }
c4e3b2
   OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
c4e3b2
   OvmfPkg/PlatformDxe/Platform.inf
c4e3b2
 
c4e3b2
-- 
c4e3b2
2.27.0
c4e3b2