habanalabs: increase timeout if working with simulator
authorDalit Ben Zoor <dbenzoor@habana.ai>
Tue, 30 Apr 2019 14:18:51 +0000 (17:18 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 30 Apr 2019 14:18:51 +0000 (17:18 +0300)
commitb1b537713eb1a63a2ecc3547693b3eef7dfb9281
tree6144f7f6cb5e7822006155ab35271eec095c18f5
parentf0539fb0fb5fcb595bbb46dfe88c97e825f29f1f
habanalabs: increase timeout if working with simulator

Where there is a spike in the CPU consumption, it may cause
random failures in the C/I since the KMD timeout for CPU
and/or QMAN0 jobs expires and it stops communicating to the simulator.
This commit fixes it by increasing timeout on polling functions
if working with simulator.

Signed-off-by: Dalit Ben Zoor <dbenzoor@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/device.c
drivers/misc/habanalabs/habanalabs.h