From: Devesh Sharma Date: Fri, 5 Sep 2014 14:05:40 +0000 (+0530) Subject: RDMA/ocrdma: Convert kernel VA to PA for mmap in user X-Git-Tag: omap-for-v3.19/prcm-cleanup~33^2^5~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b76d38332271d5a0468ae5e465c5ea534c473c6;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed