linux_dsm_epyc7002/drivers/misc/habanalabs
Omer Shpigelman 89225ce4fc habanalabs: halt debug engines on user process close
This patch fix a potential bug where a user's process has closed
unexpectedly without disabling the debug engines. In that case, the debug
engines might continue running but because the user's MMU mappings are
going away, we will get page fault errors.

This behavior is also opposed to the general rule where nothing runs on
the device after the user process closes.

The patch stops the debug H/W engines upon process termination and thus
makes sure nothing runs on the device after the process goes away.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2019-05-24 22:46:15 +03:00
..
goya habanalabs: halt debug engines on user process close 2019-05-24 22:46:15 +03:00
include habanalabs: Use single pool for CPU accessible host memory 2019-04-28 19:17:38 +03:00
asid.c habanalabs: add context and ASID modules 2019-02-18 09:46:44 +01:00
command_buffer.c habanalabs: rename functions to improve code readability 2019-05-01 11:47:04 +03:00
command_submission.c habanalabs: remove redundant member from parser struct 2019-05-01 13:16:18 +03:00
context.c habanalabs: halt debug engines on user process close 2019-05-24 22:46:15 +03:00
debugfs.c habanalabs: Allow accessing DRAM virtual addresses via debugfs 2019-03-12 13:53:17 +02:00
device.c habanalabs: increase timeout if working with simulator 2019-04-30 17:18:51 +03:00
firmware_if.c habanalabs: Manipulate DMA addresses in ASIC functions 2019-05-01 11:28:15 +03:00
habanalabs_drv.c habanalabs: Cancel pr_fmt() definition dependency on includes order 2019-04-10 15:18:46 +03:00
habanalabs_ioctl.c habanalabs: improve IOCTLs behavior when disabled or reset 2019-04-06 15:41:35 +03:00
habanalabs.h habanalabs: halt debug engines on user process close 2019-05-24 22:46:15 +03:00
hw_queue.c habanalabs: rename functions to improve code readability 2019-05-01 11:47:04 +03:00
hwmon.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00
irq.c habanalabs: rename functions to improve code readability 2019-05-01 11:47:04 +03:00
Kconfig habanalabs: adjust Kconfig to fix build errors 2019-03-02 12:03:56 +01:00
Makefile habanalabs: Move PCI code into common file 2019-03-05 16:48:42 +02:00
memory.c habanalabs: Manipulate DMA addresses in ASIC functions 2019-05-01 11:28:15 +03:00
mmu.c habanalabs: fix mapping with page size bigger than 4KB 2019-03-14 16:54:45 +02:00
pci.c habanalabs: Manipulate DMA addresses in ASIC functions 2019-05-01 11:28:15 +03:00
sysfs.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00