]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: handle MMU cache invalidation timeout
authorOmer Shpigelman <oshpigelman@habana.ai>
Sun, 24 May 2020 20:06:59 +0000 (23:06 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 25 May 2020 05:17:57 +0000 (08:17 +0300)
commit447fd7fa8f89c8e75cfd75cc39f4dcd78ffc661f
treefc7ae7c7cae4bfda1d96d9fc075d61414980a011
parent436afa7f1c65ed81ec70463213de5a1450d58531
habanalabs: handle MMU cache invalidation timeout

MMU cache invalidation timeout indicates that the device is unstable and
therefore unusable.
Hence in such case do hard reset and return an error to the user if was
called from ioctl.
In addition, change the print to error level and rephrase its text.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/memory.c