Jeff Fan
97ea5b7ff6
UefiCpuPkg/XeonE7Msr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:18:06 +08:00
Jeff Fan
b6ae7578ab
UefiCpuPkg/XeonDMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:18:03 +08:00
Jeff Fan
eed57645e4
UefiCpuPkg/Xeon5600Msr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:18:01 +08:00
Jeff Fan
04e7a46528
UefiCpuPkg/SkylakeMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:58 +08:00
Jeff Fan
94fe1b5f53
UefiCpuPkg/SilvermontMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:56 +08:00
Jeff Fan
367f5c9c5f
UefiCpuPkg/SandyBridgeMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:53 +08:00
Jeff Fan
634429c0aa
UefiCpuPkg/PentiumMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:50 +08:00
Jeff Fan
65ee84bd6b
UefiCpuPkg/PentiumMMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:47 +08:00
Jeff Fan
8bf98bd0d7
UefiCpuPkg/Pentium4Msr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:45 +08:00
Jeff Fan
91e3003c97
UefiCpuPkg/P6Msr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:42 +08:00
Jeff Fan
c2aa191b50
UefiCpuPkg/NehalemMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:39 +08:00
Jeff Fan
fed6c37b4a
UefiCpuPkg/IvyBridgeMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:35 +08:00
Jeff Fan
e108c3f64d
UefiCpuPkg/HaswellMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:32 +08:00
Jeff Fan
a73ab08301
UefiCpuPkg/HaswellEMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:28 +08:00
Jeff Fan
adf109740f
UefiCpuPkg/CoreMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:24 +08:00
Jeff Fan
e43a671439
UefiCpuPkg/Core2Msr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:20 +08:00
Jeff Fan
a6b7bc3c2f
UefiCpuPkg/BroadwellMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:16 +08:00
Jeff Fan
800a651d6d
UefiCpuPkg/AtomMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:13 +08:00
Jeff Fan
7de98828b7
UefiCpuPkg/ArchitecturalMsr.h: add MSR reference from SDM in comment
...
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
2016-09-08 09:17:08 +08:00
Jeff Fan
87896d03f6
UefiCpuPkg/MpInitLib: Add MP Initialize library class definition
...
MP Initialize library provides basic functionalities to do APs initialization,
to manage MP information and to wakeup APs to execute AP task.
It could be consumed by CPU MP PEI or DXE drivers to provide CPU MP PPI/Protocol
services.
v4:
1. MpInitLibGetProcessorInfo():
Update HealthData type from UINT32 to EFI_HEALTH_FLAGS.
Add #include <Ppi/SecPlatformInformation.h>
2. MpInitLibSwitchBSP():
Return EFI_DEVICE_ERROR instead of EFI_SUCCESS if the calling processor is
an AP.
3. MpInitLibStartupThisAP():
Fix several incorrect references to "APs" to match PI spec.
4. MpInitLibSwitchBSP() and MpInitLibEnableDisableAP():
Fix incorrect description on ProcessorNumber.
5. Trim whitespace at end of line.
v3:
1. Add whitespace after MpInitLibInitialize
2. Rename MpInitLibSwitchBsp to MpInitLibSwitchBSP to match PI spec
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Michael Kinney <michael.d.kinney@intel.com >
2016-08-17 19:57:41 +08:00
Jeff Fan
5aa2d57667
UefiCpuPkg/MpInitLib: Add microcode definitions defined in IA32 SDM
...
Add microcode definitions defined in Intel(R) 64 and IA-32 Architectures
Software Developer's Manual Volume 3A, Section 9.11.
v4:
1. ProcessorSignature type changed to CPU_MICROCODE_PROCESSOR_SIGNATURE
2. Add pack(1) for structure CPU_MICROCODE_HEADER and
CPU_MICROCODE_EXTENDED_TABLE.
v3:
1. Update SDM date to June, 2016
2. Mention BCD format in CPU_MICROCODE_DATE
3. Rename ProcessorChecksum to Checksum to match SDM.
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Michael Kinney <michael.d.kinney@intel.com >
2016-08-17 19:55:25 +08:00
Jeff Fan
a742e1865d
UefiCpuPkg/LocalApic.h: Remove duplicated/conflicted definitions
...
#define MSR_IA32_APIC_BASE_ADDRESS is duplicated with #define MSR_IA32_APIC_BASE
defined in UefiCpuPkg/Include/Register/ArchitecturalMsr.h, so we could remove it
and update the modules to use MSR_IA32_APIC_BASE from ArchitecturalMsr.h.
Structure MSR_IA32_APIC_BASE conflicts with #define MSR_IA32_APIC_BASE defined
in UefiCpuPkg/Include/Register/ArchitecturalMsr.h, so we could remove it and
update the modules to use structure MSR_IA32_APIC_BASE_REGISTER from
ArchitecturalMsr.h.
v5:
1. Update SourceLevelDebugPkg to use APIC Base MSR from ArchitecturalMsr.h.
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Cc: Laszlo Ersek <lersek@redhat.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Michael Kinney <michael.d.kinney@intel.com >
2016-08-17 19:54:41 +08:00
Ruiyu Ni
490b048b5a
UefiCpuPkg: MTRR_PHYSMASK.Valid should be one bit instead of 8 bits
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Feng Tian <feng.tian@intel.com >
2016-08-17 13:54:13 +08:00
Jeff Fan
c606a9a5b7
UefiCpuPkg/Cpuid.h: Add CPUID defines and structures for Intel SGX
...
Add Intel SGX Resource Enumeration Leaves as described by Section 37.7 in
Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 3D,
December 2015.
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Feng Tian <feng.tian@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com >
2016-03-30 08:29:49 +08:00
Michael Kinney
195c94360f
UefiCpuPkg/Include: Add top level MSR include file
...
Add top level MSR include file that includes the Architecural MSR
include file and all family specific MSR files from the Msr
subdirectory
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR).
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 12:00:36 -07:00
Michael Kinney
a1e8e34d74
UefiCpuPkg/Include: Add Pentium MSR include file
...
Add Pentium MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-20.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 12:00:19 -07:00
Michael Kinney
8e6bff8875
UefiCpuPkg/Include: Add P6 MSR include file
...
Add P6 MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-19.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 12:00:08 -07:00
Michael Kinney
83d4e58cb0
UefiCpuPkg/Include: Add Pentium M MSR include file
...
Add Pentium M MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-18.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:59:56 -07:00
Michael Kinney
e0d87abe8f
UefiCpuPkg/Include: Add Core Solo/Duo MSR include file
...
Add Core Solo/Duo MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-17.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:59:44 -07:00
Michael Kinney
f4d9afde4c
UefiCpuPkg/Include: Add Pentium 4 MSR include file
...
Add Pentium 4 MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-16.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:59:32 -07:00
Michael Kinney
3adf631660
UefiCpuPkg/Include: Add Xeon Phi MSR include file
...
Add Xeon Phi MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-15.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:59:20 -07:00
Michael Kinney
6b55a245f1
UefiCpuPkg/Include: Add Skylake MSR include file
...
Add Skylake MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-14.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:59:09 -07:00
Michael Kinney
54307cea18
UefiCpuPkg/Include: Add Xeon Processor D MSR include file
...
Add Xeon Processor D MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-13.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:58:58 -07:00
Michael Kinney
d57201c0a3
UefiCpuPkg/Include: Add Broadwell MSR include file
...
Add Broadwell MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-12.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:58:47 -07:00
Michael Kinney
c67b579cd6
UefiCpuPkg/Include: Add Haswell-E MSR include file
...
Add Haswell-E MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-11.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:58:35 -07:00
Michael Kinney
7ae88a6295
UefiCpuPkg/Include: Add Haswell MSR include file
...
Add Haswell MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-10.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:58:24 -07:00
Michael Kinney
84ada87c6b
UefiCpuPkg/Include: Add Ivy Bridge MSR include file
...
Add Ivy Bridge MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-9.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:58:13 -07:00
Michael Kinney
dc5d621c60
UefiCpuPkg/Include: Add Sandy Bridge MSR include file
...
Add Sandy Bridge MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-8.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:58:01 -07:00
Michael Kinney
ebb74e4a3c
UefiCpuPkg/Include: Add Xeon E7 MSR include file
...
Add Xeon E7 MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-7.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:57:40 -07:00
Michael Kinney
c5d7b07abb
UefiCpuPkg/Include: Add Xeon 5600 MSR include file
...
Add Xeon 5600 MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-6.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:57:24 -07:00
Michael Kinney
bd946618a0
UefiCpuPkg/Include: Add Nehalem MSR include file
...
Add Nehalem MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-5.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:57:09 -07:00
Michael Kinney
053a6ae991
UefiCpuPkg/Include: Add Silvermont MSR include file
...
Add Silvermont MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-4.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:56:57 -07:00
Michael Kinney
a646000f9b
UefiCpuPkg/Include: Add Atom MSR include file
...
Add Atom MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-3.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:56:44 -07:00
Michael Kinney
63f3a74dd9
UefiCpuPkg/Include: Add Core 2 MSR include file
...
Add Core 2 MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-2.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:56:18 -07:00
Michael Kinney
04c980a630
UefiCpuPkg/Include: Add Architectural MSR include file
...
Add Architectural MSRs from:
Intel(R) 64 and IA-32 Architectures Software Developer's
Manual, Volume 3, December 2015, Chapter 35
Model-Specific-Registers (MSR), Section 35-1.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-03-13 11:55:03 -07:00
Michael Kinney
57d16ba1e7
UefiCpuPkg/Cpuid.h: Add CPUID leaf/sub-leaf defines and structures
...
Add CPUID leaf and sub-leaf indexes and structures as described by
Intel(R) 64 and IA-32 Architectures Software Developer's Manual,
Volume 2A, December 2015, CPUID instruction.
Cc: Jeff Fan <jeff.fan@intel.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Jeff Fan <jeff.fan@intel.com >
2016-02-24 20:36:46 -08:00
Jeff Fan
4de216c016
UefiCpuPkg/CpuMpPei: Add GetApLoopMode() to get AP loop mode
...
Add GetApLoopMode() that will get PCD PcdCpuApLoopMode firstly. If it is
ApInMwaitLoop, we will check if MONITOR/MWAIT feature supported by CPUID. If
MONITOR/MWAIT feature is not supported, force AP loop mode to ApInHltLoop.
GetApLoopMode() also return the largest line size required.
Contributed-under: TianoCore Contribution Agreement 1.0
Cc: Feng Tian <feng.tian@intel.com >
Cc: Michael Kinney <michael.d.kinney@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Tested-by: Michael Kinney <michael.d.kinney@intel.com >
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19343 6f19259b-4bc3-4df7-8a09-765794883524
2015-12-18 03:24:27 +00:00
Michael Kinney
b970ed6829
UefiCpuPkg/MtrrLib: Add MtrrSetMemoryAttributeInMtrrSettings()
...
Add new API MtrrSetMemoryAttributeInMtrrSettings() in MtrrLib. Platform could
use this API to set MTRR setting into local MTRR settings buffer instead of
MTRRs. At last, platform could use MtrrSetAllMtrrs() to set the MTRR settings
into MTRRs totally. It could improve MTRRs programming performance obviously,
specially when platform is going to program a set of MTRRs.
Cc: Feng Tian <feng.tian@intel.com >
Cc: Michael Kinney <michael.d.kinney@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Feng Tian <feng.tian@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19162 6f19259b-4bc3-4df7-8a09-765794883524
2015-12-08 05:26:26 +00:00
Michael Kinney
76b4cae357
UefiCpuPkg/MtrrLib: Fix some typo and clean up code format
...
Fixed some typo. Removed some trailing spaces and TAB key. Clean up code format.
Cc: Feng Tian <feng.tian@intel.com >
Cc: Michael Kinney <michael.d.kinney@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com >
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Reviewed-by: Feng Tian <feng.tian@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19152 6f19259b-4bc3-4df7-8a09-765794883524
2015-12-08 05:20:44 +00:00
Jeff Fan
46309b1101
UefiCpuPkg/MtrrLib: Add PCD PcdCpuNumberOfReservedVariableMtrrs
...
Current MtrrLib reserves 2 variable MTRRs for some legacy OS boot (CSM boots)
may require some MTRRs to be reserved for OS use. But UEFI OS boot will not use
MTRRs.
Per Scott's suggestion in
link: http://article.gmane.org/gmane.comp.bios.edk2.devel/4099
Add one PCD PcdCpuNumberOfReservedVariableMtrrs to specify the number of
variable MTRRs reserved for OS use. Setting its default value to 2 is for
back-compatibility.
Cc: Scott Duplichan <scott@notabs.org >
Cc: Feng Tian <feng.tian@intel.com >
Cc: Michael Kinney <michael.d.kinney@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com >
Suggested-by: Scott Duplichan <scott@notabs.org >
Reviewed-by: Feng Tian <feng.tian@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19151 6f19259b-4bc3-4df7-8a09-765794883524
2015-12-08 05:19:34 +00:00