]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/habanalabs: revise print on EQ heartbeat failure
authorTomer Tayar <ttayar@habana.ai>
Tue, 16 Apr 2024 14:01:12 +0000 (17:01 +0300)
committerOfir Bitton <obitton@habana.ai>
Sun, 23 Jun 2024 06:53:32 +0000 (09:53 +0300)
commit795f93e650fc41c3f627d2733458c2f911bc9568
tree999a43a13e38b6e60424139f3b355632195c4884
parent9ee446f9b5d0172a94681aae01fabde4891f7123
accel/habanalabs: revise print on EQ heartbeat failure

Don't print the "previous EQ index" value in case of a EQ heartbeat
failure, because it is incremented along with the EQ CI and therefore
redundant.

In addition, as the CPU-CP PI is zeroed when it reaches a value that is
twice the queue size, add a value of the CI with a similar wrap around,
to make it easier to compare the values.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Ofir Bitton <obitton@habana.ai>
drivers/accel/habanalabs/common/device.c