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: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
Oded Gabbay 2021-11-16 10:30:26 +02:00
parent 6c1bad35e6
commit 9eade72e72
1 changed files with 2 additions and 6 deletions

View File

@ -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,