CURRENT: EFI boot failure

O. Hartmann ohartman at zedat.fu-berlin.de
Sat Oct 4 06:47:41 UTC 2014


Am Tue, 23 Sep 2014 16:51:08 +0200
Harald Schmalzbauer <h.schmalzbauer at omnilan.de> schrieb:

>  Bezüglich Harald Schmalzbauer's Nachricht vom 23.09.2014 16:28
> (localtime):
> >  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
> 
> Sorry, forget the suggestion, it doesn't work since it leads to CFLAG
> -march="" and the same problem occurs.
> For my case this works:
> --- sys/boot/efi/Makefile.inc.orig      2014-09-23 16:22:46.000000000 +0200
> +++ sys/boot/efi/Makefile.inc   2014-09-23 16:46:30.000000000 +0200
> @@ -2,6 +2,10 @@
>  
>  BINDIR?=       /boot
>  
> +.if ${CPUTYPE} == "core-avx2"
> +CPUTYPE=       core-avx-i
> +.endif
> +
>  .if ${MACHINE_CPUARCH} == "i386"
>  CFLAGS+=        -march=i386
>  .endif
> 
> JFI
> 
> -Harry
> 

Has this problem anyhow seriously been addressed? I run into this very often on several
platforms with HAswell-based CPUs (other systems with IvyBridge or SandyBridge are still
to be migrated to UEFI boot, so I do not have any older architectures at hand to proof
whether this issue is still present or not on Non-AVX2 systems.

If there is no progress so far, would it be well-advised to open a PR?

Regards,
Oliver 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20141004/5221651b/attachment.sig>


More information about the freebsd-current mailing list