From owner-freebsd-current@freebsd.org Tue Apr 3 20:05:32 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2498EF7BF6F for ; Tue, 3 Apr 2018 20:05:32 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A658E7065A; Tue, 3 Apr 2018 20:05:31 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by mail-it0-x230.google.com with SMTP id h143-v6so24990021ita.4; Tue, 03 Apr 2018 13:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ylisUzUleR1gShdud3F6mzPR3nDDu039J19uH+RKSns=; b=B/8ZaNDWt4FzOb3LZIBAAIdZWbD5R81X59alikEFsOYwVmyhV9XcI+p/lJbgKmUsRC 7Ip1sbTAib7kaFAQCaxl9pD3brGUzadFAwfweRJot+CKKvhUTR2tr45o3shjuiMVAao4 5OZ2YJb/2asw/6Kouj2tpZYOkGPLAeh6dn4EwQwE+W2dzcBbwCvtlIKMN8smx9vvzyzV 3Bw/S0oAez7YwmFm4AyEp7kl28mDYi+dbTKLpdxi6jWpsyZnWuS23wr64fFihyjJuMCP EGQ1mMn22nAHsnD+tBevMJtS99ACHT57DjfS+L11AAxU+/cT6FNGMAUnMTTgoKnYjbTA GGHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ylisUzUleR1gShdud3F6mzPR3nDDu039J19uH+RKSns=; b=EzKq+u2FSmS4sISpOZLnEE2Jv/GArsLr7NSiSBpIMKB+L7eh9Wcm1s75sgH2GymCfT 4m86TuWAs5ayYNMJH1T+r99OkkNY0k9T0kiPjcp+ZpX2xBbDQ5Ws4k4k8kLMb40vz3R7 w0yGSwnFi0L0psQD9hHVP+3PxFmoCjjzd51mO5pwAyeE65wPofoaHZ9NjN3w5sLm1Avp QuwsrqK71o1qDzEFKOT2avtGOZkk8YO4qOfi79FkV36bTTU0WPOS+xppiJc2N9JqL7oG iB+xK4KQTRNY/vaebXuYGomkFsc95EpN/ZNS5Rgv1ROyXSYRF+cPiexiT5jpv28IsjV1 qw0w== X-Gm-Message-State: ALQs6tCVpdHa/XeFwSW/f6sn5wVZDPNsEGXtFkRSCovVXTB946SnkyXU 3lVG8OVd+75OwKXvdC0SrbPkv+eIXHqnT3wALFBJ X-Google-Smtp-Source: AIpwx4/y7AShihfnGlOYjNyXaILUSrX9wDtW5Rtj5HRn8yqfX09Tc1aa9kN2ImvkXLkpWwaFmyEAsZHEkxwLerxzQBk= X-Received: by 2002:a24:5f51:: with SMTP id r78-v6mr4698360itb.119.1522785930590; Tue, 03 Apr 2018 13:05:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.192.139.243 with HTTP; Tue, 3 Apr 2018 13:05:30 -0700 (PDT) In-Reply-To: References: <5f663141-433c-951d-a350-7369b004415f@alvermark.net> <20180322225644.1480251c4547ce30f3d88de9@dec.sakura.ne.jp> <20180401213831.1535c7511c1d95a258318bc7@dec.sakura.ne.jp> From: Zaphod Beeblebrox Date: Tue, 3 Apr 2018 16:05:30 -0400 Message-ID: Subject: Re: Call for Testing: UEFI Changes To: Kyle Evans Cc: freebsd-current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2018 20:05:32 -0000 I did as you asked. You can see the result at: https://owncloud.towernet.ca/s/6K3pGknCyGTi7du ... but the long and short of it is that even though the loader is printing in the center of the screen (text mode?), it sees the 1920x1080 mode as the "mode 0" ... I even tried "gop set 0" ... which it accepted, but then continuing to boot produced what you see in the video. I think, since it's in the cetner of the screen, that we're looking at 80x25 text... which is ... 800 x 600 -ish? The kernel definately wants graphics again ... but ... I dunno ... is it getting it? Is the 80x25 text mode emulated on a bitmapped screen? On Mon, Apr 2, 2018 at 9:07 PM, Kyle Evans wrote: > On Mon, Apr 2, 2018 at 5:51 PM, Zaphod Beeblebrox > wrote: > > On Sun, Apr 1, 2018 at 7:41 PM, David NewHamlet > > wrote: > >> > >> Fixed in: FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1.iso > >> > >> > >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=176694 > >> > >> On Mon, Apr 2, 2018 at 12:38 AM, Tomoaki AOKI < > junchoon@dec.sakura.ne.jp> > >> wrote: > >> > >> > Confirmed both loader (with boot1) part and efirt.ko part. > >> > Working OK on my ThinkPad420 (with nvidia GPU) at r331864. > >> > > >> > No benefit (VGA resolution) but no new harm (no panic nor silent > >> > reboot). > >> > > >> > *Maybe gracefully falling back to mode 0. > >> > > >> > As I'm on x11/nvidia-driver, completely no test is done with > >> > drm-next. > >> > > >> > One more to mention. > >> > I've cherry-picked r330868, r331241 and r331361 on stable/11 after > >> > r331114, amd64 and works OK as on head. > >> > Additional cherry-picking of r331365 is OK, too. > >> > > >> > Without r330868, my ThinkPad silently reboots within about 10-60 > >> > minutes range, maybe by actual access to UEFI RS. > >> > With r331241 without r331361 causes instant panic on loading efirt.ko. > >> > So all 3 (4) revs should be MFC'ed together. > >> > > >> > Sorry for delay. > >> > > >> > > >> > On Thu, 22 Mar 2018 10:34:33 -0500 > >> > Kyle Evans wrote: > >> > > >> > > On Thu, Mar 22, 2018 at 10:18 AM, Kyle Evans > >> > > wrote: > >> > > > On Thu, Mar 22, 2018 at 10:16 AM, Peter Lei > >> > wrote: > >> > > >> On 3/22/18 8:56 AM, Tomoaki AOKI wrote: > >> > > >>> Hi. > >> > > >>> For problem 2, try reverting r331241 alone. > >> > > >>> This worked for my ThinkPad T420. > >> > > >> > >> > > >> > >> > > >> I also hit this after updating to latest and was about to post > when > >> > > >> I > >> > > >> saw this thread - > >> > > >> > >> > > >> I build efirt into the kernel and it's now doing a panic on boot. > >> > > >> It > >> > > >> appears to be due to this recent addition in dev/efidev/efirt.c > by > >> > r331241: > >> > > >> > >> > > >>> if (!efi_is_in_map(map, efihdr->memory_size / > >> > efihdr->descriptor_size, > >> > > >>> efihdr->descriptor_size, > >> > > >>> (vm_offset_t)efi_runtime->rt_gettime)) > >> > { > >> > > >> > >> > > >> The faulting address is for "efi_runtime->rt_gettime" (and is > still > >> > > >> a > >> > > >> phys addr here). > >> > > >> > >> > > > > >> > > > The following patch [1] (I can't guarantee how long he'll keep it > >> > > > available there) should fix this class of problems. > >> > > > > >> > > > [1] https://people.freebsd.org/~andrew/0001-Enter-into-the- > >> > EFI-environment-before-check-the-GetT.patch > >> > > > >> > > Now committed as of r331361. > >> > > _______________________________________________ > >> > > freebsd-current@freebsd.org mailing list > >> > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > >> > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@ > >> > freebsd.org" > >> > > > >> > > >> > > >> > -- > >> > Tomoaki AOKI > >> > _______________________________________________ > >> > freebsd-current@freebsd.org mailing list > >> > https://lists.freebsd.org/mailman/listinfo/freebsd-current > >> > To unsubscribe, send any mail to > >> > "freebsd-current-unsubscribe@freebsd.org" > >> > > >> _______________________________________________ > >> freebsd-current@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-current > >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@ > freebsd.org" > > > > I've booted that image on my zbook 15. I show in the boot that I can > > deliberately load efirt.ko ... and it doesn't help. I also show that I > can > > "type blind" after the system boots ... so everything but the screen is > > working. > > > > In case you can't quite make it out, I hit right cursor twice (move to > the > > "live cd" choice) and hit enter. Then I type "root" enter and then > "reboot" > > ... > > That is interesting indeed... that's perhaps the polar opposite of > what was being experienced before- it looks like it's setting a higher > resolution but the firmware isn't actually putting it into the higher > resolution. The firmware then lies to us about what resolution it's > actually in, so we tell the kernel the wrong thing. > > You should be able to confirm this, as I recall, by bumping into the > loader prompt and inspecting the output of `gop get`. That should > report a higher resolution than it's actually in. > > > https://youtu.be/tlmaVJ-3aq0 > > > > (The rock sound track is just free audio to mask a barking dog and a > radio > > in the background.) > > > > This was a most enjoyable soundtrack. >