Skip to content
Snippets Groups Projects
Commit fd1dfc6f authored by Christoph Lameter's avatar Christoph Lameter Committed by Tony Luck
Browse files

[IA64-SGI] Do not request DMA memory for BTE


The GFP_DMA option usually does nothing on SN2 since all of memory is in thei
DMA zone and the BTE has always been capable of addressing all of memory.
So there is no need to get memory from a restricted range of memory (which
is what GFP_DMA is for).

Remove useless __GFP_DMA option.

Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 35589a8f
No related merge requests found
...@@ -277,8 +277,7 @@ bte_result_t bte_unaligned_copy(u64 src, u64 dest, u64 len, u64 mode) ...@@ -277,8 +277,7 @@ bte_result_t bte_unaligned_copy(u64 src, u64 dest, u64 len, u64 mode)
} }
/* temporary buffer used during unaligned transfers */ /* temporary buffer used during unaligned transfers */
bteBlock_unaligned = kmalloc(len + 3 * L1_CACHE_BYTES, bteBlock_unaligned = kmalloc(len + 3 * L1_CACHE_BYTES, GFP_KERNEL);
GFP_KERNEL | GFP_DMA);
if (bteBlock_unaligned == NULL) { if (bteBlock_unaligned == NULL) {
return BTEFAIL_NOTAVAIL; return BTEFAIL_NOTAVAIL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment