Mathias Krause (mathias.krause(a)secunet.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/617
-gerrit
commit 26ddf1e0580b4b31a4576760bdbe6f640eb8fd72
Author: Mathias Krause <mathias.krause(a)secunet.com>
Date: Wed Feb 8 10:32:57 2012 +0100
libpayload: code cosmetics
Be consistend with coding style at least within a function -- don't mix
sizeof with plain values.
Change-Id: Iefb5b7fe4f54977f5505fc9cea65c9c4af3e7f3a
Signed-off-by: Mathias Krause <mathias.krause(a)secunet.com>
---
payloads/libpayload/drivers/options.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/payloads/libpayload/drivers/options.c b/payloads/libpayload/drivers/options.c
index 8161c22..7c76251 100644
--- a/payloads/libpayload/drivers/options.c
+++ b/payloads/libpayload/drivers/options.c
@@ -309,7 +309,7 @@ int set_option_from_string(const struct nvram_accessor *nvram, struct cb_cmos_op
switch (cmos_entry->config) {
case 'h':
/* only works on little endian */
- raw = malloc(8);
+ raw = malloc(sizeof(u64));
*(u64*)raw = strtoull(value, NULL, 0);
break;
case 's':
the following patch was just integrated into master:
commit 74c0819a95be57196d9f25aebbf9f61aa8114749
Author: Sven Schnelle <svens(a)stackframe.org>
Date: Thu Feb 9 21:05:20 2012 +0100
i5000: halt second BSP
If both FSBs on i5000 are equipped with CPU packages, one CPU
from each package is elected as BSP. To prevent races between
both BSPs, hlt the second BSP.
Change-Id: I6bfcb17d34e9f028280acff1694309e37307ec21
Signed-off-by: Sven Schnelle <svens(a)stackframe.org>
Build-Tested: build bot (Jenkins) at Thu Feb 9 22:30:52 2012, giving +1
Reviewed-By: Sven Schnelle <svens(a)stackframe.org> at Fri Feb 10 10:28:17 2012, giving +2
See http://review.coreboot.org/615 for details.
-gerrit
Sven Schnelle (svens(a)stackframe.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/615
-gerrit
commit 74c0819a95be57196d9f25aebbf9f61aa8114749
Author: Sven Schnelle <svens(a)stackframe.org>
Date: Thu Feb 9 21:05:20 2012 +0100
i5000: halt second BSP
If both FSBs on i5000 are equipped with CPU packages, one CPU
from each package is elected as BSP. To prevent races between
both BSPs, hlt the second BSP.
Change-Id: I6bfcb17d34e9f028280acff1694309e37307ec21
Signed-off-by: Sven Schnelle <svens(a)stackframe.org>
---
src/northbridge/intel/i5000/Makefile.inc | 1 +
src/northbridge/intel/i5000/halt_second_bsp.S | 29 +++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/src/northbridge/intel/i5000/Makefile.inc b/src/northbridge/intel/i5000/Makefile.inc
index a5623c0..5e75159 100644
--- a/src/northbridge/intel/i5000/Makefile.inc
+++ b/src/northbridge/intel/i5000/Makefile.inc
@@ -19,3 +19,4 @@
driver-y += northbridge.c
romstage-y += raminit.c udelay.c
+cpu_incs += src/northbridge/intel/i5000/halt_second_bsp.S
diff --git a/src/northbridge/intel/i5000/halt_second_bsp.S b/src/northbridge/intel/i5000/halt_second_bsp.S
new file mode 100644
index 0000000..a1a1b15
--- /dev/null
+++ b/src/northbridge/intel/i5000/halt_second_bsp.S
@@ -0,0 +1,29 @@
+ /* Save BIST result */
+
+ movl %eax, %ebp
+
+ /* Read the semaphore register of i5000 (BOFL0).
+ If it returns zero, it means there was already
+ another read by another CPU */
+
+ movl $0x800080c0, %eax
+ movw $0xcf8, %dx
+ outl %eax, %dx
+
+ addw $4, %dx
+ inl %dx, %eax
+ cmp $0, %eax
+ jne 1f
+
+ /* degrade BSP to AP */
+ mov $0x1b, %ecx
+ rdmsr
+ andl $(~0x100), %eax
+ wrmsr
+
+ cli
+loop: hlt
+ jmp loop
+
+1: /* Restore BIST */
+ mov %ebp, %eax
Sven Schnelle (svens(a)stackframe.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/615
-gerrit
commit 8c64567a2309229fba3a891fe15b0d55da2ff0b0
Author: Sven Schnelle <svens(a)stackframe.org>
Date: Thu Feb 9 21:05:20 2012 +0100
i5000: halt second BSP
If both FSBs on i5000 are equipped with CPU packages, one CPU
from each package is elected as BSP. To prevent races between
both BSPs, hlt the second BSP.
Change-Id: I6bfcb17d34e9f028280acff1694309e37307ec21
Signed-off-by: Sven Schnelle <svens(a)stackframe.org>
---
src/northbridge/intel/i5000/Makefile.inc | 1 +
src/northbridge/intel/i5000/halt_second_bsp.S | 29 +++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/src/northbridge/intel/i5000/Makefile.inc b/src/northbridge/intel/i5000/Makefile.inc
index a5623c0..5e75159 100644
--- a/src/northbridge/intel/i5000/Makefile.inc
+++ b/src/northbridge/intel/i5000/Makefile.inc
@@ -19,3 +19,4 @@
driver-y += northbridge.c
romstage-y += raminit.c udelay.c
+cpu_incs += src/northbridge/intel/i5000/halt_second_bsp.S
diff --git a/src/northbridge/intel/i5000/halt_second_bsp.S b/src/northbridge/intel/i5000/halt_second_bsp.S
new file mode 100644
index 0000000..4d52224
--- /dev/null
+++ b/src/northbridge/intel/i5000/halt_second_bsp.S
@@ -0,0 +1,29 @@
+ /* Save BIST result */
+
+ movl %eax, %ebp
+
+ /* Read the semaphore register of i5000 (BOFL0).
+ If it returns zero, it means there was already
+ another read by another CPU */
+
+ movl $0x800080c0, %eax
+ movw $0xcf8, %dx
+ outl %eax, %dx
+
+ addw $4, %dx
+ inl %dx, %eax
+ cmp $0, %eax
+ jne 1f
+
+ /* degrade BSP to AP */
+ mov $0x1b, %ecx
+ rdmsr
+ andl $(~0x100), %eax
+ wrmsr
+
+ cli
+ hlt
+tloop: jmp tloop
+
+1: /* Restore BIST */
+ mov %ebp, %eax
the following patch was just integrated into master:
commit 3220062a8c6312889c98688c6cee0ced13e31dbf
Author: Sven Schnelle <svens(a)stackframe.org>
Date: Fri Dec 2 16:21:35 2011 +0100
Add Intel Socket LGA771
Change-Id: Iee7d3ff2884d8c43ff1af498160589e551bc9cc8
Signed-off-by: Sven Schnelle <svens(a)stackframe.org>
Build-Tested: build bot (Jenkins) at Sat Dec 17 20:02:48 2011, giving +1
Reviewed-By: Sven Schnelle <svens(a)stackframe.org> at Thu Feb 9 21:12:32 2012, giving +2
See http://review.coreboot.org/492 for details.
-gerrit
Sven Schnelle (svens(a)stackframe.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/615
-gerrit
commit e5ce5d2160acc69fae296c1fcf89f2c12dadd1e3
Author: Sven Schnelle <svens(a)stackframe.org>
Date: Thu Feb 9 21:05:20 2012 +0100
i5000: halt second BSP
If both FSBs on i5000 are equipped with CPU packages, one CPU
from each package is elected as BSP. To prevent races between
both BSPs, hlt the second BSP.
Change-Id: I6bfcb17d34e9f028280acff1694309e37307ec21
Signed-off-by: Sven Schnelle <svens(a)stackframe.org>
---
src/northbridge/intel/i5000/Makefile.inc | 1 +
src/northbridge/intel/i5000/halt_second_bsp.S | 23 +++++++++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/src/northbridge/intel/i5000/Makefile.inc b/src/northbridge/intel/i5000/Makefile.inc
index a5623c0..0c3ce0d 100644
--- a/src/northbridge/intel/i5000/Makefile.inc
+++ b/src/northbridge/intel/i5000/Makefile.inc
@@ -19,3 +19,4 @@
driver-y += northbridge.c
romstage-y += raminit.c udelay.c
+cpu_incs += src/northbridge/intel/i5000/halt_second_bsp.S
\ No newline at end of file
diff --git a/src/northbridge/intel/i5000/halt_second_bsp.S b/src/northbridge/intel/i5000/halt_second_bsp.S
new file mode 100644
index 0000000..da13178
--- /dev/null
+++ b/src/northbridge/intel/i5000/halt_second_bsp.S
@@ -0,0 +1,23 @@
+ /* Save BIST result */
+
+ movl %eax, %ebp
+
+ /* Read the semaphore register of i5000 (BOFL0).
+ If it returns zero, it means there was already
+ another read by another CPU */
+
+ movl $0x800080c0, %eax
+ movw $0xcf8, %dx
+ outl %eax, %dx
+
+ addw $4, %dx
+ inl %dx, %eax
+ cmp $0, %eax
+ jne 1f
+
+ cli
+ hlt
+tloop: jmp tloop
+
+1: /* Restore BIST */
+ mov %ebp, %eax
the following patch was just integrated into master:
commit ede2da9d2d9fffcf8a57d19958bedf595cc46f01
Author: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Date: Thu Feb 9 16:51:38 2012 +0200
VIA cpus: apply un-written naming rules
Rename files and directories:
model_c3 -> c3
model_c7 -> c7
Change-Id: If144fc501e8ae44b347ac44fa90c689c33a8e126
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Build-Tested: build bot (Jenkins) at Thu Feb 9 16:08:30 2012, giving +1
Reviewed-By: Stefan Reinauer <stefan.reinauer(a)coreboot.org> at Thu Feb 9 19:45:49 2012, giving +2
See http://review.coreboot.org/614 for details.
-gerrit