]> git.karo-electronics.de Git - linux-beck.git/commit
RDMA/ocrdma: Convert kernel VA to PA for mmap in user
authorDevesh Sharma <devesh.sharma@emulex.com>
Fri, 5 Sep 2014 14:05:40 +0000 (19:35 +0530)
committerRoland Dreier <roland@purestorage.com>
Fri, 10 Oct 2014 16:43:01 +0000 (09:43 -0700)
commit1b76d38332271d5a0468ae5e465c5ea534c473c6
treeac7fb58ebad72710e11a385a1d0d5f3c2e54994e
parentbf67472ca1fac19c81367601bd4ba7d17bdc9f6e
RDMA/ocrdma: Convert kernel VA to PA for mmap in user

In some platforms, when iommu is enabled, the bus address returned by
dma_alloc_coherent is different than the physical address.  ocrdma
should use physical address for mmap-ing the queue memory for the
applications.

This patch adds the use of virt_to_phys() at all such places where
kernel buffer is mapped to user process context.

Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c