linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: limp <johnkyr83@hotmail.com>
Cc: linux-acpi@vger.kernel.org
Subject: Re: Necessity of SMM/SMI use on ACPI x86 systems
Date: Mon, 4 Apr 2011 14:53:39 +0100	[thread overview]
Message-ID: <20110404135338.GA17898@srcf.ucam.org> (raw)
In-Reply-To: <SNT111-DS15AC3C0257159ED491332BA7A30@phx.gbl>

On Mon, Apr 04, 2011 at 02:41:45PM +0100, limp wrote:
> Thanks for the reply Matthew,
> 
> > It's a turing-complete language with full access to the hardware, so 
> > there's no reason why you can't entirely eliminate SMIs. The usual 
> > reason not to would be to retain commonality of code for non-ACPI 
> > environments like the setup screen.
> 
> So, there is no case that SMIs can be irreplaceable? For example, when you
> go to S5 I know from coreboot developers that you need to disable bus
> mastering on all devices or the machine will not power off. Since the OS
> does not know this, and neither does acpi, the S5 sleep command will cause
> an SMI that disables BM and then goes to S5.

I don't think there's any reason you couldn't do that in the _GTS 
method.

> Furthermore, is ACPI AML BIOS code interruptible or not? 
> That is, what happens if an interrupt occurs during ACPI code execution? 
> Will it be pended and get served after the completion of ACPI code
> execution? 

Depends on whether we're interruptible or not at that point. Interrupts 
will be disabled at certain points.

> Furthermore, can a SMI interrupt ACPI code or not? 

It can.

> One last question is regarding the location in memory of ACPI tables. Are
> they written to standard RAM or to a specially protected RAM similar to
> SMRAM? How ACPI tables can prevent the OS from corrupting them?

RAM, but in an e820 region that indicates to the OS that it's not 
available for normal use. There's no protection from the OS.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

      reply	other threads:[~2011-04-04 13:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-03 11:40 Necessity of SMM/SMI use on ACPI x86 systems limp
2011-04-03 15:34 ` Matthew Garrett
2011-04-04 13:41   ` limp
2011-04-04 13:53     ` Matthew Garrett [this message]

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=20110404135338.GA17898@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=johnkyr83@hotmail.com \
    --cc=linux-acpi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).