Commit 9eade72e authored by Oded Gabbay's avatar Oded Gabbay

habanalabs/gaudi: return EPERM on non hard-reset

GAUDI supports only hard-reset. Therefore, this function should
return an error of operation not permitted.
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 6c1bad35
...@@ -7821,12 +7821,8 @@ static void gaudi_print_fw_alive_info(struct hl_device *hdev, ...@@ -7821,12 +7821,8 @@ static void gaudi_print_fw_alive_info(struct hl_device *hdev,
static int gaudi_non_hard_reset_late_init(struct hl_device *hdev) static int gaudi_non_hard_reset_late_init(struct hl_device *hdev)
{ {
struct gaudi_device *gaudi = hdev->asic_specific; /* GAUDI doesn't support any reset except hard-reset */
return -EPERM;
/* Unmask all IRQs since some could have been received
* during the soft reset
*/
return hl_fw_unmask_irq_arr(hdev, gaudi->events, sizeof(gaudi->events));
} }
static int gaudi_hbm_read_interrupts(struct hl_device *hdev, int device, static int gaudi_hbm_read_interrupts(struct hl_device *hdev, int device,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment