habanalabs: Use single pool for CPU accessible host memory
authorTomer Tayar <ttayar@habana.ai>
Sun, 28 Apr 2019 16:17:38 +0000 (19:17 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Sun, 28 Apr 2019 16:17:38 +0000 (19:17 +0300)
commit03d5f641dc711eb93145ded91ed68b4be729be4d
tree11a2007fa857787211c44097645c697167730750
parenta38693d77576145673a7b3d4d771d992282ad13b
habanalabs: Use single pool for CPU accessible host memory

The device's CPU accessible memory on host is managed in a dedicated
pool, except for 2 regions - Primary Queue (PQ) and Event Queue (EQ) -
which are allocated from generic DMA pools.
Due to address length limitations of the CPU, the addresses of all these
memory regions must have the same MSBs starting at bit 40.
This patch modifies the allocation of the PQ and EQ to be also from the
dedicated pool, to ensure compliance with the limitation.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/hw_queue.c
drivers/misc/habanalabs/include/armcp_if.h
drivers/misc/habanalabs/irq.c