mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 14:32:58 +00:00
1f092caba7
Add comments and revert logic changes in 01_fallback_counting Remove quotes when reading ID value from /etc/os-release Related: rhbz#1650706 blscfg: expand grub_users before passing to grub_normal_add_menu_entry() Resolves: rhbz#1650706 Drop buggy downstream patch "efinet: retransmit if our device is busy" Resolves: rhbz#1649048 Make the menu entry users option argument to be optional Related: rhbz#1652434 10_linux_bls: add missing menu entries options Resolves: rhbz#1652434 Drop "Be more aggro about actually using the *configured* network device." Resolves: rhbz#1654388 Fix menu entry selection based on title Resolves: rhbz#1654936 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
66 lines
2.2 KiB
Diff
66 lines
2.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Peter Jones <pjones@redhat.com>
|
|
Date: Mon, 10 Sep 2018 13:01:24 -0400
|
|
Subject: [PATCH] EFI: more debug output on GOP and UGA probing.
|
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
---
|
|
grub-core/video/efi_gop.c | 8 +++++++-
|
|
grub-core/video/efi_uga.c | 4 ++--
|
|
2 files changed, 9 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/grub-core/video/efi_gop.c b/grub-core/video/efi_gop.c
|
|
index c9e40e8d4e9..be446f8d291 100644
|
|
--- a/grub-core/video/efi_gop.c
|
|
+++ b/grub-core/video/efi_gop.c
|
|
@@ -71,7 +71,10 @@ check_protocol (void)
|
|
handles = grub_efi_locate_handle (GRUB_EFI_BY_PROTOCOL,
|
|
&graphics_output_guid, NULL, &num_handles);
|
|
if (!handles || num_handles == 0)
|
|
- return 0;
|
|
+ {
|
|
+ grub_dprintf ("video", "GOP: no handles\n");
|
|
+ return 0;
|
|
+ }
|
|
|
|
for (i = 0; i < num_handles; i++)
|
|
{
|
|
@@ -81,6 +84,7 @@ check_protocol (void)
|
|
grub_video_gop_iterate (check_protocol_hook, &have_usable_mode);
|
|
if (have_usable_mode)
|
|
{
|
|
+ grub_dprintf ("video", "GOP: found usable mode\n");
|
|
grub_free (handles);
|
|
return 1;
|
|
}
|
|
@@ -89,6 +93,8 @@ check_protocol (void)
|
|
gop = 0;
|
|
gop_handle = 0;
|
|
|
|
+ grub_dprintf ("video", "GOP: no usable mode\n");
|
|
+
|
|
return 0;
|
|
}
|
|
|
|
diff --git a/grub-core/video/efi_uga.c b/grub-core/video/efi_uga.c
|
|
index 97a607c01a5..e74d6c23500 100644
|
|
--- a/grub-core/video/efi_uga.c
|
|
+++ b/grub-core/video/efi_uga.c
|
|
@@ -110,7 +110,7 @@ find_card (grub_pci_device_t dev, grub_pci_id_t pciid, void *data)
|
|
{
|
|
int i;
|
|
|
|
- grub_dprintf ("fb", "Display controller: %d:%d.%d\nDevice id: %x\n",
|
|
+ grub_dprintf ("video", "Display controller: %d:%d.%d\nDevice id: %x\n",
|
|
grub_pci_get_bus (dev), grub_pci_get_device (dev),
|
|
grub_pci_get_function (dev), pciid);
|
|
addr += 8;
|
|
@@ -140,7 +140,7 @@ find_card (grub_pci_device_t dev, grub_pci_id_t pciid, void *data)
|
|
base64 <<= 32;
|
|
base64 |= (old_bar1 & GRUB_PCI_ADDR_MEM_MASK);
|
|
|
|
- grub_dprintf ("fb", "%s(%d): 0x%" PRIxGRUB_UINT64_T "\n",
|
|
+ grub_dprintf ("video", "%s(%d): 0x%" PRIxGRUB_UINT64_T "\n",
|
|
((old_bar1 & GRUB_PCI_ADDR_MEM_PREFETCH) ?
|
|
"VMEM" : "MMIO"), type == GRUB_PCI_ADDR_MEM_TYPE_64 ? i - 1 : i,
|
|
base64);
|