Andrey Petrov has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38838 )
Change subject: cpu: Add initial xeonsp support broilerplate
......................................................................
Patch Set 2:
(4 comments)
https://review.coreboot.org/c/coreboot/+/38838/2//COMMIT_MSG
Commit Message:
https://review.coreboot.org/c/coreboot/+/38838/2//COMMIT_MSG@7
PS2, Line 7: broilerplate
> Very likely.
Done
https://review.coreboot.org/c/coreboot/+/38838/2//COMMIT_MSG@9
PS2, Line 9: broilerplate
> same here
Done
https://review.coreboot.org/c/coreboot/+/38838/2//COMMIT_MSG@10
PS2, Line 10: xeonsp
> Xeon SP […]
I like xeon_scalable more than xeonsp, thanks.
I will not change the name just yet -- lets see if we will have other variants as well.
The idea behind this patch is to add generic platform code that would be useful by multiple Xeon, uh, "platforms".
The wrinkle with it that you can have a mainboard that can support skylake-sp and cascadelake-sp or icelake-something. Several of CPUs are actually pin-compatible.
https://review.coreboot.org/c/coreboot/+/38838/2//COMMIT_MSG@14
PS2, Line 14: Change-Id: I24346b8a5c30342419db23b5f1adf27d4d0ebc5f
> Missing Signed-off-by line.
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/38838
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I24346b8a5c30342419db23b5f1adf27d4d0ebc5f
Gerrit-Change-Number: 38838
Gerrit-PatchSet: 2
Gerrit-Owner: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 18 Feb 2020 19:16:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Comment-In-Reply-To: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: comment
Hello Jonathan Zhang, David Hendricks, Philipp Deppenwiese, Lance Zhao, build bot (Jenkins), Lijian Zhao, Anjaneya "Reddy" Chagam, Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/38640
to look at the new patch set (#8).
Change subject: cpu: Allow to configure microcode at pre-defined address
......................................................................
cpu: Allow to configure microcode at pre-defined address
FSP-T takes microcode pointer and location parameters, and FSP-T is
invoked before CAR is set-up and before memory is trained. So it is not
possible to modify supplied microcode pointer in runtime. Because of
that we have to hardcode the pointer in bootblock.
Also, current FSP-T on Xeons require microcode (it is not optional).
Reasons for that are currently unclear and are being investigated.
However for the present time we need to be able to add microcode at a
certain offset so FSP-T can be used.
TEST=test on OCP TiogaPass board, as well as out-of-tree CPU/board
Change-Id: I6c02601a7ac64078e556e2032baeccaf27f77da2
Signed-off-by: Andrey Petrov <anpetrov(a)fb.com>
---
M src/cpu/Makefile.inc
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/40/38640/8
--
To view, visit https://review.coreboot.org/c/coreboot/+/38640
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6c02601a7ac64078e556e2032baeccaf27f77da2
Gerrit-Change-Number: 38640
Gerrit-PatchSet: 8
Gerrit-Owner: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: Anjaneya "Reddy" Chagam <anjaneya.chagam(a)intel.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Jonathan Zhang <jonzhang(a)fb.com>
Gerrit-Reviewer: Lance Zhao <lance.zhao(a)gmail.com>
Gerrit-Reviewer: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset
Andrey Petrov has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38640 )
Change subject: cpu: Add microcode at pre-defined address
......................................................................
Patch Set 7:
(2 comments)
https://review.coreboot.org/c/coreboot/+/38640/6//COMMIT_MSG
Commit Message:
https://review.coreboot.org/c/coreboot/+/38640/6//COMMIT_MSG@7
PS6, Line 7: c
> I'm aware that it's not possible to give the microcode location to FSP-T during runtime. […]
ah, now I understand what you meant. Sorry for being so tone-deaf. I believe it may be a good approach (having assembly code load ucode). I do not think it is really necessary to load ucode specifically with assembly before CAR is set up. I'd guess the only reason why would want to do it is that microcode fix is required for CAR to function properly.
Anyway, for now we have to use FSP-T but like I said we are planning on changing that.
Arthur I am marking this comment as 'resolved', please let me know if you have objections.
https://review.coreboot.org/c/coreboot/+/38640/6//COMMIT_MSG@13
PS6, Line 13:
: Also, on current version of FSP-T on Xeons microcode is not optional.
> I think we all agree we need less blobs not more. […]
marking this as "resolved"
--
To view, visit https://review.coreboot.org/c/coreboot/+/38640
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6c02601a7ac64078e556e2032baeccaf27f77da2
Gerrit-Change-Number: 38640
Gerrit-PatchSet: 7
Gerrit-Owner: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-Reviewer: Anjaneya "Reddy" Chagam <anjaneya.chagam(a)intel.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Jonathan Zhang <jonzhang(a)fb.com>
Gerrit-Reviewer: Lance Zhao <lance.zhao(a)gmail.com>
Gerrit-Reviewer: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 18 Feb 2020 18:49:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Arthur Heymans <arthur(a)aheymans.xyz>
Comment-In-Reply-To: Andrey Petrov <anpetrov(a)fb.com>
Gerrit-MessageType: comment
Wim Vervoorn has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38753 )
Change subject: mb/facebook/monolith: Use serial number and UUID from VPD
......................................................................
mb/facebook/monolith: Use serial number and UUID from VPD
The serial number and UUID returned by DMI are retrieved from VPD.
The solution supports a 16 character "serial_number" and a 36 character
"UUID" string.
BUG=N/A
TEST=tested on monolith
Change-Id: I0b6ce769cfa81a1e248a35f6149b7d1bbcf1f836
Signed-off-by: Wim Vervoorn <wvervoorn(a)eltan.com>
---
M src/mainboard/facebook/monolith/ramstage.c
1 file changed, 35 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/38753/1
diff --git a/src/mainboard/facebook/monolith/ramstage.c b/src/mainboard/facebook/monolith/ramstage.c
index bed1049..3e46b85 100644
--- a/src/mainboard/facebook/monolith/ramstage.c
+++ b/src/mainboard/facebook/monolith/ramstage.c
@@ -14,7 +14,14 @@
* GNU General Public License for more details.
*/
+#include <stdint.h>
+#include <console/console.h>
+#include <drivers/vpd/vpd.h>
+#include <lib.h>
+#include <smbios.h>
#include <soc/ramstage.h>
+#include <uuid.h>
+
#include "gpio.h"
void mainboard_silicon_init_params(FSP_SIL_UPD *params)
@@ -24,3 +31,31 @@
gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
params->CdClock = 3;
}
+
+#define VPD_KEY_SERIAL "serial_number"
+#define VPD_KEY_UUID "UUID"
+#define VPD_SERIAL_LEN 17
+
+const char *smbios_system_serial_number(void)
+{
+ static char serial[VPD_SERIAL_LEN];
+
+ if (vpd_gets(VPD_KEY_SERIAL, serial, VPD_SERIAL_LEN, VPD_RO))
+ return serial;
+
+ printk(BIOS_ERR, "serial_number could not be read or invalid.\n");
+ return "";
+}
+
+void smbios_system_set_uuid(u8 *uuid)
+{
+ static char vpd_uuid_string[UUID_STRLEN+1];
+
+ if (vpd_gets(VPD_KEY_UUID, vpd_uuid_string, UUID_STRLEN+1, VPD_RO)) {
+ if (parse_uuid(uuid, vpd_uuid_string))
+ memset(uuid, 0, UUID_LEN);
+ else
+ return;
+ }
+ printk(BIOS_ERR, "UUID could not be read or invalid.\n");
+}
--
To view, visit https://review.coreboot.org/c/coreboot/+/38753
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0b6ce769cfa81a1e248a35f6149b7d1bbcf1f836
Gerrit-Change-Number: 38753
Gerrit-PatchSet: 1
Gerrit-Owner: Wim Vervoorn <wvervoorn(a)eltan.com>
Gerrit-Reviewer: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Wim Vervoorn <wvervoorn(a)eltan.com>
Gerrit-MessageType: newchange