[PATCH] dma-debug: teach add_dma_entry() about DMA_ATTR_SKIP_CPU_SYNC

2021-10-11 Thread Hamza Mahfooz
Mapping something twice should be possible as long as, DMA_ATTR_SKIP_CPU_SYNC is passed to the strictly speaking second relevant mapping operation (that attempts to map the same thing). So, don't issue a warning if the specified condition is met in add_dma_entry(). Signed-off-by: Hamza Ma

[PATCH v2] dma-debug: prevent an error message from causing runtime problems

2021-09-10 Thread Hamza Mahfooz
m.com Reported-by: Jeremy Linton Signed-off-by: Hamza Mahfooz --- v2: use err_printk() and make some clarifications in the commit message. --- kernel/dma/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/dma/debug.c b/kernel/dma/debug.c index 6c90c69e5311..718a7f4

[PATCH] dma-debug: prevent an error message from causing runtime problems

2021-09-10 Thread Hamza Mahfooz
ed-by: Jeremy Linton Signed-off-by: Hamza Mahfooz --- kernel/dma/debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/dma/debug.c b/kernel/dma/debug.c index 6c90c69e5311..d9806689666e 100644 --- a/kernel/dma/debug.c +++ b/kernel/dma/debug.c @@ -567,7 +567,9 @@ static

[PATCH] dma debug: report -EEXIST errors in add_dma_entry

2021-05-18 Thread Hamza Mahfooz
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 Signed-off-by: Hamza Mahfooz --- kernel/dma/debug.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/dma