]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
habanalabs: skip VA block list update in reset flow
authorOmer Shpigelman <oshpigelman@habana.ai>
Thu, 14 Nov 2019 18:23:57 +0000 (18:23 +0000)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 05:05:10 +0000 (00:05 -0500)
commitfbdb6166f43681854b2ecda2275d1d8482573e39
treed67a7b576e9c69b2101338d6f915e812c8e9753d
parentae47b4b07988988722d4905f7beaa183a2b0f780
habanalabs: skip VA block list update in reset flow

BugLink: https://bugs.launchpad.net/bugs/1860816
[ Upstream commit 71c5e55e7c077fa17c42fbda91a8d14322825c44 ]

Reduce context close time by skipping the VA block free list update in
order to avoid hard reset with open contexts.
Reset with open contexts can potentially lead to a kernel crash as the
generic pool of the MMU hops is destroyed while it is not empty because
some unmap operations are not done.
The commit affect mainly when running on simulator.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/misc/habanalabs/memory.c