From 1b76d38332271d5a0468ae5e465c5ea534c473c6 Mon Sep 17 00:00:00 2001 From: Devesh Sharma Date: Fri, 5 Sep 2014 19:35:40 +0530 Subject: [PATCH] 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-format-patch failed