<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>Hi, folks
!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=108423913-14112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>I'm working on WHQL
PnP tests.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>Now i'm stuck on
pnpdtest Rebalance(FailRestart) test.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>Here are the
details.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=108423913-14112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>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).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>I run the test overr
IPoIB driver and it fails with "Device node is in an expected state" at the
very begining.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>The tests doesn't
elaborate what node and what is the expected state.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>I guess, it means
mlx4_hca's PDO.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>The following
happens:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>The test first sends
IRP_MN_QUERY_STOP_DEVICE to IPoIB.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>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.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>After that i see
IRP_MN_CANCEL_STOP_DEVICE, which all the drivers complete with SUCCESS and then
the test prints:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008><STRONG>Assert:
Device node status not as expected: problem code
0<BR> File=d:\rtm_test\testsrc\basetest\pnp\pnpdtest\user\pnpdtest.c,
Line=323</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=108423913-14112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>MLX4_BUS, the parent
of MLX4_HCA, is a WDF driver.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>It doesn't handle
QUERY_STOP. This 103 comes somewhere from WDF environment.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>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 ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>WDF provides a
callback on QUERY_STOP, but only for rejecting the device stopping. I don't
use it now.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=108423913-14112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>Find attached a
debug trace of the test. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>I run it with
checked drivers with all PnP debug flags turned ON and some additional prints,
so it is a bit large.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=108423913-14112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=108423913-14112008>Any ideas are
appreciated.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=108423913-14112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=108423913-14112008>Leonid</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=108423913-14112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=108423913-14112008></SPAN></FONT> </DIV></BODY></HTML>