]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[IBAL] use non-pageable memory to prevent possible problems on power down.
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 16 Sep 2009 17:29:29 +0000 (17:29 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 16 Sep 2009 17:29:29 +0000 (17:29 +0000)
IBAL uses pageable memory to create PnP context. It can create possible problems in power down flows at the time of system contention. We saw a similar case at a customer. There is no strong evidence that this is what influenced, but with this patch IBAL will be more safe and at no cost. WinOF 2.1 testing has demonstrated that with this patch, infrequent (1 out of 10) power-down BSOD have disappeared.

Found by Hobin Lee (Xsigo), signed off by Leo.

git-svn-id: svn://openib.tc.cornell.edu/gen1@2439 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

branches/WOF2-1/core/al/kernel/al_pnp.c

index 7fe8c3650326d4db8c0d2952cee5653687d184e0..ac51a37f1be724dace725daccf1c15e45618ab8b 100644 (file)
@@ -587,7 +587,7 @@ pnp_create_context(
        CL_ASSERT( p_reg );\r
 \r
        /* No context exists for this port.  Create one. */\r
-       p_context = (al_pnp_context_t*)cl_pzalloc( sizeof(al_pnp_context_t) );\r
+       p_context = (al_pnp_context_t*)cl_zalloc( sizeof(al_pnp_context_t) );\r
        if( !p_context )\r
        {\r
                AL_PRINT( TRACE_LEVEL_ERROR, AL_DBG_ERROR,\r