]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: add gaudi2 MMU support
authorMoti Haimovski <mhaimovski@habana.ai>
Mon, 27 Jun 2022 14:21:39 +0000 (17:21 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:28 +0000 (09:09 +0300)
commit8d0721544c52e06ef67d83b6666c87f7f05aa267
tree9255972df18bcf07bd611e3b7fcb61f8473cdf01
parenta7f918f34a042bfa941dee7d7ab1fffecf7e0996
habanalabs: add gaudi2 MMU support

Gaudi2 has new MMU units. A PMMU for device->host accesses, and HMMU
for HBM accesses.

The page tables of both MMUs are located in the host's memory (referred
to in the code as host-resident pgt).

Signed-off-by: Moti Haimovski <mhaimovski@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/debugfs.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_ioctl.c
drivers/misc/habanalabs/common/memory.c
drivers/misc/habanalabs/common/mmu/Makefile
drivers/misc/habanalabs/common/mmu/mmu.c
drivers/misc/habanalabs/common/mmu/mmu_v2_hr.c [new file with mode: 0644]