habanalabs: print if firmware is secured during load
authorOfir Bitton <obitton@habana.ai>
Wed, 22 Jun 2022 12:10:08 +0000 (15:10 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:24 +0000 (09:09 +0300)
For easier debug, it is desirable to have a simple way
to know whether the device is secured or not, hence we dump this
indication during boot.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c

index bd66e4f..42dfbff 100644 (file)
@@ -2425,7 +2425,8 @@ static int hl_fw_dynamic_init_cpu(struct hl_device *hdev,
        int rc;
 
        dev_info(hdev->dev,
-               "Loading firmware to device, may take some time...\n");
+               "Loading %sfirmware to device, may take some time...\n",
+               hdev->asic_prop.fw_security_enabled ? "secured " : "");
 
        /* initialize FW descriptor as invalid */
        fw_loader->dynamic_loader.fw_desc_valid = false;