]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/habanalabs: change the heartbeat scheduling point
authorFarah Kassabri <fkassabri@habana.ai>
Thu, 4 Apr 2024 08:06:03 +0000 (11:06 +0300)
committerOfir Bitton <obitton@habana.ai>
Sun, 23 Jun 2024 06:53:04 +0000 (09:53 +0300)
commit52fbab90edb7cd29490422f2073e0f8a560eb150
tree97120dd2eac7a3e51c7c2563a03ab238c18d1f02
parent3309887c6ff8ca2ac05a74e1ee5d1c44829f63f2
accel/habanalabs: change the heartbeat scheduling point

Currently we schedule the heartbeat thread at late init, only then
we set the INTS_REGISTER packet which enables events to be received
from firmware.

Init may take some time and we want to give firmware 2 full cycles of
heartbeat thread after it received INTS_REGISTER.

The patch will move the heartbeat thread scheduling to be after driver
is done with all initializations.

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