habanalabs: update security map after init CPU Qs
authorOhad Sharabi <osharabi@habana.ai>
Tue, 2 Feb 2021 11:33:34 +0000 (13:33 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 8 Feb 2021 16:20:08 +0000 (18:20 +0200)
commit5b6b780660ad9e3ce60a1f04cfa1f4d5013e267a
tree1370b97dc92ff3e6ce970b4e3e08b41a57727c42
parent28bcf1fdc408cd2f7393ae5dcd71c756e1163cdb
habanalabs: update security map after init CPU Qs

when reading CPU_BOOT_DEV_STS0 reg after FW reports SRAM AVAILABLE the
value in the register might not yet be updated by FW.
to overcome this issue another "up-to-date" read of this register is
done at the end of CPU queues init.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c