[PATCH] efi: gop: use screen_base directly instead of shadow buffer
Ahmad Fatoum
a.fatoum at barebox.org
Mon Apr 13 13:03:26 PDT 2026
The EFI GOP protocol operates on the hardware framebuffer and calls
fb_damage() to notify the driver of updates. Using fb_get_screen_base()
would return the shadow buffer when enabled, causing GOP writes to go
into the shadow instead of the actual framebuffer.
Do as the simplefb fixup does and use the screen_base.
Fixes: d040f49ad0b3 ("efi: loader: protocol: add graphical output protocol support")
Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
efi/loader/protocols/gop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/efi/loader/protocols/gop.c b/efi/loader/protocols/gop.c
index 2d87acc9bcc7..5bceb3f68f0f 100644
--- a/efi/loader/protocols/gop.c
+++ b/efi/loader/protocols/gop.c
@@ -558,7 +558,7 @@ static efi_status_t efi_gop_register(void *data)
pixel_information->blue_mask = 0x001f;
}
gopobj->info.pixels_per_scan_line = col;
- gopobj->fb = fb_get_screen_base(fbi);
+ gopobj->fb = fbi->screen_base;
gopobj->fbi = fbi;
return EFI_SUCCESS;
--
2.47.3
More information about the barebox
mailing list