public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Andrew Fish <afish@apple.com>
To: galla rao <galla.rao80@gmail.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: Hello Andrew query on BdsSetMemoryTypeInformationVariable
Date: Fri, 08 Feb 2019 09:36:10 -0800	[thread overview]
Message-ID: <D71FCCD7-DF90-4666-B9C5-11A0C04F38D0@apple.com> (raw)
In-Reply-To: <CAC=A7_D78Ld3J7t8HN5ha3U72dOB5H4GUkpRGt9kODChH8QH3g@mail.gmail.com>

Forwarding to the edk2 list ....

> On Feb 8, 2019, at 8:28 AM, galla rao <galla.rao80@gmail.com> wrote:
> 
> Hi Andrew,
> 
> Am sorry for direct message!
>  
> There is a function BdsSetMemoryTypeInformationVariable which causes a reset 
> when i enabled Secureboot related drivers
> 
> Any clue why this function is added in EDK2?
> 

Yea it writes a variable that records how many pages of each memory type are used. This variable is read in PEI and used to pass a HOB into the DXE Core. The DXE Core uses these memory buckets to preallocate ranges for each memory type. This scheme prevents memory fragmentation and makes sure the runtime memory regions are in the same location when the system does an S4 resume from disk. 


> is this a serious error, making the PcdResetOnMemoryTypeInformationChange to FALSE will resolve and boots to OS
> 

I think the idea behind that reboot, is the memory map could be different on the next boot and if that was an S4 the S4 could fail. 

Thanks,

Andrew Fish


> shed some knowledge if you are aware of this feature
> 
> Thanks & Regards
> Galla



       reply	other threads:[~2019-02-08 17:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAC=A7_D78Ld3J7t8HN5ha3U72dOB5H4GUkpRGt9kODChH8QH3g@mail.gmail.com>
2019-02-08 17:36 ` Andrew Fish [this message]
2019-02-08 18:00   ` Hello Andrew query on BdsSetMemoryTypeInformationVariable Kinney, Michael D

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=D71FCCD7-DF90-4666-B9C5-11A0C04F38D0@apple.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