Re: [PATCH 3/4] x86, efi: Add an efi= kernel command line parameter

Borislav Petkov
2013-06-06T13:26:03Z

On Thu, Jun 06, 2013 at 11:42:24AM +0100, Matt Fleming wrote:
> On Sun, 02 Jun, at 02:56:09PM, Borislav Petkov wrote:
> > +
> > +static int __init parse_efi_cmdline(char *str)
> > +{
> > + if (*str == '=')
> > + str++;
> > + if (!strncmp(str, "1:1_map", 7))
> > + efi_config |= EFI_CFG_MAP11;
> > +
> > + return 0;
> > +}
> > +early_param("efi", parse_efi_cmdline);
>
> This is fine for testing, but I genuinely think that this should be on
> by default once these patches are final.

This would break the Macs, remember?

We could make it be the default though and flip the logic so that users
can fall back to the current ioremap functionality, i.e. boot with
"efi=no_1:1_map".

--
Regards/Gruss,
Boris.

Sent from a fat crate under my desk. Formatting is fine.
--