Sebastian Ott
a9a5250cc6
s390/dma: remove gratuitous brackets
...
Remove gratuitous brackets in dma_mapping_error.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com >
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com >
2013-06-26 21:10:26 +02:00
Sebastian Ott
4026099a31
s390/dma: support debug_dma_mapping_error
...
Without this patch drivers will get blamed (CONFIG_DMA_API_DEBUG=y)
for not calling dma_mapping_error (even if they do).
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com >
Acked-by: Gerald Schaefer <gerald.schaefer@de.ibm.com >
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com >
2013-06-19 09:25:42 +02:00
Sebastian Ott
73e5a84842
s390/dma: fix mapping_error detection
...
The map_page implementation of s390 returns DMA_ERROR_CODE in an error
situation. Correctly test if a mapping was erroneous (DMA_ERROR_CODE is
defined as ~0).
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com >
Acked-by: Gerald Schaefer <gerald.schaefer@de.ibm.com >
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com >
2013-06-19 09:25:42 +02:00
Sebastian Ott
abd9a0c360
s390/dma: do not call debug_dma after free
...
In dma_free_coherent call debug_dma_free_coherent before deallocating
the memory to avoid a possible use after free.
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com >
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com >
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com >
2013-05-22 09:45:56 +02:00
Heiko Carstens
a50b2eae8b
s390/dma: remove dma_is_consistent() declaration
...
There is no such function nor any caller in the whole kernel.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com >
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com >
2013-02-14 15:55:12 +01:00
Heiko Carstens
e978948db1
s390/dma: provide dma_cache_sync() function
...
Provide empty dma_cache_sync() function.
Acked-by: Sebastian Ott <sebott@linux.vnet.ibm.com >
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com >
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com >
2013-02-14 15:55:11 +01:00
Jan Glauber
828b35f60e
s390/pci: DMA support
...
Add DMA IOMMU support using 4K page table entries. Implement dma_map_ops.
Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com >
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com >
2012-11-30 17:47:23 +01:00