summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2020-12-06 23:48:45 +0200
committerOded Gabbay <ogabbay@kernel.org>2020-12-28 08:47:38 +0200
commit13d0ee10b55ecec01fd3c91e086e4f3ba75a7911 (patch)
treea988384ed03d2e8d9c3ec8b1e44ecde21e60ad0d /drivers/misc/habanalabs
parent6bbb77b9e6f0bd5595724b7c0cb1189afdd133d3 (diff)
downloadlwn-13d0ee10b55ecec01fd3c91e086e4f3ba75a7911.tar.gz
lwn-13d0ee10b55ecec01fd3c91e086e4f3ba75a7911.zip
habanalabs/gaudi: enhance reset message
Print the initiator who performs the hard-reset for easier debugging. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs')
-rw-r--r--drivers/misc/habanalabs/gaudi/gaudi.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c
index f316b898e8e0..b0528883a995 100644
--- a/drivers/misc/habanalabs/gaudi/gaudi.c
+++ b/drivers/misc/habanalabs/gaudi/gaudi.c
@@ -3936,11 +3936,15 @@ static void gaudi_hw_fini(struct hl_device *hdev, bool hard_reset)
WREG32(mmPSOC_GLOBAL_CONF_SW_ALL_RST,
1 << PSOC_GLOBAL_CONF_SW_ALL_RST_IND_SHIFT);
- }
- dev_info(hdev->dev,
- "Issued HARD reset command, going to wait %dms\n",
- reset_timeout_ms);
+ dev_info(hdev->dev,
+ "Issued HARD reset command, going to wait %dms\n",
+ reset_timeout_ms);
+ } else {
+ dev_info(hdev->dev,
+ "Firmware performs HARD reset, going to wait %dms\n",
+ reset_timeout_ms);
+ }
/*
* After hard reset, we can't poll the BTM_FSM register because the PSOC