render / rpms / edk2

Forked from rpms/edk2 2 months ago
Clone

Blame 0022-ArmVirtPkg-silence-DEBUG_VERBOSE-0x00400000-in-QemuR.patch

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