]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
habanalabs: refactor MMU locks code
authorOhad Sharabi <osharabi@habana.ai>
Thu, 26 Nov 2020 07:39:26 +0000 (09:39 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 27 Jan 2021 19:03:48 +0000 (21:03 +0200)
commitcb6ef0ee6d760281cc0b50711564415f39328bfb
tree7aca7f01be34c459044f443b89e9c790c8874162
parent4c998836d413d8e4ca8749f876b75a74a6fb4c5d
habanalabs: refactor MMU locks code

remove mmu_cache_lock as it protects a section which is already
protected by mmu_lock.

in addition, wrap mmu cache invalidate calls in hl_vm_ctx_fini with
mmu_lock.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/memory.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c