dmanegine: idxd: add debugfs for event log dump
authorDave Jiang <dave.jiang@intel.com>
Fri, 7 Apr 2023 20:31:32 +0000 (13:31 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Apr 2023 17:48:45 +0000 (23:18 +0530)
commit5fbe6503b52f5665560584f62adab5db70ac910e
tree054494a2e43f38cc8021cf701164bcb42940648f
parent2f431ba908d2ef05da478d10925207728f1ff483
dmanegine: idxd: add debugfs for event log dump

Add debugfs entry to dump the content of the event log for debugging. The
function will dump all non-zero entries in the event log. It will note
which entries are processed and which entries are still pending processing
at the time of the dump. The entries may not always be in chronological
order due to the log is a circular buffer.

Tested-by: Tony Zhu <tony.zhu@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Co-developed-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: https://lore.kernel.org/r/20230407203143.2189681-6-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/Makefile
drivers/dma/idxd/debugfs.c [new file with mode: 0644]
drivers/dma/idxd/idxd.h
drivers/dma/idxd/init.c
include/uapi/linux/idxd.h