accel/habanalabs: handle f/w reserved dram space request
authorDani Liberman <dliberman@habana.ai>
Tue, 20 Jun 2023 09:09:17 +0000 (12:09 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:19 +0000 (12:37 +0300)
commit88872790923e2d80edf29a00b4e440f1473fa8f5
tree0266bb75ba473fb2cfdc60689101b8d383300540
parentfa46c7bb501b8b649ba17e4a048243b85ba1b1b0
accel/habanalabs: handle f/w reserved dram space request

It is possible for FW to request reserved space in dram.
If the device supports this option, it will retrieve the size from the
f/w and will reserve it.

Currently we add the common code infrastructure to support it.

Signed-off-by: Dani Liberman <dliberman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/firmware_if.c
drivers/accel/habanalabs/common/habanalabs.h
drivers/accel/habanalabs/include/common/hl_boot_if.h