projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f70fe6
)
dma-debug: skip debug_dma_assert_idle() when disabled
author
Haggai Eran
<
[email protected]
>
Fri, 17 Jul 2015 23:24:06 +0000
(16:24 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 17 Jul 2015 23:39:53 +0000
(16:39 -0700)
If dma-debug is disabled due to a memory error, DMA unmaps do not affect
the dma_active_cacheline radix tree anymore, and debug_dma_assert_idle()
can print false warnings.
Disable debug_dma_assert_idle() when dma_debug_disabled() is true.
Signed-off-by: Haggai Eran <
[email protected]
>
Fixes: 0abdd7a81b7e ("dma-debug: introduce debug_dma_assert_idle()")
Cc: Dan Williams <
[email protected]
>
Cc: Joerg Roedel <
[email protected]
>
Cc: Vinod Koul <
[email protected]
>
Cc: Russell King <
[email protected]
>
Cc: James Bottomley <
[email protected]
>
Cc: Florian Fainelli <
[email protected]
>
Cc: Sebastian Ott <
[email protected]
>
Cc: Jiri Kosina <
[email protected]
>
Cc: Horia Geanta <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
lib/dma-debug.c
patch
|
blob
|
history
diff --git
a/lib/dma-debug.c
b/lib/dma-debug.c
index ae4b65e17e6486c7431fdc39335eab4cb15a0539..dace71fe41f707457468ec1ca3f8d94f756313a8 100644
(file)
--- a/
lib/dma-debug.c
+++ b/
lib/dma-debug.c
@@
-574,6
+574,9
@@
void debug_dma_assert_idle(struct page *page)
unsigned long flags;
phys_addr_t cln;
+ if (dma_debug_disabled())
+ return;
+
if (!page)
return;