]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs/gaudi: use direct MSI in single mode
authorOmer Shpigelman <oshpigelman@habana.ai>
Wed, 30 Dec 2020 06:05:18 +0000 (08:05 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 14 Sep 2021 12:00:03 +0000 (15:00 +0300)
commitdaf51c2b6269fcf65f23950da8a9668a93ba9ad5
treef0da615bb9ab65d7b7754f3e668db72724aec3a9
parentbf63535d2dc03923663b8a5edd9d830d40b14d47
habanalabs/gaudi: use direct MSI in single mode

Due to FLR scenario when running inside a VM, we must not use indirect
MSI because it might cause some issues on VM destroy.
In a VM we use single MSI mode in contrary to multi MSI mode which is
used in bare-metal.
Hence direct MSI should be used in single MSI mode only.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/include/gaudi/asic_reg/gaudi_regs.h