Permalink
Browse files

OS-1464 Fix IPMI detection on HP N36L / N40L

  • Loading branch information...
1 parent 281d692 commit d9f9bbeb3275c84a8ce1a0975d43abbdf712ab41 @jjelinek jjelinek committed Aug 9, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 usr/src/uts/intel/io/ipmi/ipmi_main.c
@@ -82,6 +82,16 @@ get_smbios_ipmi_info()
cmn_err(CE_CONT, "!SMBIOS type 0x%x, addr 0x%llx", ipmi.smbip_type,
(long long unsigned int)(ipmi.smbip_addr));
+ /*
+ * Some systems have a bios that will report an IPMI device even when
+ * it is not installed. In this case we see 0x0 as the base address.
+ * If we see this address, assume the device is not really present.
+ */
+ if (ipmi.smbip_addr == NULL) {
+ cmn_err(CE_WARN, "!SMBIOS: Invalid base address");
+ return;
+ }
+
sc->ipmi_io_type = ipmi.smbip_type;
switch (ipmi.smbip_type) {
case SMB_IPMI_T_KCS:

0 comments on commit d9f9bbe

Please sign in to comment.