[git pull] habanalabs fixes for 5.15-rc3

From: Oded Gabbay
Date: Sun Sep 19 2021 - 05:44:41 EST


Hi Greg,

Some important fixes for the habanalabs driver for 5.15.
They fix a couple of bugs that can result in kernel BUG,
data race, kernel log spamming, etc.

Full details are in the tag.

Thanks,
Oded

The following changes since commit 25a1433216489de4abc889910f744e952cb6dbae:

mcb: fix error handling in mcb_alloc_bus() (2021-09-14 11:22:26 +0200)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git tags/misc-habanalabs-fixes-2021-09-19

for you to fetch changes up to c8fee41957f036cbc8e840bd91e2087731df7f7e:

habanalabs: expose a single cs seq in staged submissions (2021-09-14 15:00:04 +0300)

----------------------------------------------------------------
This tag contains the following fixes for 5.15-rc3:

- Fix potential race when user waiting for interrupt ioctl
- Prevent possible kernel oops in staged CS ioctl
- Use direct MSI mechanism in Gaudi as a WA for a H/W issue
regarding FLR
- Don't support collective wait ioctl operation when it
is not supported. e.g. when the NIC ports are disabled
- Fix configuration of one of the security mechanism.
- Change error print to be rate-limited as it can be initiated
by the user and spam the kernel log
- Fix return value of CS ioctl when doing staged CS
- Fix CS ioctl code when user doesn't supply an offset for
the memory area that we use as fence.
- Spelling mistake fix

----------------------------------------------------------------
Colin Ian King (1):
habanalabs: Fix spelling mistake "FEADBACK" -> "FEEDBACK"

Oded Gabbay (1):
habanalabs/gaudi: fix LBW RR configuration

Ofir Bitton (4):
habanalabs: fix potential race in interrupt wait ioctl
habanalabs: fail collective wait when not supported
habanalabs: rate limit multi CS completion errors
habanalabs: expose a single cs seq in staged submissions

Omer Shpigelman (1):
habanalabs/gaudi: use direct MSI in single mode

farah kassabri (2):
habanalabs: fix kernel OOPs related to staged cs
habanalabs: fix wait offset handling

.../misc/habanalabs/common/command_submission.c | 71 +++++++++----
drivers/misc/habanalabs/common/hw_queue.c | 9 +-
drivers/misc/habanalabs/gaudi/gaudi.c | 11 +-
drivers/misc/habanalabs/gaudi/gaudi_security.c | 115 ++++++++++++---------
.../habanalabs/include/gaudi/asic_reg/gaudi_regs.h | 2 +
5 files changed, 134 insertions(+), 74 deletions(-)