OSDN Git Service

habanalabs: initialize device CPU queues after MMU init
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 29 May 2019 11:24:51 +0000 (14:24 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 29 May 2019 11:24:51 +0000 (14:24 +0300)
commit0b28d26b9dfa1f4010a8d84c1cb727de41be60d6
tree89a27ceaa4b2396b863554edb340df8839b405c1
parent97a1aa00c178589a62b973848cfb40132793a1ec
habanalabs: initialize device CPU queues after MMU init

This patch changes the order of H/W IP initializations. The MMU needs to
be initialized before the device CPU queues, because the CPU will go
through the ASIC MMU in order to reach the host memory (where the queues
are located).

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