[openib-general] [PATCH] io_remap_pfn_range

Michael S. Tsirkin mst at mellanox.co.il
Mon Jul 25 10:45:12 PDT 2005


Use io_remap_pfn_range to remap IO pages (remap_pfn_range is for memory).

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

Index: linux-kernel/drivers/infiniband/hw/mthca/mthca_provider.c
===================================================================
--- linux-kernel/drivers/infiniband/hw/mthca/mthca_provider.c	(revision 2868)
+++ linux-kernel/drivers/infiniband/hw/mthca/mthca_provider.c	(working copy)
@@ -349,7 +349,7 @@ static int mthca_mmap_uar(struct ib_ucon
 
 	vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
 
-	if (remap_pfn_range(vma, vma->vm_start,
+	if (io_remap_pfn_range(vma, vma->vm_start,
 			    to_mucontext(context)->uar.pfn,
 			    PAGE_SIZE, vma->vm_page_prot))
 		return -EAGAIN;

-- 
MST



More information about the general mailing list