Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

efifb: BGRT: Add nobgrt option

In some setups restoring the BGRT logo is undesirable, allow passing
video=efifb:nobgrt on the kernel commandline to disable it.

Reported-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Hans de Goede and committed by
Bartlomiej Zolnierkiewicz
cf7389b8 1bafcbf5

+6
+6
drivers/video/fbdev/efifb.c
··· 42 42 u32 colors_important; 43 43 } __packed; 44 44 45 + static bool use_bgrt = true; 45 46 static bool request_mem_succeeded = false; 46 47 static u64 mem_flags = EFI_MEMORY_WC | EFI_MEMORY_UC; 47 48 ··· 160 159 struct bmp_dib_header *dib_header; 161 160 void *bgrt_image = NULL; 162 161 u8 *dst = info->screen_base; 162 + 163 + if (!use_bgrt) 164 + return; 163 165 164 166 if (!bgrt_tab.image_address) { 165 167 pr_info("efifb: No BGRT, not showing boot graphics\n"); ··· 294 290 screen_info.lfb_width = simple_strtoul(this_opt+6, NULL, 0); 295 291 else if (!strcmp(this_opt, "nowc")) 296 292 mem_flags &= ~EFI_MEMORY_WC; 293 + else if (!strcmp(this_opt, "nobgrt")) 294 + use_bgrt = false; 297 295 } 298 296 } 299 297