All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Corentin Chary <corentincj@iksaif.net>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Matt Fleming <matt@console-pimps.org>,
	Matthew Garrett <mjg@redhat.com>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-efi@vger.kernel.org,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>,
	Alessandro Crismani <alessandro.crismani@gmail.com>,
	Mikhail Bakhterev <mike.bakhterev@gmail.com>,
	Patrick H <kernel@feystorm.net>,
	Matt Fleming <matt.fleming@intel.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH] samsung-laptop: Disable if CONFIG_EFI=y
Date: Mon, 5 Nov 2012 11:30:31 +0100	[thread overview]
Message-ID: <20121105103031.GA25659@kroah.com> (raw)
In-Reply-To: <CAHR064jwe=diZ9B-D+-SroCW1ZevkRDMosB7uDuc2VXZkFxmdA@mail.gmail.com>

On Mon, Nov 05, 2012 at 09:12:01AM +0000, Corentin Chary wrote:
> On Sun, Nov 4, 2012 at 7:37 PM, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> >> Acked-by: Corentin Chary <corentin.chary@gmail.com>
> >
> > 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.

Odds are, the windows driver just isn't even loaded on the newer
machines, as ACPI works just fine for this.  But, we don't have the
option of shipping custom systems for different laptops like Samsung
does, so we have to probe for this somehow.

Initally we were looking at the DMI strings for specific laptop models,
but that got annoying as we had to keep adding new models.  So we now
just check the memory locations for all Samsung laptops, which was
working fine.

What is the problem if we try to access this memory on UEFI machines?
What is the error that is caused?

Is there any "this_is_a_uefi_system()" type call drivers can make to
just opt-out if that call is true?

thanks,

greg k-h

  reply	other threads:[~2012-11-05 10:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-04 17:35 [PATCH] samsung-laptop: Disable if CONFIG_EFI=y Matt Fleming
2012-11-04 17:35 ` Matt Fleming
2012-11-04 17:44 ` Corentin Chary
     [not found]   ` <CAHR064isMXk8qkqhBJ==9sRRP7xC_j_K5rqXApza-LNkosp5mg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-04 19:37     ` Alan Cox
2012-11-04 19:37       ` Alan Cox
2012-11-05  9:12       ` Corentin Chary
2012-11-05 10:30         ` Greg KH [this message]
2012-11-05 11:50           ` Matt Fleming
2012-11-05 12:07             ` Alan Cox
2012-11-05 12:09               ` Matt Fleming
2012-11-05 12:12       ` Matt Fleming
2012-11-05 12:13   ` Matt Fleming
2012-11-04 17:47 ` Jonathan Nieder
     [not found]   ` <20121104174713.GA28414-fcEM2ccDkbL2nhBuCrrZHw@public.gmane.org>
2012-11-04 20:58     ` Matt Fleming
2012-11-04 20:58       ` Matt Fleming
2012-11-05 10:37 ` Greg KH
2012-11-05 12:09   ` Matt Fleming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121105103031.GA25659@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=alessandro.crismani@gmail.com \
    --cc=corentincj@iksaif.net \
    --cc=hpa@zytor.com \
    --cc=kernel@feystorm.net \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matt.fleming@intel.com \
    --cc=matt@console-pimps.org \
    --cc=mike.bakhterev@gmail.com \
    --cc=mjg@redhat.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.