summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Spruck <bspruck@uni-mainz.de>2016-07-27 09:51:19 +0200
committerZdenek Styblik <stybla@turnovfree.net>2016-07-31 07:29:49 +0200
commitf8a711b9e8a06bd73c8565634be69bc37066683d (patch)
treef3a191af1a43c4dc348f0800fb4e32f90087fff1
parentfcf7445bcebdda167a561a54f598b1480b1bfabd (diff)
downloadipmitool-f8a711b9e8a06bd73c8565634be69bc37066683d.tar.gz
ID:452 - Add PICMG extension 5.x for PICMG extension check
PICMG extension 5(UTCA, MicroTCA) is not detected as valid extension. The following patch fixes that at one place. In the second place the board type is detected in a similar way, but it isn't clear if a patch is needed there, too.
-rw-r--r--lib/ipmi_picmg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ipmi_picmg.c b/lib/ipmi_picmg.c
index e5b79e7..c7d9c8e 100644
--- a/lib/ipmi_picmg.c
+++ b/lib/ipmi_picmg.c
@@ -2336,6 +2336,7 @@ picmg_discover(struct ipmi_intf *intf) {
* PICMG Extension Version 2.0 (PICMG 3.0 Revision 1.0 ATCA) to
* PICMG Extension Version 2.3 (PICMG 3.0 Revision 3.0 ATCA)
* PICMG Extension Version 4.1 (PICMG 3.0 Revision 3.0 AMC)
+ * PICMG Extension Version 5.0 (MTCA.0 R1.0)
*/
/* First, check if PICMG extension is available and supported */
@@ -2366,8 +2367,9 @@ picmg_discover(struct ipmi_intf *intf) {
} else if (rsp->data[0] != 0) {
lprintf(LOG_INFO,"Invalid Get PICMG Properties group extension %#x",
rsp->data[0]);
- } else if ((rsp->data[1] & 0x0F) != PICMG_ATCA_MAJOR_VERSION
- && (rsp->data[1] & 0x0F) != PICMG_AMC_MAJOR_VERSION) {
+ } else if ((rsp->data[1] & 0x0F) != PICMG_EXTENSION_ATCA_MAJOR_VERSION
+ && (rsp->data[1] & 0x0F) != PICMG_EXTENSION_AMC0_MAJOR_VERSION
+ && (rsp->data[1] & 0x0F) != PICMG_EXTENSION_UTCA_MAJOR_VERSION) {
lprintf(LOG_INFO,"Unknown PICMG Extension Version %d.%d",
(rsp->data[1] & 0x0F), (rsp->data[1] >> 4));
} else {