]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: revise and document use of boot status flags
authorOhad Sharabi <osharabi@habana.ai>
Sun, 17 Oct 2021 06:00:43 +0000 (09:00 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 06:59:03 +0000 (08:59 +0200)
commit2e50add0832f2458d772e174400c8366303a2abd
tree6c158550f7a016410dae2eb0d61ec5e287a7491d
parent54a9db8788207466adcfb1eea7927ffff1e4db3e
habanalabs: revise and document use of boot status flags

The boot status flag "SRAM available" can be set by f/w Linux (in the
general case) or by f/w uboot (in some specific debug scenario) but
never by f/w preboot.

Hence, when polling the boot status flags in the preboot stage we do not
want to poll on "SRAM Avialable".

The special case in which uboot set this flag is when we are running
special debug scenario without Linux. In this case, at some point during
the boot, the uboot relocates its code to the DRAM and then set the
specified flag.

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