]> git.openfabrics.org - ~shefty/rdma-win.git/commit
[HW] allow retrieving CA attributes with pageable memory. [winof: 2408]
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 2 Sep 2009 15:16:17 +0000 (15:16 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 2 Sep 2009 15:16:17 +0000 (15:16 +0000)
commit929f864c5836b99a455f2364c659bd8060cc71e3
tree3da8626844765b1fe3a3a940beb04f58d2632a32
parent95dadd0f78058b497a2f37eb2e452bc6b066ece7
[HW] allow retrieving CA attributes with pageable memory. [winof: 2408]

Modify the HCA drivers to support querying for attributes using a pageable buffer.  Since the query calls block, it seems appropriate for the calls to allow pageable memory, rather than forcing the user to allocate a non-paged buffer in order to obtain a list of attributes.  The problem stems from the HCA drivers accessing a user's buffer after acquiring a spinlock that raise IRQL.

This fixes kernel crashes with both the winmad and winverbs drivers.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2411 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
branches/WOF2-1/hw/mlx4/kernel/bus/core/cache.c
branches/WOF2-1/hw/mthca/kernel/mt_cache.c