habanalabs: change messages to debug level
authorOded Gabbay <ogabbay@kernel.org>
Fri, 27 Nov 2020 16:10:20 +0000 (18:10 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:37 +0000 (10:47 +0200)
Some messages should be changed to debug mode as we want to keep
minimal prints during normal operation of the device.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/gaudi/gaudi.c

index c4a8d6ca34bb2f09ff02690981b91a6ed5553f01..0e1c629e9800ab4ad834765f2b4643fc84639f63 100644 (file)
@@ -526,7 +526,7 @@ static void fw_read_errors(struct hl_device *hdev, u32 boot_err0_reg,
 
        security_val = RREG32(cpu_security_boot_status_reg);
        if (security_val & CPU_BOOT_DEV_STS0_ENABLED)
-               dev_info(hdev->dev, "Device security status %#x\n",
+               dev_dbg(hdev->dev, "Device security status %#x\n",
                                security_val);
 }
 
@@ -806,7 +806,7 @@ int hl_fw_init_cpu(struct hl_device *hdev, u32 cpu_boot_status_reg,
                        hdev->asic_prop.hard_reset_done_by_fw = true;
        }
 
-       dev_info(hdev->dev, "Firmware hard-reset is %s\n",
+       dev_dbg(hdev->dev, "Firmware hard-reset is %s\n",
                hdev->asic_prop.hard_reset_done_by_fw ? "enabled" : "disabled");
 
        dev_info(hdev->dev, "Successfully loaded firmware to device\n");
index 568afe1b684941cc14306318bfecfeaa006576a6..aac3c9c5a2e035ab1f8e1bc9300e8f1e300c32d9 100644 (file)
@@ -1732,7 +1732,7 @@ static int gaudi_enable_msi_single(struct hl_device *hdev)
 {
        int rc, irq;
 
-       dev_info(hdev->dev, "Working in single MSI IRQ mode\n");
+       dev_dbg(hdev->dev, "Working in single MSI IRQ mode\n");
 
        irq = gaudi_pci_irq_vector(hdev, 0, false);
        rc = request_irq(irq, gaudi_irq_handler_single, 0,