accel/habanalabs/gaudi2: move HMMU page tables to device memory
Currently the HMMU page tables reside in the host memory, which will cause host access from the device for every page walk. This can affect PCIe bandwidth in certain scenarios. To prevent that problem, HMMU page tables will be moved to the device memory so the miss transaction will read the hops from there instead of going to the host. Signed-off-by:Farah Kassabri <fkassabri@habana.ai> Reviewed-by:
Oded Gabbay <ogabbay@kernel.org> Signed-off-by:
Oded Gabbay <ogabbay@kernel.org>
Showing
- drivers/accel/habanalabs/common/habanalabs.h 26 additions, 0 deletionsdrivers/accel/habanalabs/common/habanalabs.h
- drivers/accel/habanalabs/common/hw_queue.c 17 additions, 0 deletionsdrivers/accel/habanalabs/common/hw_queue.c
- drivers/accel/habanalabs/common/mmu/Makefile 1 addition, 1 deletiondrivers/accel/habanalabs/common/mmu/Makefile
- drivers/accel/habanalabs/common/mmu/mmu.c 221 additions, 2 deletionsdrivers/accel/habanalabs/common/mmu/mmu.c
- drivers/accel/habanalabs/common/mmu/mmu_v1.c 44 additions, 308 deletionsdrivers/accel/habanalabs/common/mmu/mmu_v1.c
- drivers/accel/habanalabs/common/mmu/mmu_v2.c 338 additions, 0 deletionsdrivers/accel/habanalabs/common/mmu/mmu_v2.c
- drivers/accel/habanalabs/gaudi/gaudi.c 1 addition, 0 deletionsdrivers/accel/habanalabs/gaudi/gaudi.c
- drivers/accel/habanalabs/gaudi2/gaudi2.c 182 additions, 63 deletionsdrivers/accel/habanalabs/gaudi2/gaudi2.c
- drivers/accel/habanalabs/gaudi2/gaudi2P.h 4 additions, 8 deletionsdrivers/accel/habanalabs/gaudi2/gaudi2P.h
- drivers/accel/habanalabs/include/hw_ip/mmu/mmu_general.h 2 additions, 0 deletionsdrivers/accel/habanalabs/include/hw_ip/mmu/mmu_general.h
Loading
Please register or sign in to comment