Lines Matching refs:hard_reset
1123 static void cleanup_resources(struct hl_device *hdev, bool hard_reset, bool fw_reset, in cleanup_resources() argument
1126 if (hard_reset) in cleanup_resources()
1134 hdev->asic_funcs->halt_engines(hdev, hard_reset, fw_reset); in cleanup_resources()
1427 bool hard_reset, from_hard_reset_thread, fw_reset, hard_instead_soft = false, in hl_device_reset() local
1439 hard_reset = !!(flags & HL_DRV_RESET_HARD); in hl_device_reset()
1446 if (!hard_reset && (hl_device_status(hdev) == HL_DEVICE_STATUS_MALFUNCTION)) { in hl_device_reset()
1451 if (!hard_reset && !hdev->asic_prop.supports_compute_reset) { in hl_device_reset()
1453 hard_reset = true; in hl_device_reset()
1457 if (hard_reset) { in hl_device_reset()
1468 if (!hard_reset && !hdev->asic_prop.allow_inference_soft_reset) { in hl_device_reset()
1470 hard_reset = true; in hl_device_reset()
1491 if (hard_reset && hdev->reset_info.in_compute_reset) in hl_device_reset()
1500 hdev->reset_info.in_compute_reset = !hard_reset; in hl_device_reset()
1510 if ((hard_reset || from_dev_release) && hdev->reset_info.watchdog_active) { in hl_device_reset()
1520 hard_reset = true; in hl_device_reset()
1534 if (hard_reset) in hl_device_reset()
1543 if ((hard_reset) && (!from_hard_reset_thread)) { in hl_device_reset()
1559 cleanup_resources(hdev, hard_reset, fw_reset, from_dev_release); in hl_device_reset()
1562 if (hard_reset) { in hl_device_reset()
1595 hdev->asic_funcs->hw_fini(hdev, hard_reset, fw_reset); in hl_device_reset()
1597 if (hard_reset) { in hl_device_reset()
1610 hl_hw_queue_reset(hdev, hard_reset); in hl_device_reset()
1624 if (hard_reset) { in hl_device_reset()
1685 if (hard_reset) { in hl_device_reset()
1712 if (hard_reset) { in hl_device_reset()
1752 if (!hard_reset && hdev->reset_info.hard_reset_schedule_flags) in hl_device_reset()
1761 if (hard_reset) in hl_device_reset()
1770 if (hard_reset) { in hl_device_reset()
1788 hard_reset = true; in hl_device_reset()
1802 if (hard_reset) { in hl_device_reset()
1812 hard_reset = true; in hl_device_reset()
1819 hard_reset = true; in hl_device_reset()