]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
accel/habanalabs: keep explicit size of reserved memory for FW
authorTomer Tayar <ttayar@habana.ai>
Tue, 30 Jan 2024 07:57:32 +0000 (09:57 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 26 Feb 2024 07:47:27 +0000 (09:47 +0200)
commitc517068349836ae8c090abc1f1a9b540e4370331
treef833f33876a727c50a5c273a0d7aa0a5b5400cac
parentdb45bbdd024eadbf909ad3fb603e0a5ad6c41844
accel/habanalabs: keep explicit size of reserved memory for FW

The reserved memory for FW is currently saved in an ASIC property in
units of MB, just like the value that comes from FW.
Except the fact that it is not clear from the property's name, it means
also that a calculation to actual size is required everywhere that it is
used.
Modify the property to hold the size in bytes.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/firmware_if.c
drivers/accel/habanalabs/common/habanalabs.h