Marshall Dawson has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/31490 )
Change subject: soc/amd/common: Refactor S3 helpers
......................................................................
Patch Set 5:
(1 comment)
I'm fine with the rewrite, subject to what Richard identified.
https://review.coreboot.org/#/c/31490/5/src/soc/amd/common/block/pi/agesawra...
File src/soc/amd/common/block/pi/agesawrapper.c:
https://review.coreboot.org/#/c/31490/5/src/soc/amd/common/block/pi/agesawra...
PS5, Line 315: Status = OemS3Save(&RtbParams->S3DataBlock);
Status is supposed to save the return of amd_dispatch, don't use it here. Instead use: […]
I'd be reluctant to rely on AGESA_SUCCESS being 0 like that. Maybe instead, check Status after amd_dispatch() and if not SUCCESS, print an error and return early.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/31490
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1506ee2f7ecf3cb6ec4cce37a030c05f78ec6d59
Gerrit-Change-Number: 31490
Gerrit-PatchSet: 5
Gerrit-Owner: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: Marshall Dawson
marshalldawson3rd@gmail.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: Richard Spiegel
richard.spiegel@silverbackltd.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Comment-Date: Wed, 22 May 2019 17:45:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Richard Spiegel
richard.spiegel@silverbackltd.com
Gerrit-MessageType: comment