render / rpms / edk2

Forked from rpms/edk2 2 months ago
Clone

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

82dd91
From 1355849ad97c1e4a5c430597a377165a5cc118f7 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
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
Message-id: <20171120235748.29669-6-pbonzini@redhat.com>
cc9195
Patchwork-id: 77761
cc9195
O-Subject:  [PATCH 5/7] OvmfPkg: silence EFI_D_VERBOSE (0x00400000) in
cc9195
	QemuVideoDxe (RH only)
cc9195
Bugzilla: 1488247
cc9195
Acked-by: Laszlo Ersek <lersek@redhat.com>
cc9195
Acked-by: Thomas Huth <thuth@redhat.com>
cc9195
cc9195
From: Laszlo Ersek <lersek@redhat.com>
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)
cc9195
---
fcd20d
 OvmfPkg/OvmfPkgIa32.dsc    | 10 ++++++++--
fcd20d
 OvmfPkg/OvmfPkgIa32X64.dsc | 10 ++++++++--
fcd20d
 OvmfPkg/OvmfPkgX64.dsc     | 10 ++++++++--
fcd20d
 3 files changed, 24 insertions(+), 6 deletions(-)
cc9195
cc9195
diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc
82dd91
index 765ffff312..f5c6cceb4f 100644
cc9195
--- a/OvmfPkg/OvmfPkgIa32.dsc
cc9195
+++ b/OvmfPkg/OvmfPkgIa32.dsc
82dd91
@@ -811,9 +811,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
82dd91
index 277297a964..c1e52b0acd 100644
cc9195
--- a/OvmfPkg/OvmfPkgIa32X64.dsc
cc9195
+++ b/OvmfPkg/OvmfPkgIa32X64.dsc
82dd91
@@ -825,9 +825,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
82dd91
index 5c1597fe3c..e65165b9f0 100644
cc9195
--- a/OvmfPkg/OvmfPkgX64.dsc
cc9195
+++ b/OvmfPkg/OvmfPkgX64.dsc
82dd91
@@ -821,9 +821,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
-- 
fcd20d
2.18.1
cc9195