[Skiboot] [PATCH 27/33] xscom: Log error on invalid partid
Benjamin Herrenschmidt
benh at kernel.crashing.org
Sat Jun 25 08:47:50 AEST 2016
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
hw/xscom.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/xscom.c b/hw/xscom.c
index cb5a4a7..ba539ab 100644
--- a/hw/xscom.c
+++ b/hw/xscom.c
@@ -370,6 +370,7 @@ int xscom_read(uint32_t partid, uint64_t pcb_addr, uint64_t *val)
return OPAL_UNSUPPORTED;
break;
default:
+ prerror("%s: invalid XSCOM partid 0x%x\n", __func__, partid);
return OPAL_PARAMETER;
}
@@ -405,6 +406,7 @@ int xscom_write(uint32_t partid, uint64_t pcb_addr, uint64_t val)
gcid = xscom_decode_chiplet(partid, &pcb_addr);
break;
default:
+ prerror("%s: invalid XSCOM partid 0x%x\n", __func__, partid);
return OPAL_PARAMETER;
}
--
2.7.4
More information about the Skiboot
mailing list