summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2014-12-12 15:12:54 +0100
committerSuren A. Chilingaryan <csa@suren.me>2014-12-12 15:12:54 +0100
commit0e16eeef08ed9b27f0fbc7f02a562a81e10c4119 (patch)
treec2a804ea47a323529c7c3017978bcf9eecce49b6
parent7339d1a748bdbc7a41abd456238a5a66aac64c53 (diff)
downloadpcitool-0e16eeef08ed9b27f0fbc7f02a562a81e10c4119.tar.gz
pcitool-0e16eeef08ed9b27f0fbc7f02a562a81e10c4119.tar.bz2
pcitool-0e16eeef08ed9b27f0fbc7f02a562a81e10c4119.tar.xz
pcitool-0e16eeef08ed9b27f0fbc7f02a562a81e10c4119.zip
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
-rw-r--r--driver/kmem.c3
1 files changed, 0 insertions, 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)