render / rpms / edk2

Forked from rpms/edk2 2 months ago
Clone

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

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