From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=17.171.2.60; helo=ma1-aaemail-dr-lapp01.apple.com; envelope-from=afish@apple.com; receiver=edk2-devel@lists.01.org Received: from ma1-aaemail-dr-lapp01.apple.com (ma1-aaemail-dr-lapp01.apple.com [17.171.2.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 13B18211C608A for ; Fri, 8 Feb 2019 09:36:19 -0800 (PST) Received: from pps.filterd (ma1-aaemail-dr-lapp01.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp01.apple.com (8.16.0.27/8.16.0.27) with SMTP id x18HR9hb016334; Fri, 8 Feb 2019 09:36:18 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=mime-version : content-type : sender : from : subject : date : references : to : in-reply-to : message-id; s=20180706; bh=U92iwCi2X/2hJXzf135BD0ojUZ04+6m0XzlPR/Z4Z+k=; b=GwzfblujnW1YlLem/62J3retW3mdA0UvJcHVEzYFO8cY64dr+HLNJ6nWXtip3raDV/1s /jyKqmp2LXyCu/wLbVv6y0Qs2s6kRoiPWCmFeGaunQ3RVOOdZsNKZRNacTdJMVYd+6g6 6tCsGPUxJUxzbv01XiqLl2BxVV3RWL9ANnUt6y9cdk9vqqz+8WwpzARU/fH0ejE38GFE rF7lJ8OLMphMKP+41a750p7CsJB3hzU/EYO5JBdjfdPanXd8A+a9zPXF16CsXCaU/dWq IDyoQR7RFGXydlp96zMfReQCuW0Ka/fjy1a2i6+A2S/1Eu8dXUTVXw2SEB05hQdttt5V Vw== Received: from mr2-mtap-s02.rno.apple.com (mr2-mtap-s02.rno.apple.com [17.179.226.134]) by ma1-aaemail-dr-lapp01.apple.com with ESMTP id 2qdard86b5-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 08 Feb 2019 09:36:18 -0800 MIME-version: 1.0 Received: from ma1-mmpp-sz10.apple.com (ma1-mmpp-sz10.apple.com [17.171.128.150]) by mr2-mtap-s02.rno.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) with ESMTPS id <0PMM00I8FBKHCJA0@mr2-mtap-s02.rno.apple.com>; Fri, 08 Feb 2019 09:36:17 -0800 (PST) Received: from process_viserion-daemon.ma1-mmpp-sz10.apple.com by ma1-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) id <0PMM00800AVGK400@ma1-mmpp-sz10.apple.com>; Fri, 08 Feb 2019 09:36:16 -0800 (PST) X-Va-A: X-Va-T-CD: 5febf150aa20e758db466e38e329c39e X-Va-E-CD: 411b51dbc8268b20f52033c5f14b3468 X-Va-R-CD: c20450fcecc59a51811312ca6c6a0bc9 X-Va-CD: 0 X-Va-ID: 4a7072d7-ad0c-49ff-9e64-1b026b83e186 X-V-A: X-V-T-CD: 5febf150aa20e758db466e38e329c39e X-V-E-CD: 411b51dbc8268b20f52033c5f14b3468 X-V-R-CD: c20450fcecc59a51811312ca6c6a0bc9 X-V-CD: 0 X-V-ID: 948cc154-4837-41f9-a2eb-33c8ee48fd41 Received: from process_milters-daemon.ma1-mmpp-sz10.apple.com by ma1-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) id <0PMM00D00BIF9K00@ma1-mmpp-sz10.apple.com>; Fri, 08 Feb 2019 09:36:16 -0800 (PST) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-08_09:,, signatures=0 Received: from [17.234.210.198] (unknown [17.234.210.198]) by ma1-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) with ESMTPSA id <0PMM00K4DBKFDI60@ma1-mmpp-sz10.apple.com>; Fri, 08 Feb 2019 09:36:16 -0800 (PST) Sender: afish@apple.com From: Andrew Fish Date: Fri, 08 Feb 2019 09:36:10 -0800 References: To: galla rao , "edk2-devel@lists.01.org" In-reply-to: Message-id: X-Mailer: Apple Mail (2.3445.6.18) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-08_09:, , signatures=0 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: Hello Andrew query on BdsSetMemoryTypeInformationVariable X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 17:36:20 -0000 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT Forwarding to the edk2 list .... > On Feb 8, 2019, at 8:28 AM, galla rao 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