accel/habanalabs: modify print for skip loading linux FW to debug log
authorTomer Tayar <ttayar@habana.ai>
Thu, 18 Jan 2024 17:18:43 +0000 (19:18 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 26 Feb 2024 07:46:52 +0000 (09:46 +0200)
Skip loading a linux FW image into the device with the current supported
ASICs is done for test purposes only.
Moreover, for future supported ASICs it is possible that there won't be
a need to load such an image.
The print in such a case is therefore not needed in most cases, so
replace the used dev_info() with dev_dbg().

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

index 3558a6a8e1925a8ae397ca1aa975aaeef297fb25..9138f50e3789289b7c826e90099dce48ff641e44 100644 (file)
@@ -2795,7 +2795,7 @@ static int hl_fw_dynamic_init_cpu(struct hl_device *hdev,
        hdev->asic_funcs->init_cpu_scrambler_dram(hdev);
 
        if (!(hdev->fw_components & FW_TYPE_LINUX)) {
-               dev_info(hdev->dev, "Skip loading Linux F/W\n");
+               dev_dbg(hdev->dev, "Skip loading Linux F/W\n");
                return 0;
        }