1. 11 Mar, 2020 2 commits
    • Peter Ujfalusi's avatar
      dmaengine: ti: k3-udma: Implement custom dbg_summary_show for debugfs · db8d9b4c
      Peter Ujfalusi authored
      With the custom dbg_summary_show the driver can show useful information
      about the used channels.
      
      dma0 (285c0000.dma-controller): number of channels: 24
      
      dma1 (31150000.dma-controller): number of channels: 84
       dma1chan0    | 2b00000.mcasp:tx (MEM_TO_DEV, tchan16 [0x1010 -> 0xc400], PDMA[ ACC32 BURST ], TR mode)
       dma1chan1    | 2b00000.mcasp:rx (DEV_TO_MEM, rchan16 [0x4400 -> 0x9010], PDMA[ ACC32 BURST ], TR mode)
       dma1chan2    | 2ba0000.mcasp:tx (MEM_TO_DEV, tchan17 [0x1011 -> 0xc507], PDMA[ ACC32 BURST ], TR mode)
       dma1chan3    | 2ba0000.mcasp:rx (DEV_TO_MEM, rchan17 [0x4507 -> 0x9011], PDMA[ ACC32 BURST ], TR mode)
       dma1chan4    | in-use (MEM_TO_MEM, chan0 pair [0x1000 -> 0x9000], PSI-L Native, TR mode)
       dma1chan5    | in-use (MEM_TO_MEM, chan1 pair [0x1001 -> 0x9001], PSI-L Native, TR mode)
       dma1chan6    | in-use (MEM_TO_MEM, chan4 pair [0x1004 -> 0x9004], PSI-L Native, TR mode)
       dma1chan7    | in-use (MEM_TO_MEM, chan5 pair [0x1005 -> 0x9005], PSI-L Native, TR mode)
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Link: https://lore.kernel.org/r/20200306142839.17910-3-peter.ujfalusi@ti.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
      db8d9b4c
    • Peter Ujfalusi's avatar
      dmaengine: Add basic debugfs support · e937cc1d
      Peter Ujfalusi authored
      Via the /sys/kernel/debug/dmaengine/summary users can get information
      about the DMA devices and the used channels.
      
      Example output on am654-evm with audio using two channels and after running
      dmatest on 4 channels:
      
      dma0 (285c0000.dma-controller): number of channels: 96
      
      dma1 (31150000.dma-controller): number of channels: 267
       dma1chan0    | 2b00000.mcasp:tx
       dma1chan1    | 2b00000.mcasp:rx
       dma1chan2    | in-use
       dma1chan3    | in-use
       dma1chan4    | in-use
       dma1chan5    | in-use
      
      For slave channels we can show the device and the channel name a given
      channel is requested.
      For non slave devices the only information we know is that the channel is
      in use.
      
      DMA drivers can implement the optional dbg_summary_show callback to
      provide controller specific information instead of the generic one.
      
      It is easy to extend the generic dmaengine_summary_show() to print
      additional information about the used channels.
      
      I have taken the idea from gpiolib and clk subsystems.
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Link: https://lore.kernel.org/r/20200306142839.17910-2-peter.ujfalusi@ti.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
      e937cc1d
  2. 06 Mar, 2020 1 commit
  3. 02 Mar, 2020 12 commits
  4. 25 Feb, 2020 25 commits