diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-04-29 20:13:20 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-04-30 11:57:24 +1000 |
commit | a1cfaaccecf0643375a30954629166e428c05f2f (patch) | |
tree | 164217359513c91c0f7d18ad9c419c3eb8a1e038 | |
parent | d784330d9a1e0089eb8764c13f38b6174401c89f (diff) | |
download | skiboot-a1cfaaccecf0643375a30954629166e428c05f2f.zip skiboot-a1cfaaccecf0643375a30954629166e428c05f2f.tar.gz skiboot-a1cfaaccecf0643375a30954629166e428c05f2f.tar.bz2 |
chip: Fix chip name display for Naples
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | hw/xscom.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -504,7 +504,7 @@ void xscom_init(void) struct proc_chip *chip; const char *chip_name; static const char *chip_names[] = { - "UNKNOWN", "P7", "P7+", "P8E", "P8", + "UNKNOWN", "P7", "P7+", "P8E", "P8", "P8NVL", }; chip = get_chip(gcid); @@ -521,8 +521,11 @@ void xscom_init(void) /* Grab processor type and EC level */ xscom_init_chip_info(chip); - chip_name = chip->type > PROC_CHIP_P8_VENICE ? "INVALID" : - chip_names[chip->type]; + if (chip->type >= ARRAY_SIZE(chip_names)) + chip_name = "INVALID"; + else + chip_name = chip_names[chip->type]; + printf("XSCOM: chip 0x%x at 0x%llx [%s DD%x.%x]\n", gcid, chip->xscom_base, chip_name, |