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

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