mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 06:41:39 -04:00
dma-debug: report -EEXIST errors in add_dma_entry
Since, overlapping mappings are not supported by the DMA API we should report an error if active_cacheline_insert returns -EEXIST. Suggested-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Hamza Mahfooz <someguy@effective-light.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Christoph Hellwig
parent
bab1622350
commit
2b4bbc6231
@@ -566,11 +566,9 @@ static void add_dma_entry(struct dma_debug_entry *entry)
|
|||||||
if (rc == -ENOMEM) {
|
if (rc == -ENOMEM) {
|
||||||
pr_err("cacheline tracking ENOMEM, dma-debug disabled\n");
|
pr_err("cacheline tracking ENOMEM, dma-debug disabled\n");
|
||||||
global_disable = true;
|
global_disable = true;
|
||||||
|
} else if (rc == -EEXIST) {
|
||||||
|
pr_err("cacheline tracking EEXIST, overlapping mappings aren't supported\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: report -EEXIST errors here as overlapping mappings are
|
|
||||||
* not supported by the DMA API
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dma_debug_create_entries(gfp_t gfp)
|
static int dma_debug_create_entries(gfp_t gfp)
|
||||||
|
|||||||
Reference in New Issue
Block a user