]> asedeno.scripts.mit.edu Git - linux.git/commit
habanalabs: add debugfs support
authorOded Gabbay <oded.gabbay@gmail.com>
Fri, 15 Feb 2019 22:39:24 +0000 (00:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Feb 2019 08:46:46 +0000 (09:46 +0100)
commitc216477363a37a7d0a388315a2eb6c1bd965bdb8
tree908c21b4d3e5b7b1ac735f08a3bce586262d6030
parentd8dd7b0a81cc192ef5d30ec76ed6f6d35a1a7cf5
habanalabs: add debugfs support

This patch adds debugfs support to the driver. It allows the user-space to
display information that is contained in the internal structures of the
driver, such as:
- active command submissions
- active user virtual memory mappings
- number of allocated command buffers

It also enables the user to perform reads and writes through Goya's PCI
bars.

Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/debugfs-driver-habanalabs [new file with mode: 0644]
drivers/misc/habanalabs/Makefile
drivers/misc/habanalabs/command_buffer.c
drivers/misc/habanalabs/command_submission.c
drivers/misc/habanalabs/debugfs.c [new file with mode: 0644]
drivers/misc/habanalabs/device.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/goya/goyaP.h
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/habanalabs_drv.c
drivers/misc/habanalabs/memory.c