[ofw] pnpdtest problems with IPoIB
Leonid Keller
leonid at mellanox.co.il
Fri Nov 14 06:11:29 PST 2008
Hi, folks !
I'm working on WHQL PnP tests.
Now i'm stuck on pnpdtest Rebalance(FailRestart) test.
Here are the details.
The test checks the behaviour of the driver after rebalance failure,
i.e. it stops the driver (IRP_MN_STOP_DEVICE) and then fails the restart
(IRP_MN_START_DEVICE).
I run the test overr IPoIB driver and it fails with "Device node is in
an expected state" at the very begining.
The tests doesn't elaborate what node and what is the expected state.
I guess, it means mlx4_hca's PDO.
The following happens:
The test first sends IRP_MN_QUERY_STOP_DEVICE to IPoIB.
IPoIB skips it down to IB_BUS, it skips it down to MLX4_HCA and the
latter returns 103 (STATUS_PENDING), which get returned to PnP manager.
After that i see IRP_MN_CANCEL_STOP_DEVICE, which all the drivers
complete with SUCCESS and then the test prints:
Assert: Device node status not as expected: problem code 0
File=d:\rtm_test\testsrc\basetest\pnp\pnpdtest\user\pnpdtest.c,
Line=323
MLX4_BUS, the parent of MLX4_HCA, is a WDF driver.
It doesn't handle QUERY_STOP. This 103 comes somewhere from WDF
environment.
Such reaction on QUERY_STOP is not described in DDK, so i don't know,
why it happens, what does it mean, how i have to proceed - may be, to
wait till the completion of QUERY_STOP by WDF ?
WDF provides a callback on QUERY_STOP, but only for rejecting the device
stopping. I don't use it now.
Find attached a debug trace of the test.
I run it with checked drivers with all PnP debug flags turned ON and
some additional prints, so it is a bit large.
Any ideas are appreciated.
Leonid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081114/86edb748/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sw020_pnpdtest_rebalance_failrestart_ad1_fail.txt
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081114/86edb748/attachment.txt>
More information about the ofw
mailing list