Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36657 )
Change subject: lib/fmap: Add optional pre-RAM cache
......................................................................
Patch Set 9:
(1 comment)
Sorry for the issues and thanks to Arthur for taking care of them (CB:36908)!
https://review.coreboot.org/c/coreboot/+/36657/9/src/lib/fmap.c
File src/lib/fmap.c:
https://review.coreboot.org/c/coreboot/+/36657/9/src/lib/fmap.c@119
PS9, Line 119: if (!region_device_sz(&cache->rdev))
Suppose car_get_var_ptr returns 0 (e.g. […]
Hmm... yeah, no, I assumed that the result of car_get_var_ptr() was always valid. It seems that FSP 1.0 has some more weird quirks.
If I understand it correctly there might be a way to solve with with the car_get_ptr()/car_set_ptr() stuff, but it would be complicated because the relative pointer into another CAR region is inside the struct mem_region_device, so we'd have to take the whole use of region_device in here apart and open code it instead. I don't think that's worth it, so how about just disabling pre-RAM caching on those platforms? CB:36937
--
To view, visit
https://review.coreboot.org/c/coreboot/+/36657
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2820436776ef620bdc4481b5cd4b6957764248ea
Gerrit-Change-Number: 36657
Gerrit-PatchSet: 9
Gerrit-Owner: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Reviewer: Frans Hendriks
fhendriks@eltan.com
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Joel Kitching
kitching@google.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Mike Banon
mikebdp2@gmail.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-CC: Yu-Ping Wu
yupingso@google.com
Gerrit-Comment-Date: Mon, 18 Nov 2019 21:07:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Patrick Georgi
pgeorgi@google.com
Gerrit-MessageType: comment