From nobody Mon Sep 06 18:44:54 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AE2F517BA515 for ; Mon, 6 Sep 2021 18:44:56 +0000 (UTC) (envelope-from gardask@gmail.com) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H3HQ04GjWz3F1S for ; Mon, 6 Sep 2021 18:44:56 +0000 (UTC) (envelope-from gardask@gmail.com) Received: by mail-ed1-x52c.google.com with SMTP id v5so10581760edc.2 for ; Mon, 06 Sep 2021 11:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=1GlYtpjmi1KgXWvWa56C6NK1K0HXzVYyR8lXQA2aFi0=; b=gl1Yrmi+FijzFzCXfYfZgOhz9CdurODqceLeOwrJUuQ5Y4j85LEvC/ahrbaRmHQ1UD yhBQ//rXw0aLKHp6M8W9yASQ+v+1kPZ9KxN/ItSgdcIJDKcQTafw8RxaL0z4nJWg99eQ CPmCHjs/k/2R5u1ksweTdwXCpeCGF4lp2J8a3tBIMPLlSQCgYxjFLQd7BnqHSwwxY1L1 ExWkxrIn4RxfasAdgkp+QdnFt7oSklXl+IqkTtvIz0m28qAKtDtYMKf2dlJbugWopUgE XUwiEL45feC9PMK7pLRKDYmcPPXz4DrgD5h42yj4Zp3D5os88IIC3sw28hrOfMub/xnL /kmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=1GlYtpjmi1KgXWvWa56C6NK1K0HXzVYyR8lXQA2aFi0=; b=fM+SqQZSSihIW+7j5q6XzTe0OPnJmsCtEgpdauHlfq7gzEfq7FIg72+p5UFiv99uDF MctdHZXa2a+5m00tmUhZg+RC2iaC3puRvvFsvuuM5nOKsIOHeIkZ72jdGsdMIEp0d7nB xQpBoLxA7ru6WwXMOGzqsyFidzlOSe/f6RA/H8MC7SihBu3kwbcpXUFpcjHHBqvHcR6C qWMJBDPNvDpn+qPLQWCMc+pZG1xnMyiGrp+wwRXtWtnwaQKw+jTkTAp4dqyiPlXutfn2 GVIywepSmUzDckBpIeLLuLsdX47AtzUC5u+GIFE/fXa2Nk4cw1SU4k/34rMl7jiiKwhu QnXQ== X-Gm-Message-State: AOAM531OShMqBDMEq4RthodgfAOYfQwc1UCSxsJfi4TWQ6THfNhDlqRs oXHHARMyF7tgJe5v7jG6UROb4wTAYr4= X-Google-Smtp-Source: ABdhPJxr4eHByulQ8eKJmWNMZpD19Ff+x7eOLD4txBttFeHkUB3AjEkpUpO0xZyv7KdS4BkzOsgMdQ== X-Received: by 2002:aa7:c790:: with SMTP id n16mr14788093eds.223.1630953895285; Mon, 06 Sep 2021 11:44:55 -0700 (PDT) Received: from [10.0.30.5] ([31.47.99.1]) by smtp.gmail.com with ESMTPSA id s23sm5071838eds.12.2021.09.06.11.44.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Sep 2021 11:44:54 -0700 (PDT) Subject: Re: EFI/loader show garbage in console when set to some resolution in loader.conf To: Toomas Soome Cc: freebsd-current@freebsd.org References: <31B6298E-7B3D-45FD-87CB-E541C019C5F7@me.com> From: Karel Gardas Message-ID: Date: Mon, 6 Sep 2021 20:44:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 In-Reply-To: <31B6298E-7B3D-45FD-87CB-E541C019C5F7@me.com> Content-Type: multipart/alternative; boundary="------------644B97A551094B7E0B15F0C2" Content-Language: en-US X-Rspamd-Queue-Id: 4H3HQ04GjWz3F1S X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y This is a multi-part message in MIME format. --------------644B97A551094B7E0B15F0C2 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit On 9/6/21 6:59 PM, Toomas Soome wrote: > > >> On 6. Sep 2021, at 19:44, Karel Gardas > > wrote: >> >> Hello, >> >> I'm attempting to set EFI console resolution in loader to 1920x1920. >> This is working fine on all 3 tested* combinations when interrupting >> loader with '3' key and then >> issueing 'gop set 11' command and then 'boot' command. >> >> However I'd like to make that permanent and here issue comes. I've >> tried both: >> >> - edit /boot/loader.conf by adding >>  'exec="gop set 11"' >> >> - edit /boot/loader.conf by adding >>  'efi_max_resolution="1920x1920"' >> >> neither of those works on neither of 3 tested combinations where >> tested combinations are: > > if you have this setting, what does gop get report? With the versions > listed below, was the loader in ESP updated too? Good question. I'm not entirely sure if my 13.x installation is not update from 12.x. It probably is. IIRC I followed the update procedure recommended, but certainly 13.0 -> 13.0-p4 is just `fetch` and `install` matter. If you like me to update ESP bootloader, I'm happy to follow your instructions how to do that. Anyway, my 14.0-CURRENT is fresh install to separate drive in an attempt to duplicate issue also on current to report it here. So gop get reports this (manually rewritten by hand): - FreeBSD 14.0 - current: EDID 1920x1920 1920x1920 1920x1200 1920x1080 1600x1200 1600x900 1280x1024 1280x960 1280x720 mode 4: 1024x768x32, stride=1024   frame buffer: address=d0000000, size=300000   color mark: R=00ff0000, G=0000ff00, B=000000ff - FreeBSD 13.0-p4: EDID 1920x1920 1920x1920 1920x1200 1920x1080 1600x1200 1600x900 1280x1024 1280x960 1280x720 mode 4: 1024x768x32, stride 1024   frame buffer: address=d0000000, size 300000   color mark: R00ff0000, G=0000ff00, B000000ff > >> >> (1) 13.0 release >> (2) 13.0-p4 (stable) >> (3) 14.0 snapshot from 2.9. >> >> The behavior is still the same. Screen blanks (like it would do gop >> set 11), then switches to text mode to show loader UI and when kernel >> is loaded it correctly shows that efi resolution is 1920x1920 but >> then when kernels boot, it produce just garbage to the console like >> loader and kernel resolution would be off >> by some unknown number... >> >> Is this is known issue, is there a known workaround for it? Or shall >> I report it properly to bugzilla? >> >> Thanks! >> Karel >> > > what you get from: dmesg | grep efifb > - FreebSD 14.0-current: VT(efifb): resolution 1920x1920 - FreeBSD 13.0-p4: VT(efifb): resolution 1920x1920 Thanks, Karel --------------644B97A551094B7E0B15F0C2--