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

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