]> 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)
commit90669370fa8800d911d14dbe21f5531381502801
tree9255972df18bcf07bd611e3b7fcb61f8473cdf01
parentf2bd76329e3a14171fd42107a8f0fb089466496f
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]