[coreboot-gerrit] Change in coreboot[master]: amd/stoneyridge: Use BIOS_DEBUG to log PM1 and PMxC0 status
Patrick Georgi (Code Review)
gerrit at coreboot.org
Thu Oct 4 11:43:27 CEST 2018
Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/28885 )
Change subject: amd/stoneyridge: Use BIOS_DEBUG to log PM1 and PMxC0 status
......................................................................
amd/stoneyridge: Use BIOS_DEBUG to log PM1 and PMxC0 status
Use BIOS_DEBUG consistently to log PM1 and PMxC0 status registers
on boot. print_num_status_bits() was already using BIOS_DEBUG.
TEST=Inspect console for Grunt
BUG=b:110788201
Change-Id: If7da8c7c86e90a661338903ad05cc41e11f507d2
Signed-off-by: Edward Hill <ecgh at chromium.org>
Reviewed-on: https://review.coreboot.org/28885
Reviewed-by: Raul Rangel <rrangel at chromium.org>
Tested-by: build bot (Jenkins) <no-reply at coreboot.org>
---
M src/soc/amd/stoneyridge/southbridge.c
1 file changed, 6 insertions(+), 7 deletions(-)
Approvals:
build bot (Jenkins): Verified
Raul Rangel: Looks good to me, approved
diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c
index b122f83..763ddd7 100644
--- a/src/soc/amd/stoneyridge/southbridge.c
+++ b/src/soc/amd/stoneyridge/southbridge.c
@@ -667,7 +667,7 @@
/* PMxC0 S5/Reset Status shows the source of previous reset. */
uint32_t pmxc0_status = pm_read32(PM_RST_STATUS);
- static const char *const pmxc0_status_bits[] = {
+ static const char *const pmxc0_status_bits[32] = {
[0] = "ThermalTrip",
[1] = "FourSecondPwrBtn",
[2] = "Shutdown",
@@ -688,13 +688,12 @@
[27] = "SyncFlood",
[28] = "HangReset",
[29] = "EcWatchdogRst",
- [31] = "BIT31",
};
- printk(BIOS_SPEW, "PMxC0 STATUS: 0x%x ", pmxc0_status);
+ printk(BIOS_DEBUG, "PMxC0 STATUS: 0x%x ", pmxc0_status);
print_num_status_bits(ARRAY_SIZE(pmxc0_status_bits), pmxc0_status,
pmxc0_status_bits);
- printk(BIOS_SPEW, "\n");
+ printk(BIOS_DEBUG, "\n");
}
/* After console init */
@@ -763,7 +762,7 @@
static uint16_t print_pm1_status(uint16_t pm1_sts)
{
- static const char *const pm1_sts_bits[] = {
+ static const char *const pm1_sts_bits[16] = {
[0] = "TMROF",
[4] = "BMSTATUS",
[5] = "GBL",
@@ -776,9 +775,9 @@
if (!pm1_sts)
return 0;
- printk(BIOS_SPEW, "PM1_STS: ");
+ printk(BIOS_DEBUG, "PM1_STS: ");
print_num_status_bits(ARRAY_SIZE(pm1_sts_bits), pm1_sts, pm1_sts_bits);
- printk(BIOS_SPEW, "\n");
+ printk(BIOS_DEBUG, "\n");
return pm1_sts;
}
--
To view, visit https://review.coreboot.org/28885
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If7da8c7c86e90a661338903ad05cc41e11f507d2
Gerrit-Change-Number: 28885
Gerrit-PatchSet: 2
Gerrit-Owner: Edward Hill <ecgh at chromium.org>
Gerrit-Reviewer: Edward Hill <ecgh at chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth at google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi at google.com>
Gerrit-Reviewer: Raul Rangel <rrangel at chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181004/4c861332/attachment.html>
More information about the coreboot-gerrit
mailing list