]> asedeno.scripts.mit.edu Git - linux.git/commit
dmaengine: pl330: introduce debugfs interface
authorKatsuhiro Suzuki <katsuhiro@katsuster.net>
Sun, 17 Mar 2019 10:03:06 +0000 (19:03 +0900)
committerVinod Koul <vkoul@kernel.org>
Mon, 25 Mar 2019 16:22:28 +0000 (21:52 +0530)
commitb45aef3aef63610e75fa67c7ae8b838304bdad3e
treef0ae2343d96391012fc9196203cf6514a8819a52
parent74fca241e6a0c0a4c33d84f64708e4f88ee73402
dmaengine: pl330: introduce debugfs interface

This patch adds debugfs interface to show the relationship between
DMA threads (hardware resource for transferring data) and DMA
channel ID of DMA slave.

Typically, PL330 has many slaves than number of DMA threads.
So sometimes PL330 cannot allocate DMA threads for all slaves even
if a user specify DMA channel ID in devicetree. This interface will
be useful for checking that DMA threads are allocated or not.

Below is an output sample:

$ sudo cat /sys/kernel/debug/ff1f0000.dmac
PL330 physical channels:
THREAD:         CHANNEL:
--------        -----
0               8
1               9
2               11
3               12
4               14
5               15
6               10
7               --

Signed-off-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/pl330.c