mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
accel/habanalabs: unify err log of hw-fini failure in dirty state
print more informative message when failing in dirty state Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org> Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
This commit is contained in:
parent
7ffb5ced2b
commit
087fe7c9c2
|
|
@ -2896,7 +2896,7 @@ static int gaudi2_early_init(struct hl_device *hdev)
|
|||
dev_dbg(hdev->dev, "H/W state is dirty, must reset before initializing\n");
|
||||
rc = hdev->asic_funcs->hw_fini(hdev, true, false);
|
||||
if (rc) {
|
||||
dev_err(hdev->dev, "failed to reset HW during early init (%d)\n", rc);
|
||||
dev_err(hdev->dev, "failed to reset HW in dirty state (%d)\n", rc);
|
||||
goto pci_fini;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user