diff options
author | Oded Gabbay <oded.gabbay@gmail.com> | 2019-05-29 14:24:51 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2019-05-29 14:24:51 +0300 |
commit | 0b28d26b9dfa1f4010a8d84c1cb727de41be60d6 (patch) | |
tree | 89a27ceaa4b2396b863554edb340df8839b405c1 /drivers/misc/habanalabs/asid.c | |
parent | 97a1aa00c178589a62b973848cfb40132793a1ec (diff) | |
download | linux-0b28d26b9dfa1f4010a8d84c1cb727de41be60d6.tar.xz |
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>
Diffstat (limited to 'drivers/misc/habanalabs/asid.c')
-rw-r--r-- | drivers/misc/habanalabs/asid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/asid.c b/drivers/misc/habanalabs/asid.c index f54e7971a762..2c01461701a3 100644 --- a/drivers/misc/habanalabs/asid.c +++ b/drivers/misc/habanalabs/asid.c @@ -18,7 +18,7 @@ int hl_asid_init(struct hl_device *hdev) mutex_init(&hdev->asid_mutex); - /* ASID 0 is reserved for KMD */ + /* ASID 0 is reserved for KMD and device CPU */ set_bit(0, hdev->asid_bitmap); return 0; |