linux_dsm_epyc7002/drivers/misc/habanalabs/goya
Oded Gabbay eff6f4a0e7 habanalabs: add command submission module
This patch adds the main flow for the user to submit work to the device.

Each work is described by a command submission object (CS). The CS contains
3 arrays of command buffers: One for execution, and two for context-switch
(store and restore).

For each CB, the user specifies on which queue to put that CB. In case of
an internal queue, the entry doesn't contain a pointer to the CB but the
address in the on-chip memory that the CB resides at.

The driver parses some of the CBs to enforce security restrictions.

The user receives a sequence number that represents the CS object. The user
can then query the driver regarding the status of the CS, using that
sequence number.

In case the CS doesn't finish before the timeout expires, the driver will
perform a soft-reset of the device.

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>
2019-02-18 09:46:45 +01:00
..
goya_hwmgr.c habanalabs: add device reset support 2019-02-18 09:46:45 +01:00
goya_security.c habanalabs: add basic Goya h/w initialization 2019-02-18 09:46:44 +01:00
goya.c habanalabs: add command submission module 2019-02-18 09:46:45 +01:00
goyaP.h habanalabs: add sysfs and hwmon support 2019-02-18 09:46:45 +01:00
Makefile habanalabs: add sysfs and hwmon support 2019-02-18 09:46:45 +01:00