Martin Roth has posted comments on this change. ( https://review.coreboot.org/28060 )
Change subject: intel/common/block: Fix issues found by klockwork
......................................................................
Patch Set 4: Code-Review+2
--
To view, visit https://review.coreboot.org/28060
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: I5e7caa15a3911e05ff346d338493673af5318a51
Gerrit-Change-Number: 28060
Gerrit-PatchSet: 4
Gerrit-Owner: John Zhao <john.zhao(a)intel.com>
Gerrit-Reviewer: John Zhao <john.zhao(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: AndreX Andraos <andrex.andraos(a)intel.com>
Gerrit-CC: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-CC: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-Comment-Date: Thu, 16 Aug 2018 22:09:09 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: Yes
Martin Roth has posted comments on this change. ( https://review.coreboot.org/28165 )
Change subject: coreboot-sdk: Add libjaylink-dev for future flashrom builds
......................................................................
Patch Set 1:
How soon do you need this updated on the builders?
--
To view, visit https://review.coreboot.org/28165
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: I13c5464cd0b5bc9c21d7b4831a0b7fdd9fbc85c6
Gerrit-Change-Number: 28165
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Thu, 16 Aug 2018 21:25:29 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
Martin Roth has posted comments on this change. ( https://review.coreboot.org/28165 )
Change subject: coreboot-sdk: Add libjaylink-dev for future flashrom builds
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/28165
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: I13c5464cd0b5bc9c21d7b4831a0b7fdd9fbc85c6
Gerrit-Change-Number: 28165
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Thu, 16 Aug 2018 21:25:09 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: Yes
John Zhao has posted comments on this change. ( https://review.coreboot.org/28060 )
Change subject: intel/common/block: Fix issues found by klockwork
......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/#/c/28060/2/src/soc/intel/common/block/graphics…
File src/soc/intel/common/block/graphics/graphics.c:
https://review.coreboot.org/#/c/28060/2/src/soc/intel/common/block/graphics…
PS2, Line 43: if (!dev || !dev->
> if (!dev || !dev->enabled)
done
--
To view, visit https://review.coreboot.org/28060
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: I5e7caa15a3911e05ff346d338493673af5318a51
Gerrit-Change-Number: 28060
Gerrit-PatchSet: 4
Gerrit-Owner: John Zhao <john.zhao(a)intel.com>
Gerrit-Reviewer: John Zhao <john.zhao(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: AndreX Andraos <andrex.andraos(a)intel.com>
Gerrit-CC: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-CC: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-CC: Martin Roth <martinroth(a)google.com>
Gerrit-Comment-Date: Thu, 16 Aug 2018 21:22:35 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/28060
to look at the new patch set (#4).
Change subject: intel/common/block: Fix issues found by klockwork
......................................................................
intel/common/block: Fix issues found by klockwork
src/soc/intel/common/block/cpu/mp_init.c
Function init_cpus: Pointer dev checked for NULL may be
dereferenced.
src/soc/intel/common/block/graphics/graphics.c
Function graphics_get_bar: Pointer dev returned from
call may be NULL and will be dereferenced.
BRANCH=None
TEST=Built & booted Yorp board.
Change-Id: I5e7caa15a3911e05ff346d338493673af5318a51
Signed-off-by: John Zhao <john.zhao(a)intel.com>
---
M src/soc/intel/common/block/cpu/mp_init.c
M src/soc/intel/common/block/graphics/graphics.c
2 files changed, 6 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/28060/4
--
To view, visit https://review.coreboot.org/28060
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: I5e7caa15a3911e05ff346d338493673af5318a51
Gerrit-Change-Number: 28060
Gerrit-PatchSet: 4
Gerrit-Owner: John Zhao <john.zhao(a)intel.com>
Gerrit-Reviewer: John Zhao <john.zhao(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: AndreX Andraos <andrex.andraos(a)intel.com>
Gerrit-CC: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-CC: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-CC: Martin Roth <martinroth(a)google.com>
Julius Werner has posted comments on this change. ( https://review.coreboot.org/28104 )
Change subject: lib/fit_payload: Add coreboot tables support for FDT.
......................................................................
Patch Set 8:
(6 comments)
https://review.coreboot.org/#/c/28104/8/src/lib/device_tree.c
File src/lib/device_tree.c:
https://review.coreboot.org/#/c/28104/8/src/lib/device_tree.c@865
PS8, Line 865: (void *)
Well, this just moves the problem around. I meant that we should make the value arguments of *all* the dt_add_xxx_prop() functions const (I guess you really only need to change dt_add_bin_prop(), the others can convert implicitly from non-const to const). And (struct device_tree_prop).prop.data would then also need to become a pointer to const. Then, I think, this should be possible without any casts.
https://review.coreboot.org/#/c/28104/7/src/lib/fit_payload.c
File src/lib/fit_payload.c:
https://review.coreboot.org/#/c/28104/7/src/lib/fit_payload.c@153
PS7, Line 153: payload.*
> Why userspace ? I'd use the term payload here
These values are currently not read by any kernel driver, they're just there for consumption through /proc/device-tree. Of course, that may change, so "expose ... to the OS" or something might be more accurate.
https://review.coreboot.org/#/c/28104/7/src/lib/fit_payload.c@202
PS7, Line 202:
> Should be after dt_apply_fixups(), as it could remove and regenerate the whole devicetree.
That's... not really the idea of fixups, though, they're just supposed to be for minor additions or changes. In depthcharge, this *is* a fixup, and execution order between different fixups is random.
Anyway, shouldn't make a difference where it runs.
https://review.coreboot.org/#/c/28104/8/src/lib/fit_payload.c
File src/lib/fit_payload.c:
https://review.coreboot.org/#/c/28104/8/src/lib/fit_payload.c@139
PS8, Line 139: includes the coreboot table). */
nit: Does this fit on one line?
https://review.coreboot.org/#/c/28104/8/src/lib/fit_payload.c@140
PS8, Line 140: cbmem_get_imd
I'm confused... how does this build? cbmem_get_imd() is a static inline in another .c file.
Actually, is it possible that Jenkins doesn't test any of this code because none of our platforms enables CONFIG_PAYLOAD_FIT_SUPPORT? It would be great if you guys could select that for the Cavium board so that we have test coverage for this code.
(Please also test that this gives you the right numbers. You can dump this via /proc/device-tree/firmware/coreboot/reg, and it should give you big-endian numbers that match the CBMEM ranges coreboot prints during boot.)
https://review.coreboot.org/#/c/28104/8/src/lib/fit_payload.c@153
PS8, Line 153: payload.*/
nit: Doesn't need to wrap
--
To view, visit https://review.coreboot.org/28104
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: Ib714a021a24f51407558f484cd97aa58ecd43977
Gerrit-Change-Number: 28104
Gerrit-PatchSet: 8
Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Julius Werner <jwerner(a)chromium.org>
Gerrit-Comment-Date: Thu, 16 Aug 2018 21:02:42 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Julius Werner has posted comments on this change. ( https://review.coreboot.org/28100 )
Change subject: libpayload/x86/exception: Add ability to handle user defined interrupts
......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/#/c/28100/1/payloads/libpayload/arch/x86/except…
File payloads/libpayload/arch/x86/exception.c:
https://review.coreboot.org/#/c/28100/1/payloads/libpayload/arch/x86/except…
PS1, Line 165: /* Handle user defined vectors */
> Ah, I haven't tested with a gdb build yet, so I haven't seen it break. […]
If you think that's better, sure. I doubt we'll ever have enough handlers for the list to really be a problem, but it doesn't make a big difference either way (you're trading the time to iterate through a tiny list vs. the time to initialize a 2K array of function pointers).
--
To view, visit https://review.coreboot.org/28100
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: Id9c2583c7c3d9be4a06a25e546e64399f2b0620c
Gerrit-Change-Number: 28100
Gerrit-PatchSet: 2
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Julius Werner <jwerner(a)chromium.org>
Gerrit-CC: Martin Roth <martinroth(a)google.com>
Gerrit-Comment-Date: Thu, 16 Aug 2018 20:45:00 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No