Kevin Chiu has uploaded a new patch set (#2). ( https://review.coreboot.org/28889 )
Change subject: google/grunt: extract OEM string from CBFS
......................................................................
google/grunt: extract OEM string from CBFS
In CBFS layout:
oem.bin size is 10 bytes.
In cbfs_boot_load_file, buffer size will need to be larger than decompressed_size,
otherwise CBFS data can not be extracted into buffer.
Then we need to check buffer whether it's empty string separately.
BUG=b:79874904
BRANCH=master
TEST=emerge-grunt coreboot
Change-Id: I4f1bbb690ecca515ac920f5058ee19b5bfd8fa5e
Signed-off-by: Kevin Chiu <Kevin.Chiu(a)quantatw.com>
---
M src/mainboard/google/kahlee/variants/baseboard/mainboard.c
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/28889/2
--
To view, visit https://review.coreboot.org/28889
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I4f1bbb690ecca515ac920f5058ee19b5bfd8fa5e
Gerrit-Change-Number: 28889
Gerrit-PatchSet: 2
Gerrit-Owner: Kevin Chiu <Kevin.Chiu(a)quantatw.com>
Gerrit-CC: build bot (Jenkins) <no-reply(a)coreboot.org>
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/28889 )
Change subject: google/grunt: extract OEM string from CBFS
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/28889/1/src/mainboard/google/kahlee/variant…
File src/mainboard/google/kahlee/variants/baseboard/mainboard.c:
https://review.coreboot.org/#/c/28889/1/src/mainboard/google/kahlee/variant…
PS1, Line 94: if(oem_bin_data[0] != '\0')
space required before the open parenthesis '('
--
To view, visit https://review.coreboot.org/28889
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I4f1bbb690ecca515ac920f5058ee19b5bfd8fa5e
Gerrit-Change-Number: 28889
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Chiu <Kevin.Chiu(a)quantatw.com>
Gerrit-CC: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 03 Oct 2018 02:16:29 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Kevin Chiu has uploaded this change for review. ( https://review.coreboot.org/28889
Change subject: google/grunt: extract OEM string from CBFS
......................................................................
google/grunt: extract OEM string from CBFS
In CBFS layout:
oem.bin size is 10 bytes.
In cbfs_boot_load_file, buffer size will need to be larger than decompressed_size,
otherwise CBFS data can not be extracted into buffer.
Then we need to check buffer whether it's empty string separately.
BUG=b:79874904
BRANCH=master
TEST=emerge-grunt coreboot
Change-Id: I4f1bbb690ecca515ac920f5058ee19b5bfd8fa5e
Signed-off-by: Kevin Chiu <Kevin.Chiu(a)quantatw.com>
---
M src/mainboard/google/kahlee/variants/baseboard/mainboard.c
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/28889/1
diff --git a/src/mainboard/google/kahlee/variants/baseboard/mainboard.c b/src/mainboard/google/kahlee/variants/baseboard/mainboard.c
index d60023f..3e84a7b 100644
--- a/src/mainboard/google/kahlee/variants/baseboard/mainboard.c
+++ b/src/mainboard/google/kahlee/variants/baseboard/mainboard.c
@@ -88,9 +88,10 @@
if (manuf)
return manuf;
- if (cbfs_boot_load_file("oem.bin", oem_bin_data,
- sizeof(oem_bin_data) - 1,
- CBFS_TYPE_RAW))
+ cbfs_boot_load_file("oem.bin", oem_bin_data,
+ sizeof(oem_bin_data),
+ CBFS_TYPE_RAW);
+ if(oem_bin_data[0] != '\0')
manuf = &oem_bin_data[0];
else
manuf = CONFIG_MAINBOARD_SMBIOS_MANUFACTURER;
--
To view, visit https://review.coreboot.org/28889
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f1bbb690ecca515ac920f5058ee19b5bfd8fa5e
Gerrit-Change-Number: 28889
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Chiu <Kevin.Chiu(a)quantatw.com>
Pratikkumar V Prajapati has uploaded this change for review. ( https://review.coreboot.org/28888
Change subject: soc/intel/skylake: check for NULL with if condition
......................................................................
soc/intel/skylake: check for NULL with if condition
To make klockwork happy, this patch removes assert() and checks
if the dev is NULL with if condition only.
Change-Id: Icd2c8490c8bda14ecd752437d463a7110fe40aea
Signed-off-by: Pratik Prajapati <pratikkumar.v.prajapati(a)intel.com>
---
M src/soc/intel/skylake/cpu.c
1 file changed, 14 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/88/28888/1
diff --git a/src/soc/intel/skylake/cpu.c b/src/soc/intel/skylake/cpu.c
index 417c4bc..3733fe0 100644
--- a/src/soc/intel/skylake/cpu.c
+++ b/src/soc/intel/skylake/cpu.c
@@ -547,9 +547,14 @@
int soc_fill_sgx_param(struct sgx_param *sgx_param)
{
struct device *dev = SA_DEV_ROOT;
- assert(dev != NULL);
- config_t *conf = dev->chip_info;
+ config_t *conf;
+ if (!dev) {
+ printk(BIOS_ERR, "Failed to get root dev for checking SGX param\n");
+ return -1;
+ }
+
+ conf = dev->chip_info;
if (!conf) {
printk(BIOS_ERR, "Failed to get chip_info for SGX param\n");
return -1;
@@ -561,9 +566,14 @@
int soc_fill_vmx_param(struct vmx_param *vmx_param)
{
struct device *dev = SA_DEV_ROOT;
- assert(dev != NULL);
- config_t *conf = dev->chip_info;
+ config_t *conf;
+ if (!dev) {
+ printk(BIOS_ERR, "Failed to get root dev for checking VMX param\n");
+ return -1;
+ }
+
+ conf = dev->chip_info;
if (!conf) {
printk(BIOS_ERR, "Failed to get chip_info for VMX param\n");
return -1;
--
To view, visit https://review.coreboot.org/28888
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd2c8490c8bda14ecd752437d463a7110fe40aea
Gerrit-Change-Number: 28888
Gerrit-PatchSet: 1
Gerrit-Owner: Pratikkumar V Prajapati <pratikkumar.v.prajapati(a)intel.com>
Bora Guvendik has abandoned this change. ( https://review.coreboot.org/23765 )
Change subject: remove acpi emmc code for an experiment
......................................................................
Abandoned
--
To view, visit https://review.coreboot.org/23765
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: abandon
Gerrit-Change-Id: I048e74f96f5662a5300a05db140255bce33fad76
Gerrit-Change-Number: 23765
Gerrit-PatchSet: 1
Gerrit-Owner: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Surendranath Gurivireddy <surendranath.r.gurivireddy(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Surendranath R Gurivireddy <surendranath.r.gurivireddy(a)intel.com>
Bora Guvendik has abandoned this change. ( https://review.coreboot.org/21532 )
Change subject: [DO NOT MERGE] cannonlake: Hack to enable ACPI in OS
......................................................................
Abandoned
--
To view, visit https://review.coreboot.org/21532
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: abandon
Gerrit-Change-Id: Ie6a2944587dde228fdd31b5ae17d3a60195079c9
Gerrit-Change-Number: 21532
Gerrit-PatchSet: 2
Gerrit-Owner: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Abhay Kumar <abhay.kumar(a)intel.com>
Gerrit-Reviewer: AndreX Andraos <andrex.andraos(a)intel.com>
Gerrit-Reviewer: Andrex Andraos <andrex.andraos(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-Reviewer: John Zhao <john.zhao(a)intel.com>
Gerrit-Reviewer: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: Vaibhav Shankar <vaibhav.shankar(a)intel.com>
Gerrit-Reviewer: Wei-nan Liu <wei-nan.liu(a)intel.com>
Bora Guvendik has abandoned this change. ( https://review.coreboot.org/23643 )
Change subject: force single core
......................................................................
Abandoned
--
To view, visit https://review.coreboot.org/23643
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: abandon
Gerrit-Change-Id: I39bdbe3ffeff5ad714057dbdcaa75d24ea09dae6
Gerrit-Change-Number: 23643
Gerrit-PatchSet: 1
Gerrit-Owner: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: AndreX Andraos <andrex.andraos(a)intel.com>
Gerrit-Reviewer: Andrex Andraos <andrex.andraos(a)intel.corp-partner.google.com>
Gerrit-Reviewer: John Zhao <john.zhao(a)intel.com>
Gerrit-Reviewer: Lijian Zhao <lijian.zhao(a)intel.com>
Bora Guvendik has abandoned this change. ( https://review.coreboot.org/23642 )
Change subject: enable DCI for cnl_rvp Y/U
......................................................................
Abandoned
--
To view, visit https://review.coreboot.org/23642
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: abandon
Gerrit-Change-Id: I9e70c0f1d2a58d94e64c37d755046323352b8593
Gerrit-Change-Number: 23642
Gerrit-PatchSet: 1
Gerrit-Owner: Bora Guvendik <bora.guvendik(a)intel.com>