Skip to content

Commit 27cf295

Browse files
rleongregkh
authored andcommitted
dma-mapping: handle DMA_ATTR_CPU_CACHE_CLEAN in trace output
commit 6f45b16 upstream. Tracing prints decoded DMA attribute flags, but it does not yet include the recently added DMA_ATTR_CPU_CACHE_CLEAN. Add support for decoding and displaying this attribute in the trace output. Fixes: 61868dc ("dma-mapping: add DMA_ATTR_CPU_CACHE_CLEAN") Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1098f97 commit 27cf295

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • include/trace/events

include/trace/events/dma.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ TRACE_DEFINE_ENUM(DMA_NONE);
3232
{ DMA_ATTR_ALLOC_SINGLE_PAGES, "ALLOC_SINGLE_PAGES" }, \
3333
{ DMA_ATTR_NO_WARN, "NO_WARN" }, \
3434
{ DMA_ATTR_PRIVILEGED, "PRIVILEGED" }, \
35-
{ DMA_ATTR_MMIO, "MMIO" })
35+
{ DMA_ATTR_MMIO, "MMIO" }, \
36+
{ DMA_ATTR_CPU_CACHE_CLEAN, "CACHE_CLEAN" })
3637

3738
DECLARE_EVENT_CLASS(dma_map,
3839
TP_PROTO(struct device *dev, phys_addr_t phys_addr, dma_addr_t dma_addr,

0 commit comments

Comments
 (0)