Hello Joel Kitching,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/37472
to review the following change.
Change subject: Update vboot submodule to upstream master
......................................................................
Update vboot submodule to upstream master
Updating from commit id 1c4dbaa0:
2019-11-18 Julius Werner Makefile: Fix typo for MOCK_TPM
to commit id 6ef33b99:
2019-11-22 Hung-Te Lin futility: updater: refactor: unify
getting temp files for firmware images
This brings in 13 new commits.
Change-Id: Ia3a2724f1f10d205026e62c3653823813b49b460
Signed-off-by: Julius Werner <jwerner(a)chromium.org>
---
M 3rdparty/vboot
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/37472/1
diff --git a/3rdparty/vboot b/3rdparty/vboot
index 1c4dbaa..6ef33b9 160000
--- a/3rdparty/vboot
+++ b/3rdparty/vboot
@@ -1 +1 @@
-Subproject commit 1c4dbaa08419e13366db32ed20244f63c34388a0
+Subproject commit 6ef33b990578a9583a3ac53f2c835d4e16219b25
--
To view, visit https://review.coreboot.org/c/coreboot/+/37472
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia3a2724f1f10d205026e62c3653823813b49b460
Gerrit-Change-Number: 37472
Gerrit-PatchSet: 1
Gerrit-Owner: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Joel Kitching <kitching(a)google.com>
Gerrit-MessageType: newchange
Stefan Reinauer has uploaded this change for review. ( https://review.coreboot.org/c/em100/+/37495 )
Change subject: Add udev rules file for /etc/udev/rules.d
......................................................................
Add udev rules file for /etc/udev/rules.d
This will allow usage of the em100 tool without being root. Tested
on Ubuntu.
Signed-off-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Change-Id: Ie440d3b280e0d57e61e9af553c0fa8c59964b03f
---
A 60-dediprog-em100pro.rules
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/em100 refs/changes/95/37495/1
diff --git a/60-dediprog-em100pro.rules b/60-dediprog-em100pro.rules
new file mode 100644
index 0000000..080d295
--- /dev/null
+++ b/60-dediprog-em100pro.rules
@@ -0,0 +1,2 @@
+# drop this in /etc/udev/rules.d
+ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="1235", MODE="664", GROUP="plugdev"
--
To view, visit https://review.coreboot.org/c/em100/+/37495
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: em100
Gerrit-Branch: master
Gerrit-Change-Id: Ie440d3b280e0d57e61e9af553c0fa8c59964b03f
Gerrit-Change-Number: 37495
Gerrit-PatchSet: 1
Gerrit-Owner: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-MessageType: newchange
Andrey Petrov has submitted this change. ( https://review.coreboot.org/c/coreboot/+/37474 )
Change subject: mainboard/facebook/watson: Reclaim unused flash space
......................................................................
mainboard/facebook/watson: Reclaim unused flash space
Currently FMAP does not allocate all the usable space. This change
addresses that by removing unused section and expanding CBFS section.
TEST=tested on actual watson HW
Change-Id: I5f407c11031822d58f11f1a4684845d57653b190
Signed-off-by: Andrey Petrov <anpetrov(a)fb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37474
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh(a)siemens.com>
Reviewed-by: Frans Hendriks <fhendriks(a)eltan.com>
---
M src/mainboard/facebook/watson/board.fmd
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
build bot (Jenkins): Verified
Werner Zeh: Looks good to me, approved
Frans Hendriks: Looks good to me, but someone else must approve
diff --git a/src/mainboard/facebook/watson/board.fmd b/src/mainboard/facebook/watson/board.fmd
index feeb799..e2b8f58 100644
--- a/src/mainboard/facebook/watson/board.fmd
+++ b/src/mainboard/facebook/watson/board.fmd
@@ -20,7 +20,6 @@
# This only exists to satisfy tools that specifically
# look for RO_VPD.
RO_VPD@0x30000 0x1000
- UNUSED_4@0x31000 0x1cf000
- COREBOOT(CBFS)@0x200000 0x800000
+ COREBOOT(CBFS)@0x31000 0x9cf000
}
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/37474
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: 4.11_branch
Gerrit-Change-Id: I5f407c11031822d58f11f1a4684845d57653b190
Gerrit-Change-Number: 37474
Gerrit-PatchSet: 2
Gerrit-Owner: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: merged
Andrey Petrov has submitted this change. ( https://review.coreboot.org/c/coreboot/+/37089 )
Change subject: [BACKPORT] arch/x86: SMBIOS: Improve core count reporting
......................................................................
[BACKPORT] arch/x86: SMBIOS: Improve core count reporting
Current code uses CPUID leaf 0x1, EBX bits 16:23 to determine number for
"core count". However, it turns out this number has little to do with
real number of cores. According to SDM vol 2A, it stays for "maximum
number of addressable IDs for logical processors in this physical
package". This does not seem to take into account fusing of giving
processor.
The new code determines 'core count' by dividing thread-level cpus by
reported logical cores. This seems to be the only way to arrive
to number of cores as it is reported in official CPU datasheet.
TEST=tested on OCP monolake
Change-Id: Id4ba9e3079f92ffe38f9104ffcfafe62582dd259
Signed-off-by: Andrey Petrov <anpetrov(a)fb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36941
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh(a)siemens.com>
(cherry picked from commit 515ef38db40cc44592770c00be8e4980bbaccc69)
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37089
---
M src/arch/x86/smbios.c
1 file changed, 20 insertions(+), 1 deletion(-)
Approvals:
build bot (Jenkins): Verified
Werner Zeh: Looks good to me, approved
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index 725d808..7deac63 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -657,7 +657,26 @@
t->processor_version = smbios_processor_name(t->eos);
t->processor_family = (res.eax > 0) ? 0x0c : 0x6;
t->processor_type = 3; /* System Processor */
- t->core_count = (res.ebx >> 16) & 0xff;
+ /*
+ * If CPUID leaf 11 is available, calculate "core count" by dividing
+ * SMT_ID (logical processors in a core) by Core_ID (number of cores).
+ * This seems to be the way to arrive to a number of cores mentioned on
+ * ark.intel.com.
+ */
+ if (cpu_have_cpuid() && cpuid_get_max_func() >= 0xb) {
+ uint32_t leaf_b_cores = 0, leaf_b_threads = 0;
+ res = cpuid_ext(0xb, 1);
+ leaf_b_cores = res.ebx;
+ res = cpuid_ext(0xb, 0);
+ leaf_b_threads = res.ebx;
+ /* if hyperthreading is not available, pretend this is 1 */
+ if (leaf_b_threads == 0) {
+ leaf_b_threads = 1;
+ }
+ t->core_count = leaf_b_cores / leaf_b_threads;
+ } else {
+ t->core_count = (res.ebx >> 16) & 0xff;
+ }
/* Assume we enable all the cores always, capped only by MAX_CPUS */
t->core_enabled = MIN(t->core_count, CONFIG_MAX_CPUS);
t->l1_cache_handle = 0xffff;
--
To view, visit https://review.coreboot.org/c/coreboot/+/37089
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: 4.11_branch
Gerrit-Change-Id: Id4ba9e3079f92ffe38f9104ffcfafe62582dd259
Gerrit-Change-Number: 37089
Gerrit-PatchSet: 2
Gerrit-Owner: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: merged