From 0e16eeef08ed9b27f0fbc7f02a562a81e10c4119 Mon Sep 17 00:00:00 2001
From: "Suren A. Chilingaryan" <csa@suren.me>
Date: Fri, 12 Dec 2014 15:12:54 +0100
Subject: Do not set __GFP_DMA flag while allocating DMA pages (the flag is
 required for devices capable of addressing 24-bits only and may significantly
 degrade performance

---
 driver/kmem.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/driver/kmem.c b/driver/kmem.c
index 4f36e79..b323272 100644
--- a/driver/kmem.c
+++ b/driver/kmem.c
@@ -147,9 +147,6 @@ int pcidriver_kmem_alloc(pcidriver_privdata_t *privdata, kmem_handle_t *kmem_han
 	 case PCILIB_KMEM_TYPE_PAGE:
 	    flags = GFP_KERNEL;
 
-	    if ((kmem_entry->type == PCILIB_KMEM_TYPE_DMA_S2C_PAGE)||(kmem_entry->type == PCILIB_KMEM_TYPE_DMA_C2S_PAGE))
-		flags |= __GFP_DMA;
-
 	    if (kmem_handle->size == 0)
 		kmem_handle->size = PAGE_SIZE;
 	    else if (kmem_handle->size%PAGE_SIZE)
-- 
cgit v1.2.3