From owner-freebsd-current@FreeBSD.ORG Tue Sep 23 15:00:35 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C3E6941E; Tue, 23 Sep 2014 15:00:35 +0000 (UTC) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (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 A2B21A02; Tue, 23 Sep 2014 15:00:35 +0000 (UTC) Received: from comporellon.tachypleus.net (polaris.tachypleus.net [75.101.50.44]) (authenticated bits=0) by c.mail.sonic.net (8.14.9/8.14.9) with ESMTP id s8NF0VxG000893 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 23 Sep 2014 08:00:32 -0700 Message-ID: <54218B0F.20707@freebsd.org> Date: Tue, 23 Sep 2014 08:00:31 -0700 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Harald Schmalzbauer , "O. Hartmann" Subject: Re: CURRENT: EFI boot failure References: <20140916020541.03c18d04.ohartman@zedat.fu-berlin.de> <54178607.1060305@freebsd.org> <541786BE.6010105@freebsd.org> <20140916075121.29989a53.ohartman@zedat.fu-berlin.de> <5417E20D.8070607@freebsd.org> <20140916230348.189e80cd.ohartman@zedat.fu-berlin.de> <5418B8C3.7040406@FreeBSD.org> <20140919152207.0473e213.ohartman@zedat.fu-berlin.de> <542183A6.7060802@omnilan.de> In-Reply-To: <542183A6.7060802@omnilan.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Sonic-CAuth: UmFuZG9tSVYUGJmbG/M7QDx7t/346o+G2QFDP9MS6wG8nlnoaxfyoWm4jLU0gv4bT3uABuSWyRUWGznSLG0dpFOjTdYbtKrcVgAln9Rd16I= X-Sonic-ID: C;7lYgXTJD5BGoFTZXoK8kYw== M;4r6RXTJD5BGoFTZXoK8kYw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd Cc: FreeBSD Current , Ed Maste , Allan Jude , Andriy Gapon X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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, 23 Sep 2014 15:00:35 -0000 Could you try adding -mno-avx2 to /sys/boot/amd64/Makefile.inc line 9? -Nathan On 09/23/14 07:28, Harald Schmalzbauer wrote: > Bezüglich O. Hartmann's Nachricht vom 19.09.2014 15:22 (localtime): >> … >> The problem I reported about in the first place is triggered by a faulty loader.efi that >> arises, when optimisation level is -O3. -O2 works fine. > I can confirm that this problem also shows up when using > 'CPUTYPE?=core-avx2' > Setting CPUTYPE to core-avx-i doesnt ehibit the problem. > > I could narrow down the cause to libefi.a (sys/boot/efi). > But I don't understand the things going on there, so no clue how to fix > besides maybe > > --- sys/boot/efi/Makefile.inc.orig 2014-09-23 16:22:46.000000000 +0200 > +++ sys/boot/efi/Makefile.inc 2014-09-23 16:25:16.000000000 +0200 > @@ -2,6 +2,10 @@ > > BINDIR?= /boot > > +.ifdef CPUTYPE > +.undef CPUTYPE > +.endif > + > .if ${MACHINE_CPUARCH} == "i386" > CFLAGS+= -march=i386 > .endif > > -Harry >