mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
habanalabs: do not halt CoreSight during hard reset
[ Upstream commit a37e47192dfa98f79a0cd5ab991c224b5980c982 ] During hard reset we must not write to the device. Hence avoid halting CoreSight during user context close if it is done during hard reset. In addition, we must not re-enable clock gating afterwards as it was deliberately disabled in the beginning of the hard reset flow. Signed-off-by: Omer Shpigelman <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
4b183f6748
commit
83946b4c96
1 changed files with 3 additions and 1 deletions
|
|
@ -600,7 +600,9 @@ int hl_device_set_debug_mode(struct hl_device *hdev, bool enable)
|
|||
goto out;
|
||||
}
|
||||
|
||||
hdev->asic_funcs->halt_coresight(hdev);
|
||||
if (!hdev->hard_reset_pending)
|
||||
hdev->asic_funcs->halt_coresight(hdev);
|
||||
|
||||
hdev->in_debug = 0;
|
||||
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue