accel/habanalabs: fix standalone preboot descriptor request
authorfarah kassabri <fkassabri@habana.ai>
Sun, 4 Jun 2023 08:19:19 +0000 (11:19 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:18 +0000 (12:37 +0300)
commitbffd2f16ae374decdeb5bc714b1aa2e0c23f3708
tree51c5607bc8cb6cce40b4356a8f207cadcf71996f
parent43d8acce607c90a44653c80f3bf211f31abc0416
accel/habanalabs: fix standalone preboot descriptor request

The preboot used to statically allocate memory for the comms descriptor
on the device memory when driver requested the descriptor information.
Now preboot moved to dynamic memory allocation where it wants to check
the size the driver expects vs. what the f/w expects.
Note there are no backward compatibility issues as older f/w versions
simply ignore this value.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/firmware_if.c