[ofw] patch: [IBBUS] fix BSOD during WHQL's "Pnpdtest with concurrent IO in parallel with DevPathExer"

Tzachi Dar tzachid at mellanox.co.il
Thu Sep 2 01:08:33 PDT 2010


Mlnx:  5186

Signed off by:leonid

This test runs in parallel 3 tests: pnpdtest, pwrtest and devpathexer.
pwrtest unload/load the driver while pnpdtest send various requests.
BSOD was caused by Device Query Location PnP request to IpoIB PDO, which crashed, because bus_port_mgr has not yet managed acquire HCA.

Index: B:/users/tzachid/projinf9/trunk/core/bus/kernel/bus_port_mgr.c
===================================================================
--- B:/users/tzachid/projinf9/trunk/core/bus/kernel/bus_port_mgr.c    (revision 5185)
+++ B:/users/tzachid/projinf9/trunk/core/bus/kernel/bus_port_mgr.c (revision 5186)
@@ -1795,6 +1795,12 @@
                                return STATUS_NO_SUCH_DEVICE;
                }

+             if (!p_ext->pdo.h_ca)
+             {
+                             BUS_TRACE_EXIT( BUS_DBG_ERROR, ("HCA is still or already not acquired !\n") );
+                             return STATUS_DEVICE_NOT_READY;
+             }
+
                p_hca_dev = p_ext->pdo.h_ca->p_hca_dev;

                /* Get the length of the HCA's location. */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100902/cd6ea99f/attachment.html>


More information about the ofw mailing list