Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/31516 )
Change subject: google/kukui: boot up sspm
......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/#/c/31516/1/src/mainboard/google/kukui/mainboard...
File src/mainboard/google/kukui/mainboard.c:
https://review.coreboot.org/#/c/31516/1/src/mainboard/google/kukui/mainboard...
PS1, Line 44: unsigned char buf[BUF_SIZE];
SSPM_SRAM_BASE is accessed through APB box. It can't support byte access only supports word access. […]
Can you map the area as cacheable? That might prevent that problem because the cache will combine writes. Caching is also important for decompression speed (because the decompression algorithm does many back-references to already decompressed parts).
If you can only map it as device memory, then yeah, you'll probably not get around a static bounce buffer here. It shouldn't be a huge deal because ramstage size is usually not limited. (I'd hide all of that in a separate file then, though... in fact, why is any of this called from mainboard.c? Can't you put it in soc.c?)
--
To view, visit
https://review.coreboot.org/c/coreboot/+/31516
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4ae6034454326f5115cd3948819adc448b67fb1c
Gerrit-Change-Number: 31516
Gerrit-PatchSet: 2
Gerrit-Owner: Erin Lo
erin.lo@mediatek.com
Gerrit-Reviewer: Chun-ta Lin
itspeter@google.com
Gerrit-Reviewer: Erin Lo
erin.lo@mediatek.com
Gerrit-Reviewer: Hung-Te Lin
hungte@chromium.org
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: You-Cheng Syu
youcheng@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Erin Lo
erin.lo@mediatek.corp-partner.google.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-CC: Tristan Hsieh
tristan.shieh@mediatek.com
Gerrit-Comment-Date: Wed, 27 Feb 2019 05:53:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Erin Lo
erin.lo@mediatek.com
Comment-In-Reply-To: Erin Lo
erin.lo@mediatek.corp-partner.google.com
Comment-In-Reply-To: Julius Werner
jwerner@chromium.org
Comment-In-Reply-To: You-Cheng Syu
youcheng@google.com
Comment-In-Reply-To: Hung-Te Lin
hungte@chromium.org
Gerrit-MessageType: comment