From owner-freebsd-current@freebsd.org Wed Jun 5 10:03:06 2019 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 DBA3315A7FAC for ; Wed, 5 Jun 2019 10:03:05 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from dec.sakura.ne.jp (dec.sakura.ne.jp [210.188.226.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5A4374922; Wed, 5 Jun 2019 10:03:02 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from fortune.joker.local (124-18-96-116.dz.commufa.jp [124.18.96.116]) (authenticated bits=0) by dec.sakura.ne.jp (8.15.2/8.15.2/[SAKURA-WEB]/20080708) with ESMTPA id x55A2tJC090828; Wed, 5 Jun 2019 19:02:55 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Wed, 5 Jun 2019 19:02:55 +0900 From: Tomoaki AOKI To: freebsd-current@freebsd.org Cc: imp@bsdimp.com, johalun@freebsd.org Subject: Re: UEFI boot broken in 13? Message-Id: <20190605190255.b1f45507d1744fec1a7f6162@dec.sakura.ne.jp> In-Reply-To: References: <71a0c9f7-0b1f-3757-fc04-4c0d0a1e1085@FreeBSD.org> <20190604212831.360fd1a0c34c9f329e3084fc@dec.sakura.ne.jp> Reply-To: junchoon@dec.sakura.ne.jp Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: C5A4374922 X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [5.22 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[junchoon@dec.sakura.ne.jp]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.01)[cached: dec.sakura.ne.jp]; RECEIVED_SPAMHAUS_PBL(0.00)[116.96.18.124.zen.spamhaus.org : 127.0.0.10]; IP_SCORE(0.38)[ipnet: 210.188.224.0/19(0.60), asn: 9370(1.37), country: JP(-0.05)]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:9370, ipnet:210.188.224.0/19, country:JP]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.47)[0.474,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.97)[0.970,0]; DMARC_NA(0.00)[sakura.ne.jp]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000,0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 05 Jun 2019 10:03:06 -0000 On Tue, 4 Jun 2019 08:58:43 -0600 Warner Losh wrote: > On Tue, Jun 4, 2019 at 8:16 AM Warner Losh wrote: > > > > > > > On Tue, Jun 4, 2019 at 7:11 AM Tomoaki AOKI > > wrote: > > > >> Hi. > >> > >> Try attached patch for stand/efi/boot1/boot1.c. > >> This partially reverts r347193 and works at least for me. > >> > >> Without this, boot1.efi (bootx64.efi) forcibly boot from > >> first physical HDD/SSD, even if forcibly booted from other > >> physical drive via BIOS (UEFI firmware) menu. > >> > >> Remaining parts of > >> https://reviews.freebsd.org/D20513https://reviews.freebsd.org/D20513 and > >> following some commits does not > >> affect. > >> > >> *Hand-crafted reverse patch from commit mail [1]. > >> Reverting whole r347193 is fine, too. > >> > >> [1] > >> https://lists.freebsd.org/pipermail/svn-src-head/2019-May/124677.html > > > > > > I'll take a look. My experience is that even prior to this patch, forcibly > > booting also failed though due to ordering issues... > > > > More testing reveals that the issues prior to r347193 turned out to be > different, and r347193 really did break things. I've opted to fix this in a > slightly different way: > > https://reviews.freebsd.org/D20513 > > Aoki-san, can you please check to see if the above review fixes things for > you as well? Thanks! > > Warner Thanks! Confirms OK for me, and also confirmed committed as r348658 and r348659. Johannes, can you confirm head after r348659 works fine for you, too? > _______________________________________________ > 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