Pratikkumar V Prajapati has uploaded this change for review. ( https://review.coreboot.org/21241
Change subject: soc/intel/cannonlake: Use common mca_configure() API
......................................................................
soc/intel/cannonlake: Use common mca_configure() API
Use mca_configure() API from cpulib to configure
Intel Machine Check Architecture (MCA)
Change-Id: Ib4943a7f7929775bd5e9945462e530ef68a398b8
Signed-off-by: Pratik Prajapati <pratikkumar.v.prajapati(a)intel.com>
---
M src/soc/intel/cannonlake/cpu.c
1 file changed, 4 insertions(+), 24 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/21241/1
diff --git a/src/soc/intel/cannonlake/cpu.c b/src/soc/intel/cannonlake/cpu.c
index ec979f0..2faadfd 100644
--- a/src/soc/intel/cannonlake/cpu.c
+++ b/src/soc/intel/cannonlake/cpu.c
@@ -129,29 +129,6 @@
wrmsr(IA32_ENERGY_PERFORMANCE_BIAS, msr);
}
-static void configure_mca(void)
-{
- msr_t msr;
- int i;
- int num_banks;
-
- msr = rdmsr(IA32_MCG_CAP);
- num_banks = msr.lo & 0xff;
- msr.lo = msr.hi = 0;
- /*
- * TODO(adurbin): This should only be done on a cold boot. Also, some
- * of these banks are core vs package scope. For now every CPU clears
- * every bank.
- */
- for (i = 0; i < num_banks; i++) {
- /* Clear the machine check status */
- wrmsr(IA32_MC0_STATUS + (i * 4), msr);
- /* Initialize machine checks */
- wrmsr(IA32_MC0_CTL + i * 4,
- (msr_t) {.lo = 0xffffffff, .hi = 0xffffffff});
- }
-}
-
static void configure_c_states(void)
{
msr_t msr;
@@ -194,7 +171,10 @@
void soc_core_init(device_t cpu)
{
/* Clear out pending MCEs */
- configure_mca();
+ /* TODO(adurbin): This should only be done on a cold boot. Also, some
+ * of these banks are core vs package scope. For now every CPU clears
+ * every bank. */
+ mca_configure();
/* Enable the local CPU apics */
enable_lapic_tpr();
--
To view, visit https://review.coreboot.org/21241
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib4943a7f7929775bd5e9945462e530ef68a398b8
Gerrit-Change-Number: 21241
Gerrit-PatchSet: 1
Gerrit-Owner: Pratikkumar V Prajapati <pratikkumar.v.prajapati(a)intel.com>
Pratikkumar V Prajapati has uploaded this change for review. ( https://review.coreboot.org/21240
Change subject: soc/intel/skylake: Use common mca_configure() API
......................................................................
soc/intel/skylake: Use common mca_configure() API
Use mca_configure() API from cpulib to configure
Intel Machine Check Architecture (MCA)
Change-Id: Ia96cb82fff3def46dbecb09dee94de86f179abe6
Signed-off-by: Pratik Prajapati <pratikkumar.v.prajapati(a)intel.com>
---
M src/soc/intel/skylake/cpu.c
1 file changed, 4 insertions(+), 24 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/40/21240/1
diff --git a/src/soc/intel/skylake/cpu.c b/src/soc/intel/skylake/cpu.c
index 031a01d..0ad5dc9 100644
--- a/src/soc/intel/skylake/cpu.c
+++ b/src/soc/intel/skylake/cpu.c
@@ -324,29 +324,6 @@
printk(BIOS_DEBUG, "cpu: energy policy set to %u\n", policy);
}
-static void configure_mca(void)
-{
- msr_t msr;
- int i;
- int num_banks;
-
- msr = rdmsr(IA32_MCG_CAP);
- num_banks = msr.lo & 0xff;
- msr.lo = msr.hi = 0;
- /*
- * TODO(adurbin): This should only be done on a cold boot. Also, some
- * of these banks are core vs package scope. For now every CPU clears
- * every bank.
- */
- for (i = 0; i < num_banks; i++) {
- /* Clear the machine check status */
- wrmsr(IA32_MC0_STATUS + (i * 4), msr);
- /* Initialize machine checks */
- wrmsr(IA32_MC0_CTL + i * 4,
- (msr_t) {.lo = 0xffffffff, .hi = 0xffffffff});
- }
-}
-
static void configure_c_states(void)
{
msr_t msr;
@@ -410,7 +387,10 @@
void soc_core_init(device_t cpu)
{
/* Clear out pending MCEs */
- configure_mca();
+ /* TODO(adurbin): This should only be done on a cold boot. Also, some
+ * of these banks are core vs package scope. For now every CPU clears
+ * every bank. */
+ mca_configure();
/* Enable the local CPU apics */
enable_lapic_tpr();
--
To view, visit https://review.coreboot.org/21240
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia96cb82fff3def46dbecb09dee94de86f179abe6
Gerrit-Change-Number: 21240
Gerrit-PatchSet: 1
Gerrit-Owner: Pratikkumar V Prajapati <pratikkumar.v.prajapati(a)intel.com>
Nico Huber has submitted this change and it was merged. ( https://review.coreboot.org/21205 )
Change subject: direct pci: Always initialize Address_State
......................................................................
direct pci: Always initialize Address_State
Let Initialize() always initialize the Address_State. This is not only
the expected behaviour but also necessary to share the contract with
other implementations.
Change-Id: I0454dfd6c36f7d4298edeec5b84d929e3160eb7b
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
Reviewed-on: https://review.coreboot.org/21205
Reviewed-by: Adrian-Ken Rueegsegger <ken(a)codelabs.ch>
---
M common/direct/hw-pci-dev.adb
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Nico Huber: Verified
Adrian-Ken Rueegsegger: Looks good to me, approved
diff --git a/common/direct/hw-pci-dev.adb b/common/direct/hw-pci-dev.adb
index 9bd7d1d..3d76521 100644
--- a/common/direct/hw-pci-dev.adb
+++ b/common/direct/hw-pci-dev.adb
@@ -108,6 +108,8 @@
begin
if MMConf_Base /= 0 then
MM.Set_Base_Address (MMConf_Base);
+ else
+ MM.Set_Base_Address (Config.Default_MMConf_Base);
end if;
Success := MMConf_Base /= 0 or Config.Default_MMConf_Base_Set;
end Initialize;
--
To view, visit https://review.coreboot.org/21205
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: libhwbase
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I0454dfd6c36f7d4298edeec5b84d929e3160eb7b
Gerrit-Change-Number: 21205
Gerrit-PatchSet: 2
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Adrian-Ken Rueegsegger <ken(a)codelabs.ch>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Nico Huber has submitted this change and it was merged. ( https://review.coreboot.org/21207 )
Change subject: gma: Fix refined contract of Initialize()
......................................................................
gma: Fix refined contract of Initialize()
To be compatible with HW.PCI.Dev implementations that do actual register
accesses, we have to account for hardware state updates.
Change-Id: I86e42163d7847f7011bcf9a0ef5c2c7f25b4b1be
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
Reviewed-on: https://review.coreboot.org/21207
Reviewed-by: Patrick Georgi <pgeorgi(a)google.com>
Reviewed-by: Adrian-Ken Rueegsegger <ken(a)codelabs.ch>
---
M common/hw-gfx-gma.adb
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Nico Huber: Verified
Patrick Georgi: Looks good to me, approved
Adrian-Ken Rueegsegger: Looks good to me, but someone else must approve
diff --git a/common/hw-gfx-gma.adb b/common/hw-gfx-gma.adb
index 94f3ceb..101de18 100644
--- a/common/hw-gfx-gma.adb
+++ b/common/hw-gfx-gma.adb
@@ -301,7 +301,7 @@
with
Refined_Global =>
(In_Out =>
- (Config.Valid_Port_GPU,
+ (Config.Valid_Port_GPU, Dev.PCI_State,
Registers.Register_State, Port_IO.State),
Input =>
(Time.State),
--
To view, visit https://review.coreboot.org/21207
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I86e42163d7847f7011bcf9a0ef5c2c7f25b4b1be
Gerrit-Change-Number: 21207
Gerrit-PatchSet: 2
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Adrian-Ken Rueegsegger <ken(a)codelabs.ch>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Alexander Couzens has removed Martin Roth from this change. ( https://review.coreboot.org/21238 )
Change subject: Kconfig: move Mainboard selection to the top level
......................................................................
Removed reviewer Martin Roth.
--
To view, visit https://review.coreboot.org/21238
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: deleteReviewer
Gerrit-Change-Id: Ic21abc69a3430475c232d8050626d6bca98c5514
Gerrit-Change-Number: 21238
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/21162 )
Change subject: Makefile: Keep list of exported variables
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/21162
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2ce9eff32d817ec190441550116376843abd1c11
Gerrit-Change-Number: 21162
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 28 Aug 2017 17:33:13 +0000
Gerrit-HasComments: No