summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/mmu.c
diff options
context:
space:
mode:
authorOmer Shpigelman2019-03-13 12:36:28 +0100
committerOded Gabbay2019-03-13 12:36:28 +0100
commitf650a95b71026f5940804f273f9c36b60634131f (patch)
treebafe49399cb3acc158e5799f3a9008f2baf1b172 /drivers/misc/habanalabs/mmu.c
parenthabanalabs: fix bug when mapping very large memory area (diff)
downloadkernel-qcow2-linux-f650a95b71026f5940804f273f9c36b60634131f.tar.gz
kernel-qcow2-linux-f650a95b71026f5940804f273f9c36b60634131f.tar.xz
kernel-qcow2-linux-f650a95b71026f5940804f273f9c36b60634131f.zip
habanalabs: complete user context cleanup before hard reset
This patch fixes a bug which led to a crash during hard reset flow. Before a hard reset is executed, we wait a few seconds for the user context cleanup to complete. If it wasn't completed, we kill the user process and move on to the reset flow. Upon killing the user process, the context cleanup flow begins and may take a while due to MMU unmaps. Meanwhile, in the driver reset flow, we change the PCI DRAM bar location which can interfere with the MMU that uses the bar. If the context cleanup flow didn't finish quickly, a crash may occur due to PCI DRAM bar mislocation during the MMU unmap. Hence adding a wait between killing the user process and the start of the reset flow. Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/mmu.c')
0 files changed, 0 insertions, 0 deletions