linux_dsm_epyc7002/drivers/misc/habanalabs/goya
Oded Gabbay eb7caf84b0 habanalabs: maintain a list of file private data objects
This patch adds a new list to the driver's device structure. The list will
keep the file private data structures that the driver creates when a user
process opens the device.

This change is needed because it is useless to try to count how many FD
are open. Instead, track our own private data structure per open file and
once it is released, remove it from the list. As long as the list is not
empty, it means we have a user that can do something with our device.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-09-05 14:55:26 +03:00
..
goya_coresight.c habanalabs: Read upper bits of trace buffer from RWPHI 2019-06-04 15:13:09 +03:00
goya_hwmgr.c habanalabs: maintain a list of file private data objects 2019-09-05 14:55:26 +03:00
goya_security.c habanalabs: make tpc registers secured 2019-05-30 08:46:01 +00:00
goya.c habanalabs: fix device IRQ unmasking for BE host 2019-08-12 09:01:10 +03:00
goyaP.h habanalabs: fix endianness handling for internal QMAN submission 2019-08-12 09:01:10 +03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00