-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dma-mapping: add (back) arch_dma_mark_clean for ia64
Add back a hook to optimize dcache flushing after reading executable code using DMA. This gets ia64 out of the business of pretending to be dma incoherent just for this optimization. Signed-off-by: Christoph Hellwig <hch@lst.de>
- Loading branch information
Christoph Hellwig
committed
Sep 11, 2020
1 parent
ef1a85b
commit abdaf11
Showing
7 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
#include <linux/dma-direct.h> | ||
#include <linux/dma-mapping.h> | ||
#include <linux/export.h> | ||
|
||
/* Set this to 1 if there is a HW IOMMU in the system */ | ||
int iommu_detected __read_mostly; | ||
|
||
const struct dma_map_ops *dma_ops; | ||
EXPORT_SYMBOL(dma_ops); | ||
|
||
void *arch_dma_alloc(struct device *dev, size_t size, | ||
dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) | ||
{ | ||
return dma_direct_alloc_pages(dev, size, dma_handle, gfp, attrs); | ||
} | ||
|
||
void arch_dma_free(struct device *dev, size_t size, void *cpu_addr, | ||
dma_addr_t dma_addr, unsigned long attrs) | ||
{ | ||
dma_direct_free_pages(dev, size, cpu_addr, dma_addr, attrs); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters