habanalabs: set log level for descriptor validation to debug
authorfarah kassabri <fkassabri@habana.ai>
Tue, 29 Nov 2022 13:37:55 +0000 (15:37 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 26 Jan 2023 08:56:21 +0000 (10:56 +0200)
This warning doesn't have real consequences, and therefore can be
printed in debug level.

Signed-off-by: farah kassabri <fkassabri@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 ebb81cf..537b1ae 100644 (file)
@@ -1932,11 +1932,11 @@ static int hl_fw_dynamic_validate_descriptor(struct hl_device *hdev,
        int rc;
 
        if (le32_to_cpu(fw_desc->header.magic) != HL_COMMS_DESC_MAGIC)
-               dev_warn(hdev->dev, "Invalid magic for dynamic FW descriptor (%x)\n",
+               dev_dbg(hdev->dev, "Invalid magic for dynamic FW descriptor (%x)\n",
                                fw_desc->header.magic);
 
        if (fw_desc->header.version != HL_COMMS_DESC_VER)
-               dev_warn(hdev->dev, "Invalid version for dynamic FW descriptor (%x)\n",
+               dev_dbg(hdev->dev, "Invalid version for dynamic FW descriptor (%x)\n",
                                fw_desc->header.version);
 
        /*