mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] efi: gop: use screen_base directly instead of shadow buffer
@ 2026-04-13 20:03 Ahmad Fatoum
  2026-04-15  6:39 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2026-04-13 20:03 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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@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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] efi: gop: use screen_base directly instead of shadow buffer
  2026-04-13 20:03 [PATCH] efi: gop: use screen_base directly instead of shadow buffer Ahmad Fatoum
@ 2026-04-15  6:39 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2026-04-15  6:39 UTC (permalink / raw)
  To: barebox, Ahmad Fatoum


On Mon, 13 Apr 2026 22:03:26 +0200, Ahmad Fatoum wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/1] efi: gop: use screen_base directly instead of shadow buffer
      https://git.pengutronix.de/cgit/barebox/commit/?id=0a0f91d20cd6 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-15  6:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-13 20:03 [PATCH] efi: gop: use screen_base directly instead of shadow buffer Ahmad Fatoum
2026-04-15  6:39 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox