[git pull] habanalabs fixes for 5.11-rc5

From: Oded Gabbay
Date: Thu Jan 21 2021 - 14:26:49 EST

Hi Greg,

This pull request contains three important bug fixes for 5.11-rc5.
One of the fixes prevent a possible host machine crash, another
one prevents random card reset and the third adds a missing
backward compatibility to a uapi. More details are in the tag.


The following changes since commit cb5c681ab9037e25fcca20689c82cf034566d610:

intel_th: pci: Add Alder Lake-P support (2021-01-21 18:54:43 +0100)

are available in the Git repository at:

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

for you to fetch changes up to 2dc4a6d79168e7e426e8ddf8e7219c9ffd13b2b1:

habanalabs: disable FW events on device removal (2021-01-21 20:30:22 +0200)

This tag contains the following bug fixes for 5.11-rc5/6:

- Clear the fence field in the PCI counters packet before sending
the packet to the F/W. Not clearing it might cause the driver
and F/W to get out-of-sync

- Fix backward compatibility in the uapi of IDLE check that is
part of the INFO IOCTL.

- Tell the F/W to not access the Host (device outbound) while
the driver removes the device. If that happens, the server
might crash.

Oded Gabbay (2):
habanalabs: fix backward compatibility of idle check
habanalabs: disable FW events on device removal

Ofir Bitton (1):
habanalabs: zero pci counters packet before submit to FW

drivers/misc/habanalabs/common/device.c | 9 +++++++++
drivers/misc/habanalabs/common/firmware_if.c | 5 +++++
drivers/misc/habanalabs/common/habanalabs_ioctl.c | 2 ++
3 files changed, 16 insertions(+)