Re: [PATCH] samsung-laptop: Disable if CONFIG_EFI=y

From: Corentin Chary
Date: Mon Nov 05 2012 - 04:11:58 EST


On Sun, Nov 4, 2012 at 7:37 PM, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
>> Acked-by: Corentin Chary <corentin.chary@xxxxxxxxx>
>
> This is totally bogus and prevents users build a kernel which can work in
> either mode. As such its a regression.

Arg.. Sorry for that, I didn't realized that CONFIG_EFI=y was not
something rare these days.

> Do the detection check at runtime. If it was booted via EFI then don't
> grovel in places you shouldn't. Indeed its possible EFI should reserve
> those memory regions ?

I wonder how the windows driver works in this case.. Maybe they use
something completly different, and the SABI interface is still there
because nobody removed/disabled it ? In this case it's probably not a
good idea to use it on these machines since the implementation is
likely to be completly broken.

--
Corentin Chary
http://xf.iksaif.net
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/