Blame SOURCES/0021-OvmfPkg-silence-DEBUG_VERBOSE-0x00400000-in-QemuVide.patch

c4e3b2
From 4b2a35ab1d659068d47baaf1dd5b2918ba8a2573 Mon Sep 17 00:00:00 2001
c4e3b2
From: Paolo Bonzini <pbonzini@redhat.com>
c4e3b2
Date: Tue, 21 Nov 2017 00:57:46 +0100
c4e3b2
Subject: OvmfPkg: silence DEBUG_VERBOSE (0x00400000) in
c4e3b2
 QemuVideoDxe/QemuRamfbDxe (RH)
c4e3b2
c4e3b2
Notes about the RHEL-8.3/20200603-ca407c7246bf [edk2-stable202005] ->
c4e3b2
RHEL-8.5/20210520-e1999b264f1f [edk2-stable202105] rebase:
c4e3b2
c4e3b2
- Extend the DSC change to the new OvmfPkg/AmdSev platform, which has been
c4e3b2
  introduced upstream in commit 30d277ed7a82 ("OvmfPkg/Amdsev: Base commit
c4e3b2
  to build encrypted boot specific OVMF", 2020-12-14), for TianoCore#3077.
c4e3b2
c4e3b2
- Remove obsolete commit message tags related to downstream patch
c4e3b2
  management: Message-id, Patchwork-id, O-Subject, Acked-by, From
c4e3b2
  (RHBZ#1846481).
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
- Due to upstream commit 4b04d9d73604 ("OvmfPkg: Don't build in
c4e3b2
  QemuVideoDxe when we have CSM", 2019-06-26), the contexts of
c4e3b2
  "QemuVideoDxe.inf" / "QemuRamfbDxe.inf" have changed in the DSC files.
c4e3b2
  Resolve the conflict manually.
c4e3b2
c4e3b2
Notes about the RHEL-8.0/20180508-ee3198e672e2 ->
c4e3b2
RHEL-8.1/20190308-89910a39dcfd rebase:
c4e3b2
c4e3b2
- Upstream commit 1d25ff51af5c ("OvmfPkg: add QemuRamfbDxe", 2018-06-14)
c4e3b2
  introduced another GOP driver that consumes FrameBufferBltLib, and
c4e3b2
  thereby produces a large number of (mostly useless) debug messages at
c4e3b2
  the DEBUG_VERBOSE level. Extend the patch to suppress those messages in
c4e3b2
  both QemuVideoDxe and QemuRamfbDxe; update the subject accordingly.
c4e3b2
  QemuRamfbDxe itself doesn't log anything at the VERBOSE level (see also
c4e3b2
  the original commit message at the bottom of this downstream patch).
c4e3b2
c4e3b2
Notes about the RHEL-7.6/ovmf-20180508-2.gitee3198e672e2.el7 ->
c4e3b2
RHEL-8.0/20180508-ee3198e672e2 rebase:
c4e3b2
c4e3b2
- reorder the rebase changelog in the commit message so that it reads like
c4e3b2
  a blog: place more recent entries near the top
c4e3b2
- no changes to the patch body
c4e3b2
c4e3b2
Notes about the 20171011-92d07e48907f -> 20180508-ee3198e672e2 rebase:
c4e3b2
c4e3b2
- no changes
c4e3b2
c4e3b2
Bugzilla: 1488247
c4e3b2
c4e3b2
In commit 5b2291f9567a ("OvmfPkg: QemuVideoDxe uses
c4e3b2
MdeModulePkg/FrameBufferLib"), QemuVideoDxe was rebased to
c4e3b2
FrameBufferBltLib.
c4e3b2
c4e3b2
The FrameBufferBltLib instance added in commit b1ca386074bd
c4e3b2
("MdeModulePkg: Add FrameBufferBltLib library instance") logs many
c4e3b2
messages on the VERBOSE level; for example, a normal boot with OVMF can
c4e3b2
produce 500+ "VideoFill" messages, dependent on the progress bar, when the
c4e3b2
VERBOSE bit is set in PcdDebugPrintErrorLevel.
c4e3b2
c4e3b2
QemuVideoDxe itself doesn't log anything at the VERBOSE level, so we lose
c4e3b2
none of its messages this way.
c4e3b2
c4e3b2
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
c4e3b2
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
c4e3b2
(this patch was previously applied as commit 9b0d031dee7e823f6717bab73e422fbc6f0a6c52)
c4e3b2
(cherry picked from commit 9122d5f2e8d8d289064d1e1700cb61964d9931f3)
c4e3b2
(cherry picked from commit 7eb3be1d4ccafc26c11fe5afb95cc12b250ce6f0)
c4e3b2
(cherry picked from commit bd650684712fb840dbcda5d6eaee065bd9e91fa1)
c4e3b2
(cherry picked from commit b06b87f8ffd4fed4ef7eacb13689a9b6d111f850)
c4e3b2
(cherry picked from commit c8c3f893e7c3710afe45c46839e97954871536e4)
c4e3b2
(cherry picked from commit 1355849ad97c1e4a5c430597a377165a5cc118f7)
c4e3b2
---
c4e3b2
 OvmfPkg/AmdSev/AmdSevX64.dsc | 10 ++++++++--
c4e3b2
 OvmfPkg/OvmfPkgIa32.dsc      | 10 ++++++++--
c4e3b2
 OvmfPkg/OvmfPkgIa32X64.dsc   | 10 ++++++++--
c4e3b2
 OvmfPkg/OvmfPkgX64.dsc       | 10 ++++++++--
c4e3b2
 4 files changed, 32 insertions(+), 8 deletions(-)
c4e3b2
c4e3b2
diff --git a/OvmfPkg/AmdSev/AmdSevX64.dsc b/OvmfPkg/AmdSev/AmdSevX64.dsc
c4e3b2
index 6e8defe5c7..568ca369e6 100644
c4e3b2
--- a/OvmfPkg/AmdSev/AmdSevX64.dsc
c4e3b2
+++ b/OvmfPkg/AmdSev/AmdSevX64.dsc
c4e3b2
@@ -747,8 +747,14 @@
c4e3b2
   MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
c4e3b2
   MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
c4e3b2
 
c4e3b2
-  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
c4e3b2
-  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
c4e3b2
+  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
c4e3b2
+    <PcdsFixedAtBuild>
c4e3b2
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
c4e3b2
+  }
c4e3b2
+  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf {
c4e3b2
+    <PcdsFixedAtBuild>
c4e3b2
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
c4e3b2
+  }
c4e3b2
   OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
c4e3b2
 
c4e3b2
   #
c4e3b2
diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc
c4e3b2
index 52cd87f698..52fd057c90 100644
c4e3b2
--- a/OvmfPkg/OvmfPkgIa32.dsc
c4e3b2
+++ b/OvmfPkg/OvmfPkgIa32.dsc
c4e3b2
@@ -842,9 +842,15 @@
c4e3b2
   MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
c4e3b2
 
c4e3b2
 !ifndef $(CSM_ENABLE)
c4e3b2
-  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
c4e3b2
+  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
c4e3b2
+    <PcdsFixedAtBuild>
c4e3b2
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
c4e3b2
+  }
c4e3b2
 !endif
c4e3b2
-  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
c4e3b2
+  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf {
c4e3b2
+    <PcdsFixedAtBuild>
c4e3b2
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
c4e3b2
+  }
c4e3b2
   OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
c4e3b2
 
c4e3b2
   #
c4e3b2
diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc
c4e3b2
index 214195a594..653849cc7a 100644
c4e3b2
--- a/OvmfPkg/OvmfPkgIa32X64.dsc
c4e3b2
+++ b/OvmfPkg/OvmfPkgIa32X64.dsc
c4e3b2
@@ -856,9 +856,15 @@
c4e3b2
   MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
c4e3b2
 
c4e3b2
 !ifndef $(CSM_ENABLE)
c4e3b2
-  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
c4e3b2
+  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
c4e3b2
+    <PcdsFixedAtBuild>
c4e3b2
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
c4e3b2
+  }
c4e3b2
 !endif
c4e3b2
-  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
c4e3b2
+  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf {
c4e3b2
+    <PcdsFixedAtBuild>
c4e3b2
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
c4e3b2
+  }
c4e3b2
   OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
c4e3b2
 
c4e3b2
   #
c4e3b2
diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc
c4e3b2
index 02aad65b00..5275f2502b 100644
c4e3b2
--- a/OvmfPkg/OvmfPkgX64.dsc
c4e3b2
+++ b/OvmfPkg/OvmfPkgX64.dsc
c4e3b2
@@ -854,9 +854,15 @@
c4e3b2
   MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
c4e3b2
 
c4e3b2
 !ifndef $(CSM_ENABLE)
c4e3b2
-  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
c4e3b2
+  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
c4e3b2
+    <PcdsFixedAtBuild>
c4e3b2
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
c4e3b2
+  }
c4e3b2
 !endif
c4e3b2
-  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
c4e3b2
+  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf {
c4e3b2
+    <PcdsFixedAtBuild>
c4e3b2
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
c4e3b2
+  }
c4e3b2
   OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
c4e3b2
 
c4e3b2
   #
c4e3b2
-- 
c4e3b2
2.27.0
c4e3b2