Hung-Te Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34634 )
Change subject: drivers/vpd: add framework to search VPD in romstage
......................................................................
Patch Set 5:
If needed we may even create vpd_preram or vpd_romstage for that.
When I say this I was referring to vpd_preram.c or vpd_romstage.c, not functions.
a. create a vpd_romstage_gets() and vpd_romstage_find() call interface for romstage callers.
Probably no. I think your current version made it harder for people to figure out the right calling sequence.
We can have stage name in file level if needed, but better not in function name.
It's better to keep similar interfaces, but if needed we may still add extra param. I'd recommend
1. Change vpd_cbmem to vpd_cache
2. Change cbmem_add_cros_vpd to vpd_load_cache
3. inside vpd_load_cache, have a way to decide allocating from CBMEM, or a static variable (using malloc).
In this way we can get almost everything unchanged and keep the only minimal difference in single place.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/34634
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iebdba59419a555147fc40391cf17cc6879d9e1b2
Gerrit-Change-Number: 34634
Gerrit-PatchSet: 5
Gerrit-Owner: jonzhang@fb.com
Gerrit-Reviewer: Andrey Petrov
andrey.petrov@gmail.com
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Huang Jin
huang.jin@intel.com
Gerrit-Reviewer: Hung-Te Lin
hungte@chromium.org
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Reviewer: jonzhang@fb.com
Gerrit-Reviewer: Łukasz Siudut
Gerrit-Comment-Date: Mon, 05 Aug 2019 01:08:00 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment