render / rpms / edk2

Forked from rpms/edk2 3 months ago
Clone

Blame 0013-OvmfPkg-silence-DEBUG_VERBOSE-0x00400000-in-QemuVide.patch

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