[tianocore/edk2] b347a2: NetworkPkg: Avoid the indefinite wait case in Http...

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: b347a22aecbfac9aac47831fee9a30aa810d6d0b
  
https://github.com/tianocore/edk2/commit/b347a22aecbfac9aac47831fee9a30aa810d6d0b
  Author: Jiaxin Wu 
  Date:   2016-04-28 (Thu, 28 Apr 2016)

  Changed paths:
M NetworkPkg/HttpDxe/HttpImpl.c
M NetworkPkg/HttpDxe/HttpProto.c
M NetworkPkg/HttpDxe/HttpProto.h

  Log Message:
  ---
  NetworkPkg: Avoid the indefinite wait case in HttpDxe

Need the timer check to avoid the indefinite wait case
in HttpDxe driver
A.HTTP receive Header process in HttpTcpReceiveHeader();
B.HTTP receive Body process in HttpTcpReceiveBody();

Cc: Hegde Nagaraj P 
Cc: El-Haj-Mahmoud Samer 
Cc: Ye Ting 
Cc: Fu Siyuan 
Cc: Zhang Lubo 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu 
Reviewed-by: Hegde Nagaraj P 
Reviewed-by: Fu Siyuan 


  Commit: 59844e126614fc8275aab083fafa5818cde0901c
  
https://github.com/tianocore/edk2/commit/59844e126614fc8275aab083fafa5818cde0901c
  Author: Jiaxin Wu 
  Date:   2016-04-28 (Thu, 28 Apr 2016)

  Changed paths:
M NetworkPkg/HttpDxe/HttpProto.c

  Log Message:
  ---
  NetworkPkg: Fix incorrect buffer free in HttpDxe

FragmentBuffer of each TcpWrap in HttpDxe should not be
freed in HttpTcpTokenCleanup(). This buffer points to
HttpMsg body actually, which is the responsibility of the
caller to allocate a buffer for Body.

Cc: Ye Ting 
Cc: Fu Siyuan 
Cc: Zhang Lubo 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu 
Reviewed-by: Ye Ting 


Compare: https://github.com/tianocore/edk2/compare/467d5f6b30bc...59844e126614--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits


[tianocore/edk2] 058196: MdeModulePkg: PiDxeS3BootScriptLib: honor PcdAcpiS...

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 058196bbb3451a1a342ca9e8679b3c3218b28538
  
https://github.com/tianocore/edk2/commit/058196bbb3451a1a342ca9e8679b3c3218b28538
  Author: Laszlo Ersek 
  Date:   2016-04-28 (Thu, 28 Apr 2016)

  Changed paths:
M MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
M MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf

  Log Message:
  ---
  MdeModulePkg: PiDxeS3BootScriptLib: honor PcdAcpiS3Enable

In the edk2 tree, there are currently four drivers that consume
PcdAcpiS3Enable:

  IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3SaveDxe.inf
  MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
  MdeModulePkg/Universal/Acpi/SmmS3SaveState/SmmS3SaveState.inf

>From these, AcpiS3SaveDxe is the only one that isn't also a client of the
S3BootScriptLib class; all the others (BootScriptExecutorDxe,
S3SaveStateDxe, SmmS3SaveState) are clients of the S3BootScriptLib class.

In turn, the edk2 tree contains only one non-Null instance of the
S3BootScriptLib class:

  MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf

Therefore we can safely state that BootScriptExecutorDxe, S3SaveStateDxe,
and SmmS3SaveState are all linked against PiDxeS3BootScriptLib.

Now, if PcdAcpiS3Enable is FALSE when either of BootScriptExecutorDxe,
SmmS3SaveState, or SmmS3SaveState is dispatched, then the following
happens:

- The constructor of PiDxeS3BootScriptLib, function
  S3BootScriptLibInitialize(), registers a protocol installation callback
  for gEfiDxeSmmReadyToLockProtocolGuid. Namely, the function
  S3BootScriptEventCallBack().

- The driver immediately exits with EFI_UNSUPPORTED from its entry point
  function, upon seeing PcdAcpiS3Enable == FALSE. (See commits
  800c02fbe2da6, 125e093876414, and d2d38610603f6.)

- This leaves a dangling callback pointer in the DXE core.

- When Platform BDS installs gEfiDxeSmmReadyToLockProtocolGuid (which is a
  valid thing to do for locking down SMM, even in the absence of S3
  support!), things blow up.

Fix this issue by returning immediately from S3BootScriptLibInitialize()
if PcdAcpiS3Enable is FALSE -- it is useless to initialize the library
instance if the containing driver module exits first thing in its entry
point.

Cc: Feng Tian 
Cc: Jiewen Yao 
Cc: Jordan Justen 
Cc: Ruiyu Ni 
Cc: Star Zeng 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek 
Reviewed-by: Jaben Carsey 
Reviewed-by: Jiewen Yao 
Reviewed-by: Star Zeng 


  Commit: 70017e446125a454b6dc8f8fe6e4cfe5ff35b38e
  
https://github.com/tianocore/edk2/commit/70017e446125a454b6dc8f8fe6e4cfe5ff35b38e
  Author: Laszlo Ersek 
  Date:   2016-04-28 (Thu, 28 Apr 2016)

  Changed paths:
M OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c

  Log Message:
  ---
  OvmfPkg: PlatformBdsLib: lock down SMM in PlatformBdsInit()

OVMF's PlatformBdsLib currently makes SMM vulnerable to the following
attack:

(1) a malicious guest OS copies a UEFI driver module to the EFI system
partition,

(2) the OS adds the driver as a Driver option, and references it from
DriverOrder,

(3) at next boot, the BdsEntry() function in
"IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c" processes
Driver and DriverOrder between the calls to PlatformBdsInit() and
PlatformBdsPolicyBehavior(),

(4) OVMF locks down SMM only in PlatformBdsPolicyBehavior(), hence the
driver runs with SMM unlocked.

The BdsEntry() function of the MdeModulePkg BDS driver (in file
"MdeModulePkg/Universal/BdsDxe/BdsEntry.c") recommends to "Signal
ReadyToLock event" in PlatformBootManagerBeforeConsole() -- which
corresponds to PlatformBdsInit() --, not in
PlatformBootManagerAfterConsole() -- which corresponds to
PlatformBdsPolicyBehavior().

Albeit an independent question, but it's worth mentioning: this patch also
brings OvmfPkg's PlatformBdsInit() closer to ArmVirtPkg's. Namely, the
latter signals End-of-Dxe in PlatformBdsInit() already.

Cc: Feng Tian 
Cc: Jiewen Yao 
Cc: Jordan Justen 
Cc: Ruiyu Ni 
Cc: Star Zeng 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek 
Acked-by: Star Zeng 
Reviewed-by: Jordan Justen 


  Commit: 84d2070aef8440819168f7f5736319d375a03447
  
https://github.com/tianocore/edk2/commit/84d2070aef8440819168f7f5736319d375a03447
  Author: Laszlo Ersek 
  Date:   2016-04-28 (Thu, 28 Apr 2016)

  Changed paths:
M OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c

  Log Message:
  ---
  OvmfPkg: PlatformBdsLib: lock down SMM regardless of S3

At the moment, the EFI_DXE_SMM_READY_TO_LOCK_PROTOCOL is only installed if
S3 is enabled -- at the end of SaveS3BootScript().

While a runtime OS is never booted with SMM unlocked (because the SMM IPL
locks down SMM as a last resort:

> SMM IPL!  DXE SMM Ready To Lock Protocol not installe

[tianocore/edk2] 21cc5e: ShellPkg: Update smbiosview for latest Type 17 dev...

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 21cc5ebf361248631fcfebde6494d4b615c62f4b
  
https://github.com/tianocore/edk2/commit/21cc5ebf361248631fcfebde6494d4b615c62f4b
  Author: Samer El-Haj-Mahmoud 
  Date:   2016-04-28 (Thu, 28 Apr 2016)

  Changed paths:
M ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c

  Log Message:
  ---
  ShellPkg: Update smbiosview for latest Type 17 devices

Update smbiosview to understand latest SMBIOS Type 17 devices from
SMBIOS 3.0.0 spec

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud 
Reviewed-by: Jaben Carsey 


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits


[tianocore/edk2] 0f3541: UefiCpuPkg/MtrrLib: Reduce the loop time to get fi...

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 0f354122328755c7a1cb0f68a37748f166d412ae
  
https://github.com/tianocore/edk2/commit/0f354122328755c7a1cb0f68a37748f166d412ae
  Author: Jeff Fan 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M UefiCpuPkg/Library/MtrrLib/MtrrLib.c

  Log Message:
  ---
  UefiCpuPkg/MtrrLib: Reduce the loop time to get fixed-MTRR MSR index

Add input fixed-MTRR MSR index to be start MSR index to avoid finding fixed-MTRR
MSR index from 0 at each time.

Cc: Feng Tian 
Cc: Michael Kinney 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan 
Reviewed-by: Feng Tian 


  Commit: aaa1e579a5109a868863c8a3c7a51580f83b4c38
  
https://github.com/tianocore/edk2/commit/aaa1e579a5109a868863c8a3c7a51580f83b4c38
  Author: Jeff Fan 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M UefiCpuPkg/Library/MtrrLib/MtrrLib.c

  Log Message:
  ---
  UefiCpuPkg/MtrrLib: Remove the loop of calculating byte offset in MSR

Calculate byte offset in MSR directly and removing the loop.

Cc: Feng Tian 
Cc: Michael Kinney 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan 
Reviewed-by: Feng Tian 


  Commit: 07e889209034ba94bfac9e765b8a50ef344daef2
  
https://github.com/tianocore/edk2/commit/07e889209034ba94bfac9e765b8a50ef344daef2
  Author: Jeff Fan 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M UefiCpuPkg/Library/MtrrLib/MtrrLib.c

  Log Message:
  ---
  UefiCpuPkg/MtrrLib: Remove the loop of calculating Fixed-MTRR Mask

Introduce the 32bit mask seeds to calculate Fixed-MTRR or&and mask values. It
could avoid the loop operation and 64bit shift operations.

Cc: Feng Tian 
Cc: Michael Kinney 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan 
Reviewed-by: Feng Tian 


Compare: https://github.com/tianocore/edk2/compare/21cc5ebf3612...07e889209034--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits


[tianocore/edk2] 914223: SecuritPkg: DxeImageVerificationLib: Fix wrong ver...

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 91422384d5915a6f14523b3cec557d730c940c6a
  
https://github.com/tianocore/edk2/commit/91422384d5915a6f14523b3cec557d730c940c6a
  Author: Zhang, Chao B 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c

  Log Message:
  ---
  SecuritPkg: DxeImageVerificationLib: Fix wrong verification logic in DBX & DBT

In image verification, if image verified pass in DBT, still need to verify if 
it is blocked by any other cert/cert hash from DBX.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang 
Reviewed-by: Long Qin 
Reviewed-by: Dick Wilkins 


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits


[tianocore/edk2] 6a0d24: MdePkg: Add WSMT definition.

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 6a0d24221241bb1b13bafc7b2d264240d19d2993
  
https://github.com/tianocore/edk2/commit/6a0d24221241bb1b13bafc7b2d264240d19d2993
  Author: Jiewen Yao 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
A MdePkg/Include/IndustryStandard/WindowsSmmSecurityMitigationTable.h

  Log Message:
  ---
  MdePkg: Add WSMT definition.

This patch adds Windows SMM Security Mitigation
Table @ 
http://download.microsoft.com/download/1/8/A/18A21244-EB67-4538-BAA2-1A54E0E490B6/WSMT.docx

Cc: "Gao, Liming" 
Cc: "Kinney, Michael D" 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" 
Reviewed-by: "Gao, Liming" 


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits


[tianocore/edk2] 5db1ac: MdeModulePkg/NvmExpressDxe: comments update to mee...

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 5db1ac89be4a407ead4d78e15ff35b95836db2de
  
https://github.com/tianocore/edk2/commit/5db1ac89be4a407ead4d78e15ff35b95836db2de
  Author: Feng Tian 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.h

  Log Message:
  ---
  MdeModulePkg/NvmExpressDxe: comments update to meet implementation

Cc: Simon (Xiang) Lian-SSI 
Cc: Wu, Hao A 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian 
Reviewed-by: Wu, Hao A 
Reviewed-by: Simon (Xiang) Lian-SSI 


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits


[tianocore/edk2] 9ce14c: ShellPkg: Enhance ping to select the interface aut...

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 9ce14ca124dd4ef1ae1f4e7c55840a13f1a6c0b7
  
https://github.com/tianocore/edk2/commit/9ce14ca124dd4ef1ae1f4e7c55840a13f1a6c0b7
  Author: Jiaxin Wu 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
M 
ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.uni

  Log Message:
  ---
  ShellPkg: Enhance ping to select the interface automatically

v2:
* A. Refine the code to make it more readable.
* B. Add hint message for link local address case.

This patch is used to support no source IP specified case
while multiple NICs existed in the platform. The command
will select the first both connected and configured interface
automatically.
Note: Source address is always required when pinging a
link-local address.

Cc: David Van Arnem 
Cc: Bhupesh Sharma 
Cc: Jaben Carsey 
Cc: Ye Ting 
Cc: Fu Siyuan 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu 
Reviewed-by: Jaben Carsey 
Reviewed-by: Fu Siyuan 


  Commit: 76cd3ffab6105c3c535125c1907ccdb4a9e19bbd
  
https://github.com/tianocore/edk2/commit/76cd3ffab6105c3c535125c1907ccdb4a9e19bbd
  Author: Jiaxin Wu 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c

  Log Message:
  ---
  ShellPkg: Enhance ping6 to select the interface automatically

v2:
* Refine the code to make it more readable.

This patch is used to support no source IP specified case while
multiple NICs existed in the platform. The command will select the
first both connected and configured interface automatically.
Note: Source address is always required when pinging a
link-local address.

Cc: Bhupesh Sharma 
Cc: Jaben Carsey 
Cc: Ye Ting 
Cc: Fu Siyuan 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu 
Reviewed-by: Jaben Carsey 
Reviewed-by: Fu Siyuan 


Compare: https://github.com/tianocore/edk2/compare/5db1ac89be4a...76cd3ffab610--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits


[tianocore/edk2] 1e01ea: MdeModulePkg: Add EDKII_PI_SMM_COMMUNICATION_REGIO...

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 1e01ea240e67aacd0e6b99012ac4ab3b68be8215
  
https://github.com/tianocore/edk2/commit/1e01ea240e67aacd0e6b99012ac4ab3b68be8215
  Author: Jiewen Yao 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
A MdeModulePkg/Include/Guid/PiSmmCommunicationRegionTable.h
M MdeModulePkg/MdeModulePkg.dec

  Log Message:
  ---
  MdeModulePkg: Add EDKII_PI_SMM_COMMUNICATION_REGION_TABLE definition.

This configuration table is used to describe platform pre-allocated memory
for SMM communication buffer. If DXE driver wants to communicate with SMM
agent, it can use this memory as SMM communication buffer instead of allocate
new memory region.

This is designed to meet Microsoft WSMT table definition on FIXED_COMM_BUFFERS
requirement.

Cc: Feng Tian 
Cc: Laszlo Ersek 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao 
Reviewed-by: Feng Tian 


  Commit: 6e4e6ffda448b77a3b2f3549137aca5c1b62cb4a
  
https://github.com/tianocore/edk2/commit/6e4e6ffda448b77a3b2f3549137aca5c1b62cb4a
  Author: Jiewen Yao 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M MdeModulePkg/MdeModulePkg.dsc
A 
MdeModulePkg/Universal/SmmCommunicationBufferDxe/SmmCommunicationBufferDxe.c
A 
MdeModulePkg/Universal/SmmCommunicationBufferDxe/SmmCommunicationBufferDxe.inf
A 
MdeModulePkg/Universal/SmmCommunicationBufferDxe/SmmCommunicationBufferDxe.uni
A 
MdeModulePkg/Universal/SmmCommunicationBufferDxe/SmmCommunicationBufferExtraDxe.uni

  Log Message:
  ---
  MdeModulePkg: Add new driver to publish 
EDKII_PI_SMM_COMMUNICATION_REGION_TABLE.

Add a driver to publish EDKII_PI_SMM_COMMUNICATION_REGION_TABLE, so that
other DXE driver can consume this table directly. NOTE: This is sample driver.
A platform may uses its own way to define default SMM communication buffer
region and publish information in its own
EDKII_PI_SMM_COMMUNICATION_REGION_TABLE.

This is designed to meet Microsoft WSMT table definition on FIXED_COMM_BUFFERS
requirement.

Cc: Feng Tian 
Cc: Laszlo Ersek 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao 
Reviewed-by: Feng, Tian 


  Commit: 73e0de62826dffe8f9e32d6d0d18b54a8a5d3f38
  
https://github.com/tianocore/edk2/commit/73e0de62826dffe8f9e32d6d0d18b54a8a5d3f38
  Author: Star Zeng 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M MdeModulePkg/Include/Guid/MemoryProfile.h

  Log Message:
  ---
  MdeModulePkg-MemoryProfile(1): Add 
SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET definition.

This patch enhance SMM memory profile SMM communication by using fixed
SMM communication buffer.

A new command SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET is added,
because we need to support get partial ProfileData to fixed SMM communication
buffer. If profile data is bigger than fixed SMM communication buffer,
the DXE agent need to call SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET
multiple times to get all data out.

This is designed to meet Microsoft WSMT table definition on FIXED_COMM_BUFFERS
requirement.

Cc: Star Zeng 
Cc: Feng Tian 
Cc: Laszlo Ersek 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng 
Reviewed-by: Feng Tian 


  Commit: c3592c86ee39c3582f1d4c6b31cf91113e9d4c5f
  
https://github.com/tianocore/edk2/commit/c3592c86ee39c3582f1d4c6b31cf91113e9d4c5f
  Author: Star Zeng 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c

  Log Message:
  ---
  MdeModulePkg-MemoryProfile(2): Add 
SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET in PiSmmCore.

This patch enhance SMM memory profile SMM communication by using fixed
SMM communication buffer.

Update PiSmmCore to handle SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET
request.

This is designed to meet Microsoft WSMT table definition on FIXED_COMM_BUFFERS
requirement.

Cc: Star Zeng 
Cc: Feng Tian 
Cc: Laszlo Ersek 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng 
Reviewed-by: Feng Tian 
Regression-tested-by: Laszlo Ersek 


  Commit: 2f7961c7d67faad52449ec8d5c71b2cd891bd7b6
  
https://github.com/tianocore/edk2/commit/2f7961c7d67faad52449ec8d5c71b2cd891bd7b6
  Author: Star Zeng 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c
M MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.inf

  Log Message:
  ---
  MdeModulePkg-MemoryProfile(3): Use 
SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET in MemoryProfileInfo.

This patch enhance SMM memory profile SMM communication by using fixed
SMM communication buffer.

Update MemoryProfileInfo APP to use fixed SMM communication buffer to get
profile data by SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET API.

This is designed to meet Microsoft WSMT table definition on F

[tianocore/edk2] 6d3911: ShellPkg: Add NULL pointer check.

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 6d3911d40610c01e843a35cefd1fec57f98a4fc2
  
https://github.com/tianocore/edk2/commit/6d3911d40610c01e843a35cefd1fec57f98a4fc2
  Author: Qiu Shumin 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c

  Log Message:
  ---
  ShellPkg: Add NULL pointer check.

Add pointer check to avoid NULL pointer dereferenced.

Cc: Jaben Carsey 
Cc: Tapan Shah 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin 
Reviewed-by: Tapan Shah 


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits


[tianocore/edk2] 35217a: BaseTools: fix the bug for FMP to support use Macr...

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 35217a337cb6d262d4a3b5165bd86ba150a6c088
  
https://github.com/tianocore/edk2/commit/35217a337cb6d262d4a3b5165bd86ba150a6c088
  Author: Yonghong Zhu 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M BaseTools/Source/Python/GenFds/FdfParser.py

  Log Message:
  ---
  BaseTools: fix the bug for FMP to support use Macro as path description

Fix the bug for FMP image to support to use Macro as path description,
eg: FILE DATA = $(OUTPUT_DIRECTORY)/$(TARGET)_$(TOOL_CHAIN_TAG)/test.efi

Cc: Liming Gao 
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu 
Reviewed-by: Liming Gao 


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits


[tianocore/edk2] cdd1b5: BaseTools/Build: Better DSC arch filtering

2016-04-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: cdd1b5e5486460ac96f44cddf1edfda25b1fdce9
  
https://github.com/tianocore/edk2/commit/cdd1b5e5486460ac96f44cddf1edfda25b1fdce9
  Author: Thomas Palmer 
  Date:   2016-04-29 (Fri, 29 Apr 2016)

  Changed paths:
M BaseTools/Source/Python/Workspace/MetaFileParser.py
M BaseTools/Source/Python/Workspace/WorkspaceDatabase.py

  Log Message:
  ---
  BaseTools/Build: Better DSC arch filtering

Description:
When building for any specific architecture, the build script today is loading
DSC sections for other architectures not in the build. The build process should
disregard DSC sections that are not relevant to the build.

My previous patch only fixed issue for one section type (Components). This
patch will handle all section types by updating the MetaFileParser class, which
now takes a Arch argument and will filter the DSC table results as they are
returned from the database.  The database still contains all information from
DSCs for when builds support multiple arch's

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Thomas Palmer 
Reviewed-by: Yonghong Zhu 


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits