]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/habanalabs: add heartbeat debug info
authorFarah Kassabri <fkassabri@habana.ai>
Wed, 21 Feb 2024 09:47:12 +0000 (11:47 +0200)
committerOfir Bitton <obitton@habana.ai>
Sun, 23 Jun 2024 06:52:53 +0000 (09:52 +0300)
commit31bd26931d036593531dbc9b5dd0669fe9d53155
tree57ef02ead7dd7ef68d5ce4182521751479778cff
parent42f04ca65c7294ce7c641d2195086f2c99323320
accel/habanalabs: add heartbeat debug info

It is hard to debug the reason for heartbeat check failures.
As an attempt to ease this task, this patch will provide more
information when this failure happens.
Heartbeat checks the communication with FW, so printing
the CPU queue pi/ci and the counter of how many times that event
was received would help in debugging the issue.

Signed-off-by: Farah Kassabri <fkassabri@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/gaudi2/gaudi2.c