habanalabs: rephrase error messages in PCI initialization
authorOded Gabbay <ogabbay@kernel.org>
Sun, 30 Jan 2022 08:08:52 +0000 (10:08 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 28 Feb 2022 12:22:04 +0000 (14:22 +0200)
The iATU is an internal h/w machine inside Habana's PCI controller.
Mentioning it by name doesn't say anything to the user. It is better
to say the PCI controller initialization was not done successfully.

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

index a6ffa342070c42788ea3dc2364393e239c06180f..bb9ce22bafc457e1ecf7cc5e3b479786349e230c 100644 (file)
@@ -408,13 +408,13 @@ int hl_pci_init(struct hl_device *hdev)
 
        rc = hdev->asic_funcs->pci_bars_map(hdev);
        if (rc) {
-               dev_err(hdev->dev, "Failed to initialize PCI BARs\n");
+               dev_err(hdev->dev, "Failed to map PCI BAR addresses\n");
                goto disable_device;
        }
 
        rc = hdev->asic_funcs->init_iatu(hdev);
        if (rc) {
-               dev_err(hdev->dev, "Failed to initialize iATU\n");
+               dev_err(hdev->dev, "PCI controller was not initialized successfully\n");
                goto unmap_pci_bars;
        }