Richard Spiegel 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)
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);
I'd be reluctant to rely on AGESA_SUCCESS being 0 like that. […]
I believe most codes consider 0 as success, because it leaves a wide range for different errors. As fs for what I wrote, I was only explaining why that particular if form would work. That form was how original code has been written.
OTOH, as Marshall properly pointed out, the only reason a status is returned is for a common print if error, so I would be happy with a print after amd_dispatch.
--
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: Sat, 25 May 2019 00:25:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Marshall Dawson
marshalldawson3rd@gmail.com
Comment-In-Reply-To: Richard Spiegel
richard.spiegel@silverbackltd.com
Gerrit-MessageType: comment