linux_dsm_epyc7002/drivers/misc/habanalabs
Oded Gabbay 7cb5101ee0 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: Oded Gabbay <oded.gabbay@gmail.com>
2019-03-03 22:29:20 +02:00
..
goya habanalabs: prevent host crash during suspend/resume 2019-03-03 22:29:20 +02:00
include habanalabs: set DMA0 completion to SOB 1007 2019-02-28 13:04:59 +01:00
asid.c habanalabs: add context and ASID modules 2019-02-18 09:46:44 +01:00
command_buffer.c habanalabs: fix memory leak with CBs with unaligned size 2019-02-28 13:06:09 +01:00
command_submission.c habanalabs: perform accounting for active CS 2019-03-03 15:13:15 +02:00
context.c habanalabs: add virtual memory and MMU modules 2019-02-18 09:46:46 +01:00
debugfs.c habanalabs: fix MMU number of pages calculation 2019-03-05 10:59:16 +02:00
device.c habanalabs: prevent host crash during suspend/resume 2019-03-03 22:29:20 +02:00
habanalabs_drv.c habanalabs: make functions static or declare them 2019-02-27 16:00:20 +01:00
habanalabs_ioctl.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00
habanalabs.h habanalabs: fix MMU number of pages calculation 2019-03-05 10:59:16 +02:00
hw_queue.c habanalabs: perform accounting for active CS 2019-03-03 15:13:15 +02:00
hwmon.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00
irq.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00
Kconfig habanalabs: adjust Kconfig to fix build errors 2019-03-02 12:03:56 +01:00
Makefile habanalabs: add debugfs support 2019-02-18 09:46:46 +01:00
memory.c habanalabs: fix bug when mapping very large memory area 2019-03-07 15:47:19 +02:00
mmu.c habanalabs: fix mapping with page size bigger than 4KB 2019-03-14 16:54:45 +02:00
sysfs.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00