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

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
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -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)
{
	struct gaudi_device *gaudi = hdev->asic_specific;

	/* 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));
	/* GAUDI doesn't support any reset except hard-reset */
	return -EPERM;
}

static int gaudi_hbm_read_interrupts(struct hl_device *hdev, int device,