Skip to content
Commit 7cb5101e authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: prevent host crash during suspend/resume



This patch fixes the implementation of suspend/resume of the device so that
upon resume of the device, the host won't crash due to PCI completion
timeout.

Upon suspend, the device is being reset due to PERST. Therefore, upon
resume, the driver must initialize the PCI controller as if the driver was
loaded. If the controller is not initialized and the device tries to
access the device through the PCI bars, the host will crash with PCI
completion timeout error.

Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent cbaa99ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment