habanalabs/gaudi: add support for NIC QMANs
authorOded Gabbay <ogabbay@kernel.org>
Mon, 2 Nov 2020 19:10:39 +0000 (21:10 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:29 +0000 (10:47 +0200)
commit3c68157fb829a1b1c9615a6a78179a664602f96a
treee0dd8c0b62ee27ec356766a23cf558c298c120e8
parent11dcb8c712354709b9d9aa6d6d0880217d008e99
habanalabs/gaudi: add support for NIC QMANs

Initialize the QMANs that are responsible to submit doorbells to the NIC
engines. Add support for stopping and disabling them, and reset them as
part of the hard-reset procedure of GAUDI. This will allow the user to
submit work to the NICs.

Add support for receiving events on QMAN errors from the firmware.

However, the nic_ports_mask is still initialized to 0. That means this code
won't initialize the QMANs just yet. That will be in a later patch.

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/common/habanalabs.h
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/gaudi/gaudiP.h