]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7bb6d897956dddff7100fef123f142d589e8fbfa
tree1370b97dc92ff3e6ce970b4e3e08b41a57727c42
parent77a577cb81d61167d10ff1e784eb928479095dc3
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