[ofw] ibbus commits

Smith, Stan stan.smith at intel.com
Mon Sep 15 10:03:58 PDT 2008


Svn.1598

Problem: When HCA is disabled and then enabled, IPoIB instances are not restored.

Restore invalidation of device removal relations which were erroneously removed in transition to filter driver.

Modified files:

trunk\core\kernel\
  bus_port_mgr.c
  bus_iou_mgr.c

WOF2-0\trunk\core\kernel\
  bus_port_mgr.c
  bus_iou_mgr.c


diff C3 C:/Documents and Settings/scsmith/Local Settings/Temp/bus_port_mgr.c-revBASE.svn000.tmp.c C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/branches/WOF2-0/trunk/core/bus/kernel/bus_port_mgr.c
*** C:/Documents and Settings/scsmith/Local Settings/Temp/bus_port_mgr.c-revBASE.svn000.tmp.c   Mon Sep 15 09:38:15 2008
--- C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/branches/WOF2-0/trunk/core/bus/kernel/bus_port_mgr.c Mon Sep 15 09:35:22 2008
***************
*** 926,931 ****
--- 926,935 ----
        IoInvalidateDeviceRelations(
                p_port_ext->pdo.h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );

+       /* Invalidate removal relations for the bus driver. */
+       IoInvalidateDeviceRelations(
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );
+
        BUS_EXIT( BUS_DBG_PNP );
        return IB_SUCCESS;
  }
***************
*** 1120,1125 ****
--- 1124,1133 ----
        IoInvalidateDeviceRelations(
                pmatched_guid_ext->pdo.h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );

+       /* Invalidate removal relations for the bus driver. */
+       IoInvalidateDeviceRelations(
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );
+
        BUS_EXIT( BUS_DBG_PNP );
        return CL_SUCCESS;
  }
***************
*** 1228,1233 ****
--- 1236,1245 ----
                ("Mark removing %s: PDO %p, ext %p, present %d, missing %d .\n",
                p_ext->cl_ext.vfptr_pnp_po->identity, p_ext->cl_ext.p_self_do, p_ext,
                p_ext->b_present, p_ext->b_reported_missing ) );
+
+       /* Invalidate removal relations for the bus driver. */
+       IoInvalidateDeviceRelations(
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );

        /* Invalidate bus relations for the HCA. */
        IoInvalidateDeviceRelations(

diff C3 C:/Documents and Settings/scsmith/Local Settings/Temp/bus_iou_mgr.c-revBASE.svn000.tmp.c C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/branches/WOF2-0/trunk/core/bus/kernel/bus_iou_mgr.c
*** C:/Documents and Settings/scsmith/Local Settings/Temp/bus_iou_mgr.c-revBASE.svn000.tmp.c    Mon Sep 15 09:37:19 2008
--- C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/branches/WOF2-0/trunk/core/bus/kernel/bus_iou_mgr.c  Mon Sep 15 09:34:28 2008
***************
*** 816,821 ****
--- 816,825 ----
        IoInvalidateDeviceRelations(
                        p_iou_ext->pdo.h_ca->obj.p_ci_ca->verbs.p_hca_dev, BusRelations );

+       /* Invalidate removal relations for the bus driver. */
+       IoInvalidateDeviceRelations(
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );
+
        BUS_EXIT( BUS_DBG_PNP );

        return IB_SUCCESS;
***************
*** 903,908 ****
--- 907,916 ----
                                p_bfi->whoami,
                                p_ext->cl_ext.vfptr_pnp_po->identity, p_ext, p_ext->b_present,
                                p_ext->b_reported_missing ) );
+
+       /* Invalidate removal relations for the bus driver. */
+       IoInvalidateDeviceRelations(
+               p_bfi->p_bus_ext->cl_ext.p_pdo, RemovalRelations );

        /* Invalidate bus relations for the HCA. */
        IoInvalidateDeviceRelations(





More information about the ofw mailing list