cedarhouse1(a)comcast.net has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38854 )
Change subject: cpu/x86/smm: Make BIOS all upper case
......................................................................
cpu/x86/smm: Make BIOS all upper case
In an CL:38821 a reviewer noted that BIOS is upper case. This
patch fixes that.
Signed-off-by: Eugene D. Myers <edmyers(a)tycho.nsa.gov>
Change-Id: I85d78b5e08a7643c3d87e3daf353d6b3ba8d306b
---
M src/cpu/x86/smm/smm_module_loader.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/38854/1
diff --git a/src/cpu/x86/smm/smm_module_loader.c b/src/cpu/x86/smm/smm_module_loader.c
index 66a40c4..856ca78 100644
--- a/src/cpu/x86/smm/smm_module_loader.c
+++ b/src/cpu/x86/smm/smm_module_loader.c
@@ -396,7 +396,7 @@
/* Does the required amount of memory exceed the SMRAM region size? */
total_size = total_stack_size + handler_size;
total_size += fxsave_size + SMM_DEFAULT_SIZE;
- // account for the bios resource list
+ /* Account for the BIOS resource list */
if (CONFIG(STM))
total_size += CONFIG_BIOS_RESOURCE_LIST_SIZE;
--
To view, visit https://review.coreboot.org/c/coreboot/+/38854
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I85d78b5e08a7643c3d87e3daf353d6b3ba8d306b
Gerrit-Change-Number: 38854
Gerrit-PatchSet: 1
Gerrit-Owner: cedarhouse1(a)comcast.net
Gerrit-MessageType: newchange
cedarhouse1(a)comcast.net has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38852 )
Change subject: security/intel/stm: Use depends on ENABLE_VMX
......................................................................
security/intel/stm: Use depends on ENABLE_VMX
The STM is a part of the core VTx and using ENABLE_VMX will make the
STM option available for any configuration that has an Intel
processor that supports VTx.
Signed-off-by: Eugene D. Myers <edmyers(a)tycho.nsa.gov>
Change-Id: I57ff82754e6c692c8722d41f812e35940346888a
---
M src/security/intel/stm/Kconfig
M src/soc/intel/skylake/Kconfig
2 files changed, 1 insertion(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/38852/1
diff --git a/src/security/intel/stm/Kconfig b/src/security/intel/stm/Kconfig
index 144deed..9f5f763 100644
--- a/src/security/intel/stm/Kconfig
+++ b/src/security/intel/stm/Kconfig
@@ -1,12 +1,7 @@
-
-config PLATFORM_SUPPORTS_STM
- bool
- depends on SMM_TSEG
-
config STM
bool "Enable STM"
default n
- depends on PLATFORM_SUPPORTS_STM
+ depends on ENABLE_VMX
select USE_BLOBS
help
diff --git a/src/soc/intel/skylake/Kconfig b/src/soc/intel/skylake/Kconfig
index ae60a63..6277cea 100644
--- a/src/soc/intel/skylake/Kconfig
+++ b/src/soc/intel/skylake/Kconfig
@@ -44,7 +44,6 @@
select NO_FIXED_XIP_ROM_SIZE
select PARALLEL_MP
select PARALLEL_MP_AP_WORK
- select PLATFORM_SUPPORTS_STM
select PLATFORM_USES_FSP2_0
select REG_SCRIPT
select SA_ENABLE_DPR
--
To view, visit https://review.coreboot.org/c/coreboot/+/38852
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I57ff82754e6c692c8722d41f812e35940346888a
Gerrit-Change-Number: 38852
Gerrit-PatchSet: 1
Gerrit-Owner: cedarhouse1(a)comcast.net
Gerrit-MessageType: newchange
cedarhouse1(a)comcast.net has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38836 )
Change subject: security/intel/stm: Check for processor STM support
......................................................................
security/intel/stm: Check for processor STM support
This check ensures that the current processor supports a STM.
Normally, any Intel x86 processor that has VTX also supports
an STM and this check should fail only in the rare case that STM
support has been disabled for a processor.
Signed-off-by: Eugene D. Myers <edmyers(a)tycho.nsa.gov>
Change-Id: I518bb2aa1bdec94b5b6d5e991d7575257f3dc6e9
---
M src/include/cpu/x86/msr.h
M src/security/intel/stm/StmPlatformSmm.c
2 files changed, 19 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/38836/1
diff --git a/src/include/cpu/x86/msr.h b/src/include/cpu/x86/msr.h
index 49abd41..c3764b2 100644
--- a/src/include/cpu/x86/msr.h
+++ b/src/include/cpu/x86/msr.h
@@ -74,6 +74,7 @@
#define MCA_STATUS_LO_ERRCODE_EXT_MASK (0x3f << MCA_STATUS_LO_ERRCODE_EXT_SH)
#define MCA_STATUS_LO_ERRCODE_MASK (0xffff << 0)
#define IA32_VMX_BASIC_MSR 0x480
+#define DUAL_MONITOR_TREATMENT_HI (1 << 17)
#define IA32_VMX_MISC_MSR 0x485
#define MC0_ADDR 0x402
#define MC0_MISC 0x403
diff --git a/src/security/intel/stm/StmPlatformSmm.c b/src/security/intel/stm/StmPlatformSmm.c
index d7064b0..69cbcae 100644
--- a/src/security/intel/stm/StmPlatformSmm.c
+++ b/src/security/intel/stm/StmPlatformSmm.c
@@ -157,11 +157,22 @@
void stm_setup(uintptr_t mseg, int cpu, int num_cpus, uintptr_t smbase,
uintptr_t base_smbase, uint32_t offset32)
{
- msr_t InitMseg;
- msr_t MsegChk;
+ msr_t init_mseg;
+ msr_t mseg_chk;
+ msr_t stm_chk;
+
uintptr_t addr_calc; // used to calculate the stm resource heap area
printk(BIOS_DEBUG, "STM: set up for cpu %d/%d\n", cpu, num_cpus);
+
+ stm_chk = rdmsr(IA32_VMX_BASIC_MSR);
+
+ // Does this processor support an STM?
+ if ((stm_chk.hi & DUAL_MONITOR_TREATMENT_HI) != DUAL_MONITOR_TREATMENT_HI) {
+ printk(BIOS_DEBUG, "STM: not supported on cpu: %d\n", cpu);
+ return;
+ }
+
if (cpu == 0) {
// need to create the BIOS resource list once
@@ -183,15 +194,15 @@
if (stm_load_status == 0) {
// enable STM for this cpu
- InitMseg.lo = mseg | IA32_SMM_MONITOR_VALID;
- InitMseg.hi = 0;
+ init_mseg.lo = mseg | IA32_SMM_MONITOR_VALID;
+ init_mseg.hi = 0;
- wrmsr(IA32_SMM_MONITOR_CTL_MSR, InitMseg);
+ wrmsr(IA32_SMM_MONITOR_CTL_MSR, init_mseg);
- MsegChk = rdmsr(IA32_SMM_MONITOR_CTL_MSR);
+ mseg_chk = rdmsr(IA32_SMM_MONITOR_CTL_MSR);
printk(BIOS_DEBUG, "STM: MSEG Initialized (%d) 0x%08x 0x%08x\n",
- cpu, MsegChk.hi, MsegChk.lo);
+ cpu, mseg_chk.hi, mseg_chk.lo);
// setup the descriptor for this cpu
setup_smm_descriptor((void *)smbase, (void *) base_smbase,
--
To view, visit https://review.coreboot.org/c/coreboot/+/38836
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I518bb2aa1bdec94b5b6d5e991d7575257f3dc6e9
Gerrit-Change-Number: 38836
Gerrit-PatchSet: 1
Gerrit-Owner: cedarhouse1(a)comcast.net
Gerrit-MessageType: newchange
Adrian-Ken Rueegsegger has uploaded this change for review. ( https://review.coreboot.org/c/libhwbase/+/38983 )
Change subject: time: Add T_First constant
......................................................................
time: Add T_First constant
The constant can be used to initialize variables of type HW.Time.T.
Change-Id: I65246d6776d464bfa8648075b48e7de61cd82902
Signed-off-by: Adrian-Ken Rueegsegger <ken(a)codelabs.ch>
---
M common/hw-time.ads
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/libhwbase refs/changes/83/38983/1
diff --git a/common/hw-time.ads b/common/hw-time.ads
index aeda5ec..5cfa963 100644
--- a/common/hw-time.ads
+++ b/common/hw-time.ads
@@ -18,6 +18,8 @@
type T is private;
+ T_First : constant T;
+
function Now return T
with
Volatile_Function,
@@ -71,6 +73,8 @@
type T is new Word64;
+ T_First : constant T := T'First;
+
end HW.Time;
-- vim: set ts=8 sts=3 sw=3 et:
--
To view, visit https://review.coreboot.org/c/libhwbase/+/38983
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libhwbase
Gerrit-Branch: master
Gerrit-Change-Id: I65246d6776d464bfa8648075b48e7de61cd82902
Gerrit-Change-Number: 38983
Gerrit-PatchSet: 1
Gerrit-Owner: Adrian-Ken Rueegsegger <ken(a)codelabs.ch>
Gerrit-MessageType: newchange
Adrian-Ken Rueegsegger has uploaded this change for review. ( https://review.coreboot.org/c/libhwbase/+/38982 )
Change subject: mutime: Make Sinfo an imported constant
......................................................................
mutime: Make Sinfo an imported constant
The subject info data structure is static and is not changed during
runtime. Make Sinfo an imported constant and adjust refinement of
abstract timer state and global contract of Hz function accordingly.
They are no longer volatile.
Change-Id: I5729bc7f2d77c5c51a6cab2edc7953e95c9e4d29
Signed-off-by: Adrian-Ken Rueegsegger <ken(a)codelabs.ch>
---
M common/hw-time-timer.ads
M common/mutime/hw-time-timer.adb
2 files changed, 3 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/libhwbase refs/changes/82/38982/1
diff --git a/common/hw-time-timer.ads b/common/hw-time-timer.ads
index 90978df..2bec99b 100644
--- a/common/hw-time-timer.ads
+++ b/common/hw-time-timer.ads
@@ -15,8 +15,7 @@
private package HW.Time.Timer
with
Abstract_State => ((Timer_State with
- Part_Of => HW.Time.State,
- External => Async_Writers),
+ Part_Of => HW.Time.State),
(Abstract_Time with
Part_Of => HW.Time.State,
External => Async_Writers))
@@ -38,7 +37,6 @@
function Hz return T
with
- Volatile_Function,
Global => (Input => Timer_State);
end HW.Time.Timer;
diff --git a/common/mutime/hw-time-timer.adb b/common/mutime/hw-time-timer.adb
index c683d6f..8e9b497 100644
--- a/common/mutime/hw-time-timer.adb
+++ b/common/mutime/hw-time-timer.adb
@@ -25,10 +25,9 @@
:= ((Musinfo.Subject_Info_Type_Size + (16#1000# - 1))
/ 16#1000#) * 16#1000#;
- Sinfo : Musinfo.Subject_Info_Type
+ Sinfo : constant Musinfo.Subject_Info_Type
with
- Volatile,
- Async_Writers,
+ Import,
Address => System'To_Address (Sinfo_Base_Address);
Sched_Info : Muschedinfo.Scheduling_Info_Type
--
To view, visit https://review.coreboot.org/c/libhwbase/+/38982
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libhwbase
Gerrit-Branch: master
Gerrit-Change-Id: I5729bc7f2d77c5c51a6cab2edc7953e95c9e4d29
Gerrit-Change-Number: 38982
Gerrit-PatchSet: 1
Gerrit-Owner: Adrian-Ken Rueegsegger <ken(a)codelabs.ch>
Gerrit-MessageType: newchange
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38998 )
Change subject: mb/intel/tglrvp: add Tiger Lake memory initialization support
......................................................................
Patch Set 10:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38998/9/src/mainboard/intel/tglrvp…
File src/mainboard/intel/tglrvp/romstage_fsp_params.c:
https://review.coreboot.org/c/coreboot/+/38998/9/src/mainboard/intel/tglrvp…
PS9, Line 84: mem_cfg->SpdAddressTable[0] = 0x0;
> Based on the comment in the Fspm header file we are setting it to 0 when MemorySpdPtr is used.
I believe this UPD already defaults to 0. If you still want to ensure that this doesn't change going forward, you can add this in meminit_lpddr4x_dimm0() itself so that all mainboards can take advantage of that.
--
To view, visit https://review.coreboot.org/c/coreboot/+/38998
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7248862efd1dcd5a0df0e17d39b44c168caa200e
Gerrit-Change-Number: 38998
Gerrit-PatchSet: 10
Gerrit-Owner: Srinidhi N Kaushik <srinidhi.n.kaushik(a)intel.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Raj Astekar <raj.astekar(a)intel.com>
Gerrit-Reviewer: Ravishankar Sarawadi <ravishankar.sarawadi(a)intel.com>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: Srinidhi N Kaushik <srinidhi.n.kaushik(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Wonkyu Kim <wonkyu.kim(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Fri, 21 Feb 2020 06:48:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Srinidhi N Kaushik <srinidhi.n.kaushik(a)intel.com>
Comment-In-Reply-To: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-MessageType: comment