public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Yao, Jiewen" <jiewen.yao@intel.com>
To: Laszlo Ersek <lersek@redhat.com>
Cc: "Ni, Ruiyu" <ruiyu.ni@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	"Dong, Eric" <eric.dong@intel.com>
Subject: Re: [PATCH] UefiCpuPkg/SmmCpu: Block SMM read-out only when static paging is used
Date: Thu, 8 Nov 2018 06:16:11 +0000	[thread overview]
Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503F3DADED@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <ab1ad449-1a03-2901-93d7-bf01af24901e@redhat.com>

Yeah, there is some good resource on the web.

ACPI spec defined APEI for error handling.
https://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf

Below ppt introduced basic info on memory technology such as spare or mirror.
ftp://ftp.hp.com/pub/c-products/servers/options/c00256943.pdf

Below ppt introduced basic info on RAS/HotPlug in Linux.
https://events.static.linuxfound.org/sites/events/files/lcjp13_chen.pdf
https://events.static.linuxfound.org/sites/events/files/lcjp13_ishimatsu.pdf

Put all things together: when memory error happens, a platform may generate SMI or SCI redirect to SMI.
Then SMI code may choose to analyze, recovery, or backup DIMM for OS memory. As such, RAS SMI handler may need access OS memory, and/or interactive with OS handler via ASL code.

Thank you
Yao Jiewen

> -----Original Message-----
> From: Laszlo Ersek [mailto:lersek@redhat.com]
> Sent: Wednesday, November 7, 2018 9:37 PM
> To: Yao, Jiewen <jiewen.yao@intel.com>
> Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; edk2-devel@lists.01.org; Dong, Eric
> <eric.dong@intel.com>
> Subject: Re: [PATCH] UefiCpuPkg/SmmCpu: Block SMM read-out only when
> static paging is used
> 
> On 11/07/18 09:27, Yao, Jiewen wrote:
> > If Static paging is not used, then the SMM uses dynamic paging.
> >
> > Here dynamic paging means the page fault request on-demand.
> >
> > 2 special examples here:
> > 1) above 4G MMIO. By default, SMM only setup paging table for 4G
> memory. If MMIO above 4G, then SMM need use #PF handler to grant MMIO
> access.
> > 2) server RAS. By default, SMM only setup paging table for SMM
> communication buffer. For server RAS, memory hotplug may request direct
> OS memory access. If so, we also rely on #PF handler to grant OS access.
> >
> > This patch fixed the second issue in the second case.
> 
> This is very interesting -- if you have a bit of time, can you please
> describe in more detail what "For server RAS, memory hotplug may request
> direct OS memory access" means? What agents take what steps?
> 
> (I don't mean to hold this patch -- I've given my A-b, so this is for my
> own education only. Although, adding this very useful info to the commit
> message, or at least to the associated BZ, would be extremely useful.)
> 
> Thanks!
> Laszlo


      reply	other threads:[~2018-11-08  6:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-06  2:59 [PATCH] UefiCpuPkg/SmmCpu: Block SMM read-out only when static paging is used Ruiyu Ni
2018-11-06 16:13 ` Laszlo Ersek
2018-11-06 22:44   ` Yao, Jiewen
2018-11-07  8:27     ` Yao, Jiewen
2018-11-07 13:36       ` Laszlo Ersek
2018-11-08  6:16         ` Yao, Jiewen [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-list 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=74D8A39837DF1E4DA445A8C0B3885C503F3DADED@shsmsx102.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /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