]> www.infradead.org Git - users/jedix/linux-maple.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)
commit3e08f157c2587fc7ada93abed41aae19bcbf8a6b
treef0da615bb9ab65d7b7754f3e668db72724aec3a9
parentbeb71ee36e4de93c2b21d916fb94558333d99974
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