Hello Daisuke Nojiri, Shelley Chen,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/33855
to review the following change.
Change subject: libpayload: cbgfx: Run cbgfx_init() before we need it for draw_box()
......................................................................
libpayload: cbgfx: Run cbgfx_init() before we need it for draw_box()
calculate_color() uses the 'fbinfo' global that is initialized by
cbgfx_init(), so we need to run the latter before we can run the former
or we get a null pointer access.
Change-Id: I73ca8e20ca36f64d699379d504fd41dc2084f157
Signed-off-by: Julius Werner <jwerner(a)chromium.org>
---
M payloads/libpayload/drivers/video/graphics.c
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/33855/1
diff --git a/payloads/libpayload/drivers/video/graphics.c b/payloads/libpayload/drivers/video/graphics.c
index 4956326..85a8642 100644
--- a/payloads/libpayload/drivers/video/graphics.c
+++ b/payloads/libpayload/drivers/video/graphics.c
@@ -183,6 +183,10 @@
struct vector top_left;
struct vector size;
struct vector p, t;
+
+ if (cbgfx_init())
+ return CBGFX_ERROR_INIT;
+
const uint32_t color = calculate_color(rgb, 0);
const struct scale top_left_s = {
.x = { .n = box->offset.x, .d = CANVAS_SCALE, },
@@ -193,9 +197,6 @@
.y = { .n = box->size.y, .d = CANVAS_SCALE, }
};
- if (cbgfx_init())
- return CBGFX_ERROR_INIT;
-
transform_vector(&top_left, &canvas.size, &top_left_s, &canvas.offset);
transform_vector(&size, &canvas.size, &size_s, &vzero);
add_vectors(&t, &top_left, &size);
--
To view, visit https://review.coreboot.org/c/coreboot/+/33855
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I73ca8e20ca36f64d699379d504fd41dc2084f157
Gerrit-Change-Number: 33855
Gerrit-PatchSet: 1
Gerrit-Owner: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Daisuke Nojiri <dnojiri(a)chromium.org>
Gerrit-Reviewer: Shelley Chen <shchen(a)google.com>
Gerrit-MessageType: newchange
Name of user not set #1002358 has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33868
Change subject: STM
......................................................................
STM
Change-Id: I8772b1ce542956ac2f159259faa6eb1766730ac4
---
M src/security/intel/stm/SmmStm.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/68/33868/1
diff --git a/src/security/intel/stm/SmmStm.c b/src/security/intel/stm/SmmStm.c
index 4122676..b121be0 100644
--- a/src/security/intel/stm/SmmStm.c
+++ b/src/security/intel/stm/SmmStm.c
@@ -431,7 +431,7 @@
*
* @param resou rce_list A pointer to resource list to be added
* @param num_entries Optional number of entries.
- * If 0, list must be terminated by END_OF_RESOURCES.
+ * If 0, list must be terminated by END_OF_RESOURCES.
*
* @retval true resource valid
* @retval false resource invalid
@@ -468,7 +468,7 @@
*
* @param resource_list A pointer to resource list to be added
* @param num_entries Optional number of entries.
- * If 0, list must be terminated by END_OF_RESOURCES.
+ * If 0, list must be terminated by END_OF_RESOURCES.
*
* @retval SUCCESS If resources are added
* @retval INVALID_PARAMETER If nested procedure detected resource failer
--
To view, visit https://review.coreboot.org/c/coreboot/+/33868
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8772b1ce542956ac2f159259faa6eb1766730ac4
Gerrit-Change-Number: 33868
Gerrit-PatchSet: 1
Gerrit-Owner: Name of user not set #1002358
Gerrit-MessageType: newchange
Jacob Garber has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33744
Change subject: device/dram: Inline value into print statement
......................................................................
device/dram: Inline value into print statement
By default printram() expands to nothing in normal builds, and so
scan-build thinks that the assignment to reg8 is unused. Inline the
value of reg8 into the print statement to silence the warning.
Change-Id: I921fe08949c4135367bee9646b3b365097fab19e
Signed-off-by: Jacob Garber <jgarber1(a)ualberta.ca>
Found-by: scan-build 8.0.0
---
M src/device/dram/ddr3.c
1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/44/33744/1
diff --git a/src/device/dram/ddr3.c b/src/device/dram/ddr3.c
index 3272dac..834dc83 100644
--- a/src/device/dram/ddr3.c
+++ b/src/device/dram/ddr3.c
@@ -382,8 +382,7 @@
dimm->flags.therm_sensor ? "yes" : "no");
/* SDRAM Device Type */
- reg8 = spd[33];
- printram(" Standard SDRAM : %s\n", (reg8 & 0x80) ? "no" : "yes");
+ printram(" Standard SDRAM : %s\n", (spd[33] & 0x80) ? "no" : "yes");
if (spd[63] & 0x01) {
dimm->flags.pins_mirrored = 1;
--
To view, visit https://review.coreboot.org/c/coreboot/+/33744
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I921fe08949c4135367bee9646b3b365097fab19e
Gerrit-Change-Number: 33744
Gerrit-PatchSet: 1
Gerrit-Owner: Jacob Garber <jgarber1(a)ualberta.ca>
Gerrit-MessageType: newchange
Jacob Garber has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33745
Change subject: cpu/amd/family_10h-family_15h: Remove dead assignment
......................................................................
cpu/amd/family_10h-family_15h: Remove dead assignment
Pstate_num is initialized later when it is used as a loop index, so this
duplicate assignment can be removed.
Change-Id: I71429bd3306139a823ed39e751d779e4d874f657
Signed-off-by: Jacob Garber <jgarber1(a)ualberta.ca>
Found-by: scan-build 8.0.0
---
M src/cpu/amd/family_10h-family_15h/powernow_acpi.c
1 file changed, 0 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/33745/1
diff --git a/src/cpu/amd/family_10h-family_15h/powernow_acpi.c b/src/cpu/amd/family_10h-family_15h/powernow_acpi.c
index e648b71..be936f6 100644
--- a/src/cpu/amd/family_10h-family_15h/powernow_acpi.c
+++ b/src/cpu/amd/family_10h-family_15h/powernow_acpi.c
@@ -259,8 +259,6 @@
else if (mctGetLogicalCPUID(0) & AMD_FAM15_ALL)
boost_count = (dtemp >> 2) & 0x7;
- Pstate_num = 0;
-
/* See if the CPUID(0x80000007) returned EDX[7]==1b */
cpuid1 = cpuid(0x80000007);
if ((cpuid1.edx & 0x80) != 0x80) {
--
To view, visit https://review.coreboot.org/c/coreboot/+/33745
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I71429bd3306139a823ed39e751d779e4d874f657
Gerrit-Change-Number: 33745
Gerrit-PatchSet: 1
Gerrit-Owner: Jacob Garber <jgarber1(a)ualberta.ca>
Gerrit-MessageType: newchange