]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs/gaudi: notify user process on device unavailable
authorTal Cohen <talcohen@habana.ai>
Thu, 9 Jun 2022 15:08:31 +0000 (18:08 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:23 +0000 (09:09 +0300)
commit0ae43618e29b7d4905825898ae696fadb784362a
tree3ff1179a4b4498873883f1ff3c68a0b6773a104b
parentb90b74fc2f08cbf2b982e3fb19daf13d2745977e
habanalabs/gaudi: notify user process on device unavailable

When a device error occurs, user process would like to get some
indication on the error by reading some device HW info. If the
device is unavailable, user process can't perform any HW device
reading.

Signed-off-by: Tal Cohen <talcohen@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c
include/uapi/misc/habanalabs.h