]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86: fix dma_mapping_error for 32bit x86
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sat, 29 Nov 2008 12:46:27 +0000 (13:46 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 29 Nov 2008 20:00:38 +0000 (21:00 +0100)
commit7b1dedca42ac0d0d0be01e39d8461bb53a2389b3
tree2a2d2d37002a7614ceff8065fb362c4a820f5a1c
parentb627c8b17ccacba38c975bc0f69a49fc4e5261c9
x86: fix dma_mapping_error for 32bit x86

Devices like b44 ethernet can't dma from addresses above 1GB. The driver
handles this cases by falling back to GFP_DMA allocation. But for detecting
the problem it needs to get an indication from dma_mapping_error.
The bug is triggered by using a VMSPLIT option of 2G/2G.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/dma-mapping.h