]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/habanalabs: additional print in device-in-use info
authorIlia Levi <illevi@habana.ai>
Thu, 4 Apr 2024 10:50:47 +0000 (13:50 +0300)
committerOfir Bitton <obitton@habana.ai>
Sun, 23 Jun 2024 06:53:32 +0000 (09:53 +0300)
commitfda92282b09ed6dc85af22ab4195aec791cdde2f
treede45c0bb7adde02db20254edeef5a1da3888709f
parentc0af30697c4321f482bef527ad6ba20d79e3aa89
accel/habanalabs: additional print in device-in-use info

When device release triggers a hard reset, there is a printout of
the cause. Currently listed causes (that increment context refcount)
are active command submissions and exported DMA buffer objects. In
any other case, the printout emits "unknown reason". We identify and
print another reason - allocated command buffers.

Signed-off-by: Ilia Levi <illevi@habana.ai>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Ofir Bitton <obitton@habana.ai>
drivers/accel/habanalabs/common/device.c
drivers/accel/habanalabs/common/habanalabs.h
drivers/accel/habanalabs/common/habanalabs_drv.c
drivers/accel/habanalabs/common/memory_mgr.c