summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/sunmdi.c
diff options
context:
space:
mode:
authorRamaswamy Tummala <Ramaswamy.Tummala@Sun.COM>2008-11-11 13:14:57 -0800
committerRamaswamy Tummala <Ramaswamy.Tummala@Sun.COM>2008-11-11 13:14:57 -0800
commit00a3eaf3896a33935e11fd5c5fb5c1714225c067 (patch)
tree3ea400ad9807f014d695cc03c10ee70584a81fcb /usr/src/uts/common/os/sunmdi.c
parent6f02aa444eb77edda1b97ff8a1215c417932a62e (diff)
downloadillumos-joyent-00a3eaf3896a33935e11fd5c5fb5c1714225c067.tar.gz
6566278 Panic when ibd is configured after HCA is unconfigured and configured
6727497 IB nexus should create one pathinfo node per HCA per IB nexus child 6726179 ls -l /devices/ib shows zero devices nodes after doing rem_drv and add_drv of HCA driver 6368026 IOC enumeration issues in multi HCA system 6745259 Calling ddi_remove_minor_node in async thread causes deadlock 6500304 RDS: Support HCA DR 6739584 The 'cfgadm -x list_clients' command has a display problem 6739581 The output of 'cfgadm -x unconfig_clients' command doesn't display the HCA ap_id correctly 6759972 ibmf_unregister() returned busy during HCA unconfigure operation 6754808 IB Stack should recover from HCA unconfigure failures 6725241 ibdm_handle_hca_detach() should update ibdm.ibdm_hca_list_tail pointer 6751608 panic when configuring an IB HCA child 6607950 raise IB port settling time
Diffstat (limited to 'usr/src/uts/common/os/sunmdi.c')
-rw-r--r--usr/src/uts/common/os/sunmdi.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/sunmdi.c b/usr/src/uts/common/os/sunmdi.c
index d2af7a3c03..42b0a9025e 100644
--- a/usr/src/uts/common/os/sunmdi.c
+++ b/usr/src/uts/common/os/sunmdi.c
@@ -375,7 +375,20 @@ mdi_vhci_register(char *class, dev_info_t *vdip, mdi_vhci_ops_t *vops,
mdi_vhci_t *vh = NULL;
ASSERT(vops->vo_revision == MDI_VHCI_OPS_REV);
- ASSERT(DEVI_BUSY_OWNED(ddi_get_parent(vdip)));
+#ifdef DEBUG
+ /*
+ * IB nexus driver is loaded only when IB hardware is present.
+ * In order to be able to do this there is a need to drive the loading
+ * and attaching of the IB nexus driver (especially when an IB hardware
+ * is dynamically plugged in) when an IB HCA driver (PHCI)
+ * is being attached. Unfortunately this gets into the limitations
+ * of devfs as there seems to be no clean way to drive configuration
+ * of a subtree from another subtree of a devfs. Hence, do not ASSERT
+ * for IB.
+ */
+ if (strcmp(class, MDI_HCI_CLASS_IB) != 0)
+ ASSERT(DEVI_BUSY_OWNED(ddi_get_parent(vdip)));
+#endif
i_mdi_init();