[coreboot-gerrit] Change in coreboot[master]: lib/fit_payload: Add coreboot tables support for FDT.

Julius Werner (Code Review) gerrit at coreboot.org
Thu Aug 16 01:11:24 CEST 2018


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 3:

(4 comments)

https://review.coreboot.org/#/c/28104/2/src/lib/fit_payload.c
File src/lib/fit_payload.c:

https://review.coreboot.org/#/c/28104/2/src/lib/fit_payload.c@112
PS2, Line 112: 	// Need to add 'ranges' to the intermediate node to make 'reg' work.
Remember to convert everything to coreboot comment style.


https://review.coreboot.org/#/c/28104/2/src/lib/fit_payload.c@119
PS2, Line 119: (char *)
Do you need this cast? Looks like we didn't need it in depthcharge so I'm confused...

Maybe we should change all the dt_add_..._prop() stuff to take const values?


https://review.coreboot.org/#/c/28104/2/src/lib/fit_payload.c@138
PS2, Line 138: 	reg_sizes[1] = cbmem_overhead_size();
These aren't the right numbers... at least not the numbers used by depthcharge. We don't actually have any uses for this field yet, so it's not that big of a deal, but we should try to keep it consistent.

The correct range (that depthcharge uses) is found by cbmem_add_bootmem(). Maybe we should expand that function to a slightly more generic cbmem_full_area(&start, &size) or something like that, so that we can use it both for bootmem and here.


https://review.coreboot.org/#/c/28104/2/src/lib/fit_payload.c@143
PS2, Line 143: exported from coreboot
nit: not really "exported from coreboot" anymore now, since we're still in coreboot



-- 
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: 3
Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki at gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
Gerrit-CC: Julius Werner <jwerner at chromium.org>
Gerrit-Comment-Date: Wed, 15 Aug 2018 23:11:24 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180815/aa1fc88e/attachment.html>


More information about the coreboot-gerrit mailing list