Richard Spiegel has uploaded this change for review. ( https://review.coreboot.org/27956
Change subject: cpu/x86/mp_init.c: Avoid static analysis error for unused value
......................................................................
cpu/x86/mp_init.c: Avoid static analysis error for unused value
Within procedure save_bsp_msrs, the structure pointer "msr_entry" is updated
every time procedure save_msr() is called. However, after the last call of
save_msr(), "msr_entry" is not used, thus causing a static analysis error.
Add a "(void)msr_entry;" at the end to avoid the static analysis error.
BUG=b:112253891
TEST=Build and boot grunt.
Change-Id: If0fb336fbf49eec3da255fadbe38b3a38768d0cf
Signed-off-by: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
---
M src/cpu/x86/mp_init.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/27956/1
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c
index d124721..4d8b028 100644
--- a/src/cpu/x86/mp_init.c
+++ b/src/cpu/x86/mp_init.c
@@ -296,6 +296,7 @@
msr_entry = save_msr(MTRR_DEF_TYPE_MSR, msr_entry);
fixed_mtrrs_hide_amd_rwdram();
+ (void)msr_entry;
return msr_count;
}
--
To view, visit https://review.coreboot.org/27956
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: If0fb336fbf49eec3da255fadbe38b3a38768d0cf
Gerrit-Change-Number: 27956
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Hello Sheng-Liang Pan,
I'd like you to do a code review. Please visit
https://review.coreboot.org/27954
to review the following change.
Change subject: google/bobba: Add Raydium touch screen support
......................................................................
google/bobba: Add Raydium touch screen support
Current coreboot does not create ACPI device for OS to recognize Raydium
touchscreen.
List the touch screen in the devicetree so that the correct ACPI device
are created.
BUG=b:none
BRANCH=master
TEST=emerge-octopus coreboot
Change-Id: Ic61a69e19e97520da0702dfe6cb7496563fc34f4
Signed-off-by: Pan Sheng-Liang <sheng-liang.pan(a)quanta.corp-partner.google.com>
---
M src/mainboard/google/octopus/variants/bobba/overridetree.cb
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/27954/1
diff --git a/src/mainboard/google/octopus/variants/bobba/overridetree.cb b/src/mainboard/google/octopus/variants/bobba/overridetree.cb
index 466d19b..a0972cc 100644
--- a/src/mainboard/google/octopus/variants/bobba/overridetree.cb
+++ b/src/mainboard/google/octopus/variants/bobba/overridetree.cb
@@ -43,6 +43,18 @@
register "has_power_resource" = "1"
device i2c 10 on end
end
+ chip drivers/i2c/generic
+ register "hid" = ""RAYD0001""
+ register "desc" = ""Raydium Touchscreen""
+ register "irq" = "ACPI_IRQ_EDGE_LOW(GPIO_21_IRQ)"
+ register "probed" = "1"
+ register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_36)"
+ register "reset_delay_ms" = "1"
+ register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_152)"
+ register "enable_delay_ms" = "50"
+ register "has_power_resource" = "1"
+ device i2c 39 on end
+ end
end # - I2C 7
end
end
--
To view, visit https://review.coreboot.org/27954
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: Ic61a69e19e97520da0702dfe6cb7496563fc34f4
Gerrit-Change-Number: 27954
Gerrit-PatchSet: 1
Gerrit-Owner: Pan Sheng-Liang <sl.pan.quantw(a)gmail.com>
Gerrit-Reviewer: Sheng-Liang Pan <sheng-liang.pan(a)quanta.corp-partner.google.com>
Richard Spiegel has uploaded this change for review. ( https://review.coreboot.org/27952
Change subject: drivers/spi/spi_flash.c: Check input paarameter
......................................................................
drivers/spi/spi_flash.c: Check input paarameter
In procedure spi_flash_cmd_erase(), parameter "len" is not validated and
could lead to the return of an invalid (not-initialized) value. Validate
the parameter early on.
BUG=b:112253891
TEST=Build and boot grunt.
Change-Id: I0b5129a15c9e0ea45f4dba4ab0729196cb64699b
Signed-off-by: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
---
M src/drivers/spi/spi_flash.c
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/27952/1
diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c
index 9cb1085..01ff7b2 100644
--- a/src/drivers/spi/spi_flash.c
+++ b/src/drivers/spi/spi_flash.c
@@ -206,6 +206,10 @@
printk(BIOS_WARNING, "SF: Erase offset/length not multiple of erase size\n");
return -1;
}
+ if (len == 0) {
+ printk(BIOS_WARNING, "Erase length cannot be 0\n");
+ return -1;
+ }
cmd[0] = flash->erase_cmd;
start = offset;
--
To view, visit https://review.coreboot.org/27952
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: I0b5129a15c9e0ea45f4dba4ab0729196cb64699b
Gerrit-Change-Number: 27952
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Richard Spiegel has uploaded this change for review. ( https://review.coreboot.org/27951
Change subject: cpu/x86/mp_init.c: Fix error treatment
......................................................................
cpu/x86/mp_init.c: Fix error treatment
In procedure allocate_cpu_devices(), if structure pointer new is null skip
using the the pointer. Add a "continue;" to skip using the pointer.
BUG=b:112253891
TEST=Build and boot grunt.
Change-Id: I7011fbfa0725f22a6dfbca6752e668eddac3463c
Signed-off-by: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
---
M src/cpu/x86/mp_init.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/27951/1
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c
index d124721..ff02b16 100644
--- a/src/cpu/x86/mp_init.c
+++ b/src/cpu/x86/mp_init.c
@@ -404,6 +404,7 @@
if (new == NULL) {
printk(BIOS_CRIT, "Could not allocate CPU device\n");
max_cpus--;
+ continue;
}
new->name = processor_name;
cpus[i].dev = new;
--
To view, visit https://review.coreboot.org/27951
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: I7011fbfa0725f22a6dfbca6752e668eddac3463c
Gerrit-Change-Number: 27951
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/27881 )
Change subject: arm64: Turn architectural register accessors into inline functions
......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/#/c/27881/4/src/arch/arm64/include/armv8/arch/l…
File src/arch/arm64/include/armv8/arch/lib_helpers.h:
https://review.coreboot.org/#/c/27881/4/src/arch/arm64/include/armv8/arch/l…
PS4, Line 162: #define MAKE_REGISTER_ACCESSORS_EL123(reg) \
Macros with complex values should be enclosed in parentheses
--
To view, visit https://review.coreboot.org/27881
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: I2c41cc3ce49ee26bf12cd34e3d0509d8e61ffc63
Gerrit-Change-Number: 27881
Gerrit-PatchSet: 4
Gerrit-Owner: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Tue, 07 Aug 2018 22:21:03 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No