diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-04-06 15:16:45 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-04-11 17:59:57 -0500 |
commit | 086f3277bc3f50afe07f6ab07562ba422fc5baab (patch) | |
tree | c450145faa8f894dd7f9e874640975690973d398 /hdata/spira.c | |
parent | 4d359aaac9878601482027ec074fc1d9616132ac (diff) | |
download | skiboot-086f3277bc3f50afe07f6ab07562ba422fc5baab.zip skiboot-086f3277bc3f50afe07f6ab07562ba422fc5baab.tar.gz skiboot-086f3277bc3f50afe07f6ab07562ba422fc5baab.tar.bz2 |
hdata/spira: parse vpd to add part-number and serial-number to xscom@ node
Expected by FWTS and associates our processor with the part/serial
number, which is obviously a good thing for one's own sanity.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hdata/spira.c')
-rw-r--r-- | hdata/spira.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hdata/spira.c b/hdata/spira.c index 19f456a..360b7c7 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -557,9 +557,11 @@ static bool add_xscom_sppcrd(uint64_t xscom_base) if (version >= 0x000a) { vpd = HDIF_get_idata(hdif, SPPCRD_IDATA_MODULE_VPD, &vpd_sz); - if (CHECK_SPPTR(vpd)) + if (CHECK_SPPTR(vpd)) { dt_add_property(np, "ibm,module-vpd", vpd, vpd_sz); + vpd_data_parse(np, vpd, vpd_sz); + } } /* |