habanalabs: add device status option to INFO IOCTL

This patch adds a new opcode to INFO IOCTL that returns the device status.

This will allow users to query the device status in order to avoid sending
command submissions while device is in reset.

Signed-off-by: Dalit Ben Zoor <dbenzoor@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:
Dalit Ben Zoor 2019-03-24 10:15:44 +02:00 • committed by Oded Gabbay
commit aa957088b4
4 changed files with 47 additions and 0 deletions