habanalabs/gaudi: remove PCI access to SM block
authorOfir Bitton <obitton@habana.ai>
Tue, 5 Jan 2021 07:04:07 +0000 (09:04 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 27 Jan 2021 19:03:50 +0000 (21:03 +0200)
commit423815bf02e257091d5337be5c63b57fc29e4254
tree6e7a05bb177669d1ae6dfc2e172851f4a8e74ba4
parentd3f139c46280035509600900a6ead3d7e680218f
habanalabs/gaudi: remove PCI access to SM block

Due to HW limitation we must remove all direct access to SM
registers, in order to do that we will access SM registers using
the HW QMANS.
When possible and no user context is present, we can directly access
the HW QMANS. Whenever there is an active user, driver will
prepare a pending command buffer list which will be sent upon
user submissions.

Signed-off-by: Ofir Bitton <obitton@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/gaudi/gaudiP.h
drivers/misc/habanalabs/include/gaudi/gaudi_packets.h