Philipp Deppenwiese has posted comments on this change. ( https://review.coreboot.org/27150 )
Change subject: Documentation: Add cavium SoC and mainboard
......................................................................
Patch Set 2: Code-Review+2
Looks good
--
To view, visit https://review.coreboot.org/27150
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: Ibfcd42788e31f684baed658dc3c4dfe1b8e4f354
Gerrit-Change-Number: 27150
Gerrit-PatchSet: 2
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Tue, 19 Jun 2018 18:09:02 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: Yes
Richard Spiegel has uploaded this change for review. ( https://review.coreboot.org/27162
Change subject: soc/amd/stoneyridge/southbridge.c: Fix get_index_bit limit check
......................................................................
soc/amd/stoneyridge/southbridge.c: Fix get_index_bit limit check
Limit is the maximum number of bits to be tested, however it's being checked
against the number of bytes of uint32_t. when it should be number of bits.
Create a macro to provide the number of bits, and use it instead of sizeof.
BUG=b:75996437
TEST=Add debug messages to see code passing beyond the check, build and
boot grunt, check that it passed the limit check, remove debug code.
Change-Id: Id1dfda26d789183b346b20c37fec923d996b80db
Signed-off-by: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
---
M src/soc/amd/stoneyridge/include/soc/southbridge.h
M src/soc/amd/stoneyridge/southbridge.c
2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/62/27162/1
diff --git a/src/soc/amd/stoneyridge/include/soc/southbridge.h b/src/soc/amd/stoneyridge/include/soc/southbridge.h
index 1750547..b0f0c55 100644
--- a/src/soc/amd/stoneyridge/include/soc/southbridge.h
+++ b/src/soc/amd/stoneyridge/include/soc/southbridge.h
@@ -355,6 +355,7 @@
#define PM1_LIMIT 16
#define GPE0_LIMIT 28
+#define TOTAL_BITS(a) (8 * sizeof(a))
struct stoneyridge_aoac {
int enable;
diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c
index 02daa260..24462f2 100644
--- a/src/soc/amd/stoneyridge/southbridge.c
+++ b/src/soc/amd/stoneyridge/southbridge.c
@@ -697,7 +697,7 @@
uint16_t i;
uint32_t t;
- if (limit >= sizeof(uint32_t))
+ if (limit >= TOTAL_BITS(uint32_t))
return -1;
/* get a mask of valid bits. Ex limit = 3, set bits 0-2 */
--
To view, visit https://review.coreboot.org/27162
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: Id1dfda26d789183b346b20c37fec923d996b80db
Gerrit-Change-Number: 27162
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/25739 )
Change subject: lib: Raw import FIT parser
......................................................................
Patch Set 16:
Build Successful
https://qa.coreboot.org/job/coreboot-checkpatch/29175/ : SUCCESS
https://qa.coreboot.org/job/coreboot-gerrit/75090/ : SUCCESS
--
To view, visit https://review.coreboot.org/25739
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: Iee56db328d7eeffb0eaf829841243b0b9195c199
Gerrit-Change-Number: 25739
Gerrit-PatchSet: 16
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Julius Werner <jwerner(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, 19 Jun 2018 11:57:56 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No