]> git.karo-electronics.de Git - linux-beck.git/commit
IB/ehca: Use remap_4k_pfn() to map firmware contexts to user space
authorHoang-Nam Nguyen <hnguyen@de.ibm.com>
Tue, 11 Sep 2007 13:31:06 +0000 (15:31 +0200)
committerRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:09 +0000 (19:59 -0700)
commite390d3b52f791fcea26312ba4982cda82052727b
tree399af315b321e57c88cca886cd3a69c05360891b
parent5281a4b8a0c6bac0c070913ec25868faa06a3115
IB/ehca: Use remap_4k_pfn() to map firmware contexts to user space

Use Paul's new remap_4k_pfn() function to map our 4K firmware contexts
into user space on 64K-page machines without exposing neighboring
firmware contexts. Return the context's offset within a 64K page to
user space so it can determine the proper virtual address.

For details about remap_4k_pfn(), see commit 721151d0 or
http://patchwork.ozlabs.org/linuxppc/patch?id=10281

Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_classes.h
drivers/infiniband/hw/ehca/ehca_cq.c
drivers/infiniband/hw/ehca/ehca_qp.c
drivers/infiniband/hw/ehca/ehca_uverbs.c