NetBSD Problem Report #57541

From www@netbsd.org  Mon Jul 24 07:47:58 2023
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 15AF41A923D
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 24 Jul 2023 07:47:58 +0000 (UTC)
Message-Id: <20230724074727.318AD1A923E@mollari.NetBSD.org>
Date: Mon, 24 Jul 2023 07:47:27 +0000 (UTC)
From: rokuyama.rk@gmail.com
Reply-To: rokuyama.rk@gmail.com
To: gnats-bugs@NetBSD.org
Subject: MI/x86 efiboot: gop command confuses raster console output
X-Send-Pr-Version: www-1.0

>Number:         57541
>Category:       misc
>Synopsis:       MI/x86 efiboot: gop command confuses raster console output
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 24 07:50:00 +0000 2023
>Originator:     Rin Okuyama
>Release:        10.99.3 and release branches
>Organization:
Internet Initiative Japan Inc.
>Environment:
NetBSD netbsd 10.99.3 NetBSD 10.99.3 (AMD64_NET_MPSAFE) #1: Thu May 25 19:17:12 JST 2023  rin@latipes:/build/src/sys/arch/amd64/compile/AMD64_NET_MPSAFE amd64 x86_64
>Description:
For x86 and MI (aarch64 at least) efiboot, raster console output (by
SimpleTextOutputProtocol) is corrupted by changing resolution with
gop command. Output to console apparently does not catch up with
resolution change, which results in:

- part of text is not displayed
- system freezes after some invisible output (due to out-of-bounds
  write to framebuffer?)
>How-To-Repeat:
(1) Boot x86 or aarch64 machines with UEFI and raster console.
(2) Drop to booter prompt and change resolution by gop command
    (to small resolution typically).
(3) Some output to raster console.
>Fix:
Not known.

At a glance of other EFI booters with GOP support (FreeBSD and
GRUB), they seem to use their own raster console routines instead
of SimpleTextOutputProtocol, but it seems too much for me.

A trivial workaround is:
(a) Let gop command just select resolution mode.
(b) Do real resolution change just before jump to kernel.

This works just fine, except that user cannot confirm appearance
of console in efiboot...

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.