]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: add gaudi2 asic-specific code
authorOded Gabbay <ogabbay@kernel.org>
Sun, 26 Jun 2022 15:20:03 +0000 (18:20 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:27 +0000 (09:09 +0300)
commit785cc3dfa7fe31717845597d72359949fe430844
treee3874b2d93e24b856caaffe9b7545fcf4b85f2ef
parentd028b4f4cc5c7bc9f607647bcce1eb9584631589
habanalabs: add gaudi2 asic-specific code

Add the ASIC-specific code for Gaudi2. Supply (almost) all of the
function callbacks that the driver's common code need to initialize,
finalize and submit workloads to the Gaudi2 ASIC.

It also contains the code to initialize the F/W of the Gaudi2 ASIC
and to receive events from the F/W.

It contains new debugfs entry to dump razwi events. razwi is a case
where the device's engines create a transaction that reaches an
invalid destination.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
23 files changed:
Documentation/ABI/testing/debugfs-driver-habanalabs
drivers/misc/habanalabs/Makefile
drivers/misc/habanalabs/common/Makefile
drivers/misc/habanalabs/common/command_submission.c
drivers/misc/habanalabs/common/context.c
drivers/misc/habanalabs/common/debugfs.c
drivers/misc/habanalabs/common/decoder.c [new file with mode: 0644]
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_drv.c
drivers/misc/habanalabs/common/habanalabs_ioctl.c
drivers/misc/habanalabs/common/irq.c
drivers/misc/habanalabs/common/memory.c
drivers/misc/habanalabs/common/pci/pci.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/gaudi2/Makefile [new file with mode: 0644]
drivers/misc/habanalabs/gaudi2/gaudi2.c [new file with mode: 0644]
drivers/misc/habanalabs/gaudi2/gaudi2P.h [new file with mode: 0644]
drivers/misc/habanalabs/gaudi2/gaudi2_masks.h [new file with mode: 0644]
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/include/common/cpucp_if.h
drivers/misc/habanalabs/include/common/hl_boot_if.h