From b95abfbaeaa6bd3f628636f990ea1b0ddfde1b45 Mon Sep 17 00:00:00 2001 From: Miroslav Rezanina Date: Tue, 21 Feb 2023 00:24:30 -0500 Subject: [PATCH] * Tue Feb 21 2023 Miroslav Rezanina - 20221207gitfff6d81270b5-7 - edk2-Revert-MdeModulePkg-TerminalDxe-add-other-text-resol.patch [bz#2162307] - Resolves: bz#2162307 (Broken GRUB output on a serial console) --- ...Pkg-TerminalDxe-add-other-text-resol.patch | 72 +++++++++++++++++++ edk2.spec | 9 ++- 2 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 edk2-Revert-MdeModulePkg-TerminalDxe-add-other-text-resol.patch diff --git a/edk2-Revert-MdeModulePkg-TerminalDxe-add-other-text-resol.patch b/edk2-Revert-MdeModulePkg-TerminalDxe-add-other-text-resol.patch new file mode 100644 index 0000000..2cd7a0f --- /dev/null +++ b/edk2-Revert-MdeModulePkg-TerminalDxe-add-other-text-resol.patch @@ -0,0 +1,72 @@ +From ca0c903fb6d028d679e7afef22d70914ad920212 Mon Sep 17 00:00:00 2001 +From: Gerd Hoffmann +Date: Tue, 14 Feb 2023 12:48:06 +0100 +Subject: [PATCH] Revert "MdeModulePkg: TerminalDxe: add other text resolutions + (RHEL only)" + +RH-Author: Gerd Hoffmann +RH-MergeRequest: 28: Revert "MdeModulePkg: TerminalDxe: add other text resolutions (RHEL only)" +RH-Bugzilla: 2162307 +RH-Acked-by: Miroslav Rezanina +RH-Commit: [1/1] aa3432ccf8e01b9e9058fe82a6a22c28137b8b4c (kraxel/centos-edk2) + +This reverts commit cef6b69ea8f009aeba50b2f4b69889f9500fa585. +--- + .../Universal/Console/TerminalDxe/Terminal.c | 41 ++----------------- + 1 file changed, 3 insertions(+), 38 deletions(-) + +diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c +index dfd9c96773..e2d779c783 100644 +--- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c ++++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c +@@ -112,44 +112,9 @@ TERMINAL_DEV mTerminalDevTemplate = { + }; + + TERMINAL_CONSOLE_MODE_DATA mTerminalConsoleModeData[] = { +- { 80, 25 }, // from graphics resolution 640 x 480 +- { 80, 50 }, // from graphics resolution 640 x 960 +- { 100, 25 }, // from graphics resolution 800 x 480 +- { 100, 31 }, // from graphics resolution 800 x 600 +- { 104, 32 }, // from graphics resolution 832 x 624 +- { 120, 33 }, // from graphics resolution 960 x 640 +- { 128, 31 }, // from graphics resolution 1024 x 600 +- { 128, 40 }, // from graphics resolution 1024 x 768 +- { 144, 45 }, // from graphics resolution 1152 x 864 +- { 144, 45 }, // from graphics resolution 1152 x 870 +- { 160, 37 }, // from graphics resolution 1280 x 720 +- { 160, 40 }, // from graphics resolution 1280 x 760 +- { 160, 40 }, // from graphics resolution 1280 x 768 +- { 160, 42 }, // from graphics resolution 1280 x 800 +- { 160, 50 }, // from graphics resolution 1280 x 960 +- { 160, 53 }, // from graphics resolution 1280 x 1024 +- { 170, 40 }, // from graphics resolution 1360 x 768 +- { 170, 40 }, // from graphics resolution 1366 x 768 +- { 175, 55 }, // from graphics resolution 1400 x 1050 +- { 180, 47 }, // from graphics resolution 1440 x 900 +- { 200, 47 }, // from graphics resolution 1600 x 900 +- { 200, 63 }, // from graphics resolution 1600 x 1200 +- { 210, 55 }, // from graphics resolution 1680 x 1050 +- { 240, 56 }, // from graphics resolution 1920 x 1080 +- { 240, 63 }, // from graphics resolution 1920 x 1200 +- { 240, 75 }, // from graphics resolution 1920 x 1440 +- { 250, 105 }, // from graphics resolution 2000 x 2000 +- { 256, 80 }, // from graphics resolution 2048 x 1536 +- { 256, 107 }, // from graphics resolution 2048 x 2048 +- { 320, 75 }, // from graphics resolution 2560 x 1440 +- { 320, 84 }, // from graphics resolution 2560 x 1600 +- { 320, 107 }, // from graphics resolution 2560 x 2048 +- { 350, 110 }, // from graphics resolution 2800 x 2100 +- { 400, 126 }, // from graphics resolution 3200 x 2400 +- { 480, 113 }, // from graphics resolution 3840 x 2160 +- { 512, 113 }, // from graphics resolution 4096 x 2160 +- { 960, 227 }, // from graphics resolution 7680 x 4320 +- { 1024, 227 }, // from graphics resolution 8192 x 4320 ++ { 80, 25 }, ++ { 80, 50 }, ++ { 100, 31 }, + // + // New modes can be added here. + // +-- +2.31.1 + diff --git a/edk2.spec b/edk2.spec index b8dd571..6ecfac6 100644 --- a/edk2.spec +++ b/edk2.spec @@ -16,7 +16,7 @@ ExclusiveArch: x86_64 aarch64 Name: edk2 Version: %{GITDATE}git%{GITCOMMIT} -Release: 6%{?dist} +Release: 7%{?dist} Summary: UEFI firmware for 64-bit virtual machines License: BSD-2-Clause-Patent and OpenSSL and MIT URL: http://www.tianocore.org @@ -84,6 +84,8 @@ Patch37: edk2-Revert-ArmVirtPkg-ArmVirtQemu-enable-initial-ID-map-.patch # For bz#2164565 - CVE-2023-0215 edk2: openssl: use-after-free following BIO_new_NDEF [rhel-9] # For bz#2164583 - CVE-2022-4450 edk2: openssl: double free after calling PEM_read_bio_ex [rhel-9] Patch38: edk2-rh-openssl-add-crypto-bn-rsa_sup_mul.c-to-file-list.patch +# For bz#2162307 - Broken GRUB output on a serial console +Patch39: edk2-Revert-MdeModulePkg-TerminalDxe-add-other-text-resol.patch # python3-devel and libuuid-devel are required for building tools. @@ -389,6 +391,11 @@ install -m 0644 \ %changelog +* Tue Feb 21 2023 Miroslav Rezanina - 20221207gitfff6d81270b5-7 +- edk2-Revert-MdeModulePkg-TerminalDxe-add-other-text-resol.patch [bz#2162307] +- Resolves: bz#2162307 + (Broken GRUB output on a serial console) + * Mon Feb 13 2023 Miroslav Rezanina - 20221207gitfff6d81270b5-6 - edk2-update-build-script-rhel-only.patch [bz#2168046] - edk2-update-build-config-rhel-only.patch [bz#2168046]