c630f69df0
UefiCpuPkg/PiSmmCpu: ReclaimPages: fix incorrect operator binding
...
Fixes: 4eee0cc7c
Signed-off-by: Ray Ni <ray.ni@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
2019-07-12 15:44:45 +08:00
4eee0cc7cc
UefiCpuPkg/PiSmmCpu: Enable 5 level paging when CPU supports
...
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1946
The patch changes SMM environment to use 5 level paging when CPU
supports it.
Signed-off-by: Ray Ni <ray.ni@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Regression-tested-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Eric Dong <eric.dong@intel.com >
(cherry picked from commit 7365eb2c8c
)
2019-07-12 15:13:51 +08:00
6e5a33d1fb
MdePkg/BaseLib.h: Update IA32_CR4 structure for 5-level paging
...
5-level paging is documented in white paper:
https://software.intel.com/sites/default/files/managed/2b/80/5-level_paging_white_paper.pdf
Commit f8113e2500
changed Cpuid.h already.
This patch updates IA32_CR4 structure to include LA57 field.
Signed-off-by: Ray Ni <ray.ni@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Regression-tested-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
(cherry picked from commit 7c5010c7f8
)
2019-07-12 15:12:43 +08:00
deb90ac03a
Revert "MdePkg/BaseLib.h: Update IA32_CR4 structure for 5-level paging"
...
This reverts commit 7c5010c7f8
.
Commit
7c5010c7f8
MdePkg/BaseLib.h: Update IA32_CR4 structure for 5-level paging
technically breaks the EDKII development process documented in
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Development-Process
and Maintainers.txt in EDKII repo root directory.
The voilation is commit 7c5010c7f8
doesn't have a Reviewed-by or
Acked-by from MdePkg maintainers.
Signed-off-by: Ray Ni <ray.ni@intel.com >
2019-07-12 15:11:02 +08:00
4e78c7bebb
Revert "UefiCpuPkg/PiSmmCpu: Enable 5 level paging when CPU supports"
...
This reverts commit 7365eb2c8c
.
Commit
7c5010c7f8
MdePkg/BaseLib.h: Update IA32_CR4 structure for 5-level paging
technically breaks the EDKII development process documented in
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Development-Process
and Maintainers.txt in EDKII repo root directory.
The voilation is commit 7c5010c7f8
doesn't have a Reviewed-by or
Acked-by from MdePkg maintainers.
In order to revert 7c5010c7f8
, 7365eb2c8
needs to revert first otherwise
simply reverting 7c5010c7f8
will cause build break.
Signed-off-by: Ray Ni <ray.ni@intel.com >
2019-07-12 14:59:32 +08:00
f044a7d8ff
Maintainers.txt: Remove maintainer info for IntelFsp[Wrapper]Pkg
...
We removed IntelFspPkg and IntelFspWrapperPkg for
<https://bugzilla.tianocore.org/show_bug.cgi?id=1819 >; now remove
the dangling maintainer/reviewer assignments too.
Signed-off-by: Ray Ni <ray.ni@intel.com >
Cc: Andrew Fish <afish@apple.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com >
2019-07-12 14:56:16 +08:00
91cc60bafc
IntelFsp2Pkg: Fix various typos
...
Fix various typos in IntelFsp2Pkg.
Signed-off-by: Cœur <coeur@gmx.fr >
Reviewed-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com >
2019-07-11 21:07:17 +08:00
efa12a3f02
Revert "FmpDevicePkg: Fix various typos"
...
This reverts commit f527942e6b
.
Commit message was incorrect.
Signed-off-by: Cœur <coeur@gmx.fr >
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com >
2019-07-11 21:07:16 +08:00
7a0df266e5
UefiCpuPkg RegisterCpuFeaturesLib: Fix an ASSERTION issue
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1968
We met assertion like below, it happens when there is only
one processor.
ASSERT_EFI_ERROR (Status = Not started)
ASSERT [CpuFeaturesDxe] X:\XXX\XXX\RegisterCpuFeaturesLib\
DxeRegisterCpuFeaturesLib.c(149): !EFI_ERROR (Status)
The code should not call StartupAllAPs when there is only one processor.
Cc: Laszlo Ersek <lersek@redhat.com >
Cc: Eric Dong <eric.dong@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Chandana Kumar <chandana.c.kumar@intel.com >
Cc: Kevin Li <kevin.y.li@intel.com >
Signed-off-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Eric Dong <eric.dong@intel.com >
2019-07-11 17:40:28 +08:00
28781fd52a
Revert "BaseTools/BfmLib: Add a tool BfmLib"
...
This reverts commit dc7b0dc8d6
.
There are the concerns on code design and code quality, and
request to rewrite FCE, BfmLib and FMMT for the review.
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Feng Bob C <bob.c.feng@intel.com >
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Feng Bob C <bob.c.feng@intel.com >
2019-07-11 11:17:48 +08:00
064daac0c6
Revert "BaseTools/FCE: Add a tool FCE"
...
This reverts commit 3c59d94637
.
There are the concerns on code design and code quality, and
request to rewrite FCE, BfmLib and FMMT for the review.
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Feng Bob C <bob.c.feng@intel.com >
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Feng Bob C <bob.c.feng@intel.com >
2019-07-11 11:17:46 +08:00
b9479a7f7b
Revert "BaseTools/FMMT: Add a tool FMMT"
...
This reverts commit 080981d72d
.
There are the concerns on code design and code quality, and
request to rewrite FCE, BfmLib and FMMT for the review.
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Feng Bob C <bob.c.feng@intel.com >
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Feng Bob C <bob.c.feng@intel.com >
2019-07-11 11:17:44 +08:00
60ec54afc3
Revert "BaseTools: fix FCE build when edksetup not executed"
...
This reverts commit d031fc07eb
.
There are the concerns on code design and code quality, and
request to rewrite FCE, BfmLib and FMMT for the review.
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Feng Bob C <bob.c.feng@intel.com >
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Feng Bob C <bob.c.feng@intel.com >
2019-07-11 11:17:41 +08:00
661c5ed2d6
Revert "BaseTools/FMMT: Change FMMT script type in PosixLike"
...
This reverts commit 2112fc71b1
.
There are the concerns on code design and code quality, and
request to rewrite FCE, BfmLib and FMMT for the review.
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Feng Bob C <bob.c.feng@intel.com >
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Feng Bob C <bob.c.feng@intel.com >
2019-07-11 11:17:39 +08:00
e8d4c5f92b
Revert "BaseTools/BfmLib: Change BfmLib script type in PosixLike"
...
This reverts commit 556bf5b357
.
There are the concerns on code design and code quality, and
request to rewrite FCE, BfmLib and FMMT for the review.
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Feng Bob C <bob.c.feng@intel.com >
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Feng Bob C <bob.c.feng@intel.com >
2019-07-11 11:17:37 +08:00
226301051d
Revert "BaseTools/FCE: Change FCE script type in PosixLike"
...
This reverts commit 8a842b31b9
.
There are the concerns on code design and code quality, and
request to rewrite FCE, BfmLib and FMMT for the review.
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Feng Bob C <bob.c.feng@intel.com >
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Feng Bob C <bob.c.feng@intel.com >
2019-07-11 11:17:13 +08:00
8df52631e5
ArmPlatformPkg: Actually disable PL031 interrupts
...
The PL031 interrupt mask register (IMSC) is not very clearly documented
in the PL031 specification. However, bit 0 (RTCIMSC) indicates whether
interrupts are enabled, not disabled.
So before this commit, we were actually *enabling* interrupts for the RTC.
This patch changes the logic to instead disable interrupts when they
are not disabled already.
Signed-off-by: Alexander Graf <graf@amazon.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
2019-07-10 18:07:31 +01:00
7365eb2c8c
UefiCpuPkg/PiSmmCpu: Enable 5 level paging when CPU supports
...
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1946
The patch changes SMM environment to use 5 level paging when CPU
supports it.
Signed-off-by: Ray Ni <ray.ni@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Regression-tested-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Eric Dong <eric.dong@intel.com >
2019-07-10 16:00:15 +08:00
7c5010c7f8
MdePkg/BaseLib.h: Update IA32_CR4 structure for 5-level paging
...
5-level paging is documented in white paper:
https://software.intel.com/sites/default/files/managed/2b/80/5-level_paging_white_paper.pdf
Commit f8113e2500
changed Cpuid.h already.
This patch updates IA32_CR4 structure to include LA57 field.
Signed-off-by: Ray Ni <ray.ni@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Regression-tested-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Eric Dong <eric.dong@intel.com >
2019-07-10 16:00:06 +08:00
7e56f8928d
UefiCpuPkg/PiSmmCpu: Change variable names and comments to follow SDM
...
Per SDM, for IA-32e 4-KByte paging, there are four layers in the page
table structure:
1. PML4
2. Page-Directory-Pointer Table (PDPT)
3. Page-Directory (PD)
4. Page Table (PT)
The patch changes the local variable names and comments to use
"PML4", "PDPT", "PD", "PT" to better align to terms used in SDM.
There is no functionality impact for this change.
Signed-off-by: Ray Ni <ray.ni@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Regression-tested-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Eric Dong <eric.dong@intel.com >
2019-07-10 16:00:03 +08:00
034a3b4f55
MdeModulePkg/Setup: Check ConfigAccess protocol in case it's destroyed
...
https://bugzilla.tianocore.org/show_bug.cgi?id=1920
Check ConfigAccess protocol is available before process user input.
Signed-off-by: GregX Yeh <gregx.yeh@intel.com >
Cc: Dandan Bi <dandan.bi@intel.com >
Cc: Ray Ni <ray.ni@intel.com >
Cc: Ted Kuo <ted.kuo@intel.com >
Reviewed-by: Dandan Bi <dandan.bi@intel.com >
2019-07-10 09:57:52 +08:00
688ec2d006
BaseTools: Detect the change of env variable used in tooldef.txt
...
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1921
Add TOOLS_DEF.ARCH file to all workspace meta files list.
TOOLS_DEF.ARCH include the evaluated Tool definition information
which is filtered by current tool_chain.
With this change, when the environment variable which
is used in ToolDef.txt is changed, build tool will
rebuild the platform.
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Steven Shi <steven.shi@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-07-10 09:29:43 +08:00
1d06b46cf1
BaseTools: Fixed the issue of the CFlag for compile PcdValueInit.c
...
This issue happens when using Structured PCD.
Build tool use set to store the cflags for compile PcdValueInit.c,
that is the order of cflags is disorder.
This patch make -U, /U flags appear before -D, /D
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-07-10 09:26:18 +08:00
f527942e6b
FmpDevicePkg: Fix various typos
...
Fix one typo in FmpDevicePkg.
Signed-off-by: Cœur <coeur@gmx.fr >
Reviewed-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com >
2019-07-09 21:40:00 +08:00
8a842b31b9
BaseTools/FCE: Change FCE script type in PosixLike
...
Change the script type from PC to UNIX.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
2019-07-08 10:26:46 +08:00
556bf5b357
BaseTools/BfmLib: Change BfmLib script type in PosixLike
...
Change the script type from PC to UNIX.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
2019-07-08 10:26:42 +08:00
2112fc71b1
BaseTools/FMMT: Change FMMT script type in PosixLike
...
Change the script type from PC to UNIX.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
2019-07-08 10:26:39 +08:00
2d53d54a5b
BaseTools: Fix various typos
...
Fix various typos in BaseTools.
Signed-off-by: Cœur <coeur@gmx.fr >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
2019-07-08 08:59:29 +08:00
d031fc07eb
BaseTools: fix FCE build when edksetup not executed
...
Commit 3c59d94637
("BaseTools/FCE: Add a tool FCE") added a new tool
that is always built. Pre-existing tools locate the makefile includes
with relative paths, but FCE uses EDK_TOOLS_PATH, adding a new dependency
on having sourced edksetup.sh before building BaseTools.
Change FCE GNUmakefile to match other tools.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-07-05 14:58:43 +01:00
0a487ef96b
Maintainers.txt: Change SecurityPkg Maintainer Role
...
Change Chao's role to Reviewer
Cc: Wang Jian J <jian.j.wang@intel.com >
Signed-off-by: Zhang, Chao B <chao.b.zhang@intel.com >
Reviewed-by: Wang Jian J <jian.j.wang@intel.com >
2019-07-05 13:13:19 +08:00
6a34c1ce70
Revert "MdePkg/Protocol/Hash: introduce GUID for SM3"
...
This reverts commit 49c1e683c4
.
The reason is that said commit had not been reviewed by MdePkg
maintainers, before it was pushed.
Cc: Imran Desai <imran.desai@intel.com >
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com >
2019-07-04 17:50:50 +02:00
a9faafb156
Revert "SecurityPkg: introduce the SM3 digest algorithm"
...
This reverts commit 06dd5863b6
.
The reason is that said commit directly depends on commit 49c1e683c4
("MdePkg/Protocol/Hash: introduce GUID for SM3", 2019-07-03), and the
latter commit is going to be reverted, due to its review process not
having followed established edk2 norms.
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Imran Desai <imran.desai@intel.com >
Cc: Jian Wang <jian.j.wang@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com >
2019-07-04 17:50:48 +02:00
29a1a6eff7
Revert "SecurityPkg/HashLibBaseCryptoRouter: recognize the SM3 digest algorithm"
...
This reverts commit 542d04e2a4
.
The reason is that said commit indirectly depends on commit 49c1e683c4
("MdePkg/Protocol/Hash: introduce GUID for SM3", 2019-07-03), and the
latter commit is going to be reverted, due to its review process not
having followed established edk2 norms.
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Imran Desai <imran.desai@intel.com >
Cc: Jian Wang <jian.j.wang@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com >
2019-07-04 17:50:46 +02:00
0d823bfd8d
Revert "SecurityPkg: set SM3 bit in TPM 2.0 hash mask by default"
...
This reverts commit d5af8fc5a9
.
The reason is that said commit indirectly depends on commit 49c1e683c4
("MdePkg/Protocol/Hash: introduce GUID for SM3", 2019-07-03), and the
latter commit is going to be reverted, due to its review process not
having followed established edk2 norms.
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Imran Desai <imran.desai@intel.com >
Cc: Jian Wang <jian.j.wang@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com >
2019-07-04 17:50:44 +02:00
ddc020fb0a
Revert "OvmfPkg: link SM3 support into Tcg2Pei and Tcg2Dxe"
...
This reverts commit a7c7d21ffa
.
The reason is that said commit had not been reviewed by OvmfPkg
maintainers/reviewers, before it was pushed.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Cc: Imran Desai <imran.desai@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Leif Lindholm <leif.lindholm@linaro.org >
Cc: Marc-André Lureau <marcandre.lureau@redhat.com >
Cc: Stefan Berger <stefanb@linux.ibm.com >
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com >
2019-07-04 17:48:08 +02:00
1ec05b81e5
OvmfPkg: use DxeTpmMeasurementLib if and only if TPM2_ENABLE
...
(a) OvmfPkg first had to resolve the TpmMeasurementLib class -- for
SECURE_BOOT_ENABLE only -- when the DxeImageVerificationLib instance
became dependent on TpmMeasurementLib. For details, refer to commit
0d28d286bf
("OvmfPkg: resolve TpmMeasurementLib dependency
introduced in r14687", 2013-09-21).
(b) At the time, only one instance of TpmMeasurementLib existed, namely
DxeTpmMeasurementLib. This lib instance didn't do anything -- like it
was desirable for OVMF --, because OVMF didn't include any Tcg / TrEE
protocol implementations.
(c) In commit 308521b133
("MdeModulePkg: Move TpmMeasurementLib
LibraryClass from SecurityPkg", 2015-07-01), TpmMeasurementLibNull was
introduced.
(d) In commit 285542ebbb
("OvmfPkg: Link AuthVariableLib for following
merged variable driver deploy", 2015-07-01), a TpmMeasurementLib
resolution became necessary regardless of SECURE_BOOT_ENABLE. And so
TpmMeasurementLib was resolved to TpmMeasurementLibNull in OVMF, but
only in the non-SECURE_BOOT_ENABLE case. This step -- possibly, the
larger series containing commit 285542ebbb
-- missed an opportunity
for simplification: given (b), the DxeTpmMeasurementLib instance
should have been simply replaced with the TpmMeasurementLibNull
instance, regardless of SECURE_BOOT_ENABLE.
(e) In commit 1abfa4ce48
("Add TPM2 support defined in trusted computing
group.", 2015-08-13), the TrEE dependency was replaced with a Tcg2
dependency in DxeTpmMeasurementLib.
(f) Starting with commit 0c0a50d6b3
("OvmfPkg: include Tcg2Dxe module",
2018-03-09), OVMF would include a Tcg2 protocol implementation,
thereby satisfying DxeTpmMeasurementLib's dependency. With
TPM2_ENABLE, it would actually make sense to consume
DxeTpmMeasurementLib -- however, DxeTpmMeasurementLib would never be
used without SECURE_BOOT_ENABLE.
Therefore, we have the following four scenarios:
- TPM2_ENABLE + SECURE_BOOT_ENABLE: works as expected.
- Neither enabled: works as expected.
- Only TPM2_ENABLE: this build is currently incorrect, because
Variable/RuntimeDxe consumes TpmMeasurementLib directly, but
TpmMeasureAndLogData() will never reach the TPM because we link
TpmMeasurementLibNull into the variable driver. This is a problem from
the larger series containing (f).
- Only SECURE_BOOT_ENABLE: this build works as expected, but it is
wasteful -- given that the protocol database will never contain Tcg2
without TPM2_ENABLE, we should simply use TpmMeasurementLibNull. This is
a problem from (d).
Resolving TpmMeasurementLib to DxeTpmMeasurementLib as a function of
*only* TPM2_ENABLE, we can fix / optimize the last two cases.
v2:
- Amend the title and description suggested by Laszlo
- Move TpmMeasurementLib to the existed TPM2_ENABLE block
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Cc: Marc-André Lureau <marcandre.lureau@redhat.com >
Cc: Stefan Berger <stefanb@linux.ibm.com >
Signed-off-by: Gary Lin <glin@suse.com >
Message-Id: <20190704040731.5303-1-glin@suse.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
2019-07-04 15:42:45 +02:00
c6a72cd794
EmbeddedPkg: Fix various typos
...
Fix various typos in EmbeddedPkg.
Signed-off-by: Coeur <coeur@gmx.fr >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
2019-07-04 12:21:04 +01:00
16f3544ddd
ArmPlatformPkg: Fix various typos
...
Fix various typos in ArmPlatformPkg.
Signed-off-by: Coeur <coeur@gmx.fr >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
2019-07-04 12:20:52 +01:00
ff5fef1428
ArmPkg: Fix various typos
...
Fix various typos in ArmPkg.
Signed-off-by: Coeur <coeur@gmx.fr >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
2019-07-04 12:20:28 +01:00
080981d72d
BaseTools/FMMT: Add a tool FMMT
...
FMMT is a tool to enable removal, addition and replacement of
FFS files in FD image binaries.
https://bugzilla.tianocore.org/show_bug.cgi?id=1847
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
2019-07-04 11:34:57 +08:00
3c59d94637
BaseTools/FCE: Add a tool FCE
...
FCE is a tool to retrieve and change HII configuration data in
Firmware Device(*.fd) files.
https://bugzilla.tianocore.org/show_bug.cgi?id=1848
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
2019-07-04 11:34:56 +08:00
dc7b0dc8d6
BaseTools/BfmLib: Add a tool BfmLib
...
BmfLib is added for FCE tool.
https://bugzilla.tianocore.org/show_bug.cgi?id=1848
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
2019-07-04 11:34:56 +08:00
03835a8c73
Maintainers.txt: Drop deprecated SourceForge SVN link
...
The commit will remove the deprecated edk2 SVN mirror at:
https://svn.code.sf.net/p/edk2/code/trunk/edk2
After this commit, the above mirror will not be synced with the changes
made in the GitHub upstream.
Cc: Liming Gao <liming.gao@intel.com >
Cc: Andrew Fish <afish@apple.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Hao A Wu <hao.a.wu@intel.com >
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
2019-07-04 08:08:35 +08:00
e54ce6d074
Maintainers.txt: add Leif Lindholm as Package Reviewer of ArmVirtPkg
...
ArmVirtPkg was created before we introduced the Package Reviewer (R:)
role in Maintainers.txt. However, we have always had an informal
agreement that if Ard or Laszlo is absent, I can review patches by
the still present one for going into ArmVirtPkg.
Plus, as one of the ArmPkg maintainers, it makes sense for me to have
better visibility of goings-on in ArmVirtPkg.
So let's formalise that, and add myself as a Package Reviewer, to be
CC:d on patches (while not taking up full maintainer responsibilities).
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
2019-07-03 16:32:39 +01:00
a7c7d21ffa
OvmfPkg: link SM3 support into Tcg2Pei and Tcg2Dxe
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 PCR
banks. This digest algorithm is part of the China Crypto algorithm suite.
This integration has dependency on the openssl_1_1_1b integration into
edk2.
This patch links SM3 support into Tcg2Pei and Tcg2Dxe.
Signed-off-by: Imran Desai <imran.desai@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Cc: Marc-André Lureau <marcandre.lureau@redhat.com >
Cc: Stefan Berger <stefanb@linux.ibm.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com >
Reviewed-by: jiewen.yao@intel.com
2019-07-03 16:31:56 +08:00
d5af8fc5a9
SecurityPkg: set SM3 bit in TPM 2.0 hash mask by default
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 PCR
banks. This digest algorithm is part of the China Crypto algorithm suite.
This integration has dependency on the openssl_1_1_1b integration into
edk2.
This patch sets SM3 bit in TPM2.0 hash mask by default.
Signed-off-by: Imran Desai <imran.desai@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian Wang <jian.j.wang@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com >
Reviewed-by: jiewen.yao@intel.com
2019-07-03 16:31:55 +08:00
542d04e2a4
SecurityPkg/HashLibBaseCryptoRouter: recognize the SM3 digest algorithm
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 PCR
banks. This digest algorithm is part of the China Crypto algorithm suite.
This integration has dependency on the openssl_1_1_1b integration into
edk2.
This patch adds SM3 as an available digest algorithm to crypto router.
Signed-off-by: Imran Desai <imran.desai@intel.com >
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian Wang <jian.j.wang@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com >
Reviewed-by: jiewen.yao@intel.com
2019-07-03 16:31:55 +08:00
06dd5863b6
SecurityPkg: introduce the SM3 digest algorithm
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 PCR
banks. This digest algorithm is part of the China Crypto algorithm suite.
This integration has dependency on the openssl_1_1_1b integration into
edk2.
This patch add SM3 algorithm in the hashinstance library.
Cc: Chao Zhang <chao.b.zhang@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jian Wang <jian.j.wang@intel.com >
Signed-off-by: Imran Desai <imran.desai@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com >
Reviewed-by: jiewen.yao@intel.com
2019-07-03 16:31:54 +08:00
49c1e683c4
MdePkg/Protocol/Hash: introduce GUID for SM3
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 PCR
banks. This digest algorithm is part of the China Crypto algorithm suite.
This integration has dependency on the openssl_1_1_1b integration into
edk2.
This patch adds GUID for SM3 digest algorithm.
Signed-off-by: Imran Desai <imran.desai@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com >
Reviewed-by: jiewen.yao@intel.com
2019-07-03 16:31:53 +08:00
896db3a4ce
Maintainers.txt: Remove information for IntelFramework[Module]Pkg
...
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1604
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1605
Since IntelFramework[Module]Pkg have been removed, this commit will update
the Maintainers.txt to reflect such changes.
Signed-off-by: Hao A Wu <hao.a.wu@intel.com >
Acked-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2019-07-03 13:24:23 +08:00