accel/habanalabs: speedup h/w queues test in Gaudi2
authorMoti Haimovski <mhaimovski@habana.ai>
Mon, 20 Mar 2023 20:59:11 +0000 (22:59 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sat, 8 Apr 2023 07:43:34 +0000 (10:43 +0300)
commit31420f93b5c15746759cd87eaa0f572a7316ea46
tree643dce3e26d1c055ad9f004811bd439c7551c37a
parent91204e4703aef7bcdd045126b889d7e1aab63dd5
accel/habanalabs: speedup h/w queues test in Gaudi2

HW queues testing at driver load and after reset takes a substantial
amount of time.
This commit reduces the queues test time in Gaudi2 devices by running
all the tests in parallel instead of one after the other.
Time measurements on tests duration shows that the new method is almost
x100 faster than the serial approach.

Signed-off-by: Moti Haimovski <mhaimovski@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2.c
drivers/accel/habanalabs/gaudi2/gaudi2P.h