]> asedeno.scripts.mit.edu Git - linux.git/commit
habanalabs: add MMU mappings for Goya CPU
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 29 May 2019 14:30:04 +0000 (17:30 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 29 May 2019 14:30:04 +0000 (17:30 +0300)
commit95b5a8b83e06ccc44feff2c0cfb1881468596e7c
tree5c5ad04bba49e3abcbd384c1c13395912e07edaf
parent7aa2227affb510c609954000943e4bdce06d112c
habanalabs: add MMU mappings for Goya CPU

This patch adds the necessary MMU mappings for the Goya CPU to access the
device DRAM and the host memory.

The first 256MB of the device DRAM is being mapped. That's where the F/W
is running.

The 2MB area located on the host memory for the purpose of communication
between the driver and the device CPU is also being mapped.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/debugfs.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/goya/goyaP.h
drivers/misc/habanalabs/habanalabs.h