habanalabs: read preboot status bits in an earlier stage
authorKoby Elbaz <kelbaz@habana.ai>
Tue, 18 May 2021 12:05:35 +0000 (15:05 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:40 +0000 (15:23 +0300)
commit7feffb6815450bbcbed96a870a36a56f20608640
tree272939b6a16a7cf30865ab693beba2d247ba85fd
parent1242e9f0f45873607f8e6699b4339c81d9f3de73
habanalabs: read preboot status bits in an earlier stage

On newer releases, host won't be able to trigger an interrupt directly
to the ASIC GIC controller.
To be able to decide whether GIC can/not be used, we must read device's
preboot status bits in a stage that precedes the possible first use of
GIC (when device is in dirty state).

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c