diff options
author | Oded Gabbay <oded.gabbay@gmail.com> | 2019-05-29 13:43:04 +0200 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2019-05-29 13:43:04 +0200 |
commit | 37d68ce5274fac8bb0a225f9005492bc53bd2393 (patch) | |
tree | 47c2943ca7a381125e455da65e9de89f3edcb156 /drivers/misc/habanalabs/mmu.c | |
parent | habanalabs: initialize device CPU queues after MMU init (diff) | |
download | linux-37d68ce5274fac8bb0a225f9005492bc53bd2393.tar.xz linux-37d68ce5274fac8bb0a225f9005492bc53bd2393.zip |
habanalabs: de-couple MMU and VM module initialization
This patch initializes the MMU S/W structures before the VM S/W
structures, instead of doing that as part of the VM S/W initialization.
This is done because we need to configure some MMU mappings for the kernel
context, before the VM is initialized. The VM initialization can't be
moved earlier because it depends on the size of the DRAM, which is
retrieved from the device CPU. Communication with the device CPU will
require the MMU mappings to be configured and hence the de-coupling.
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/mmu.c')
-rw-r--r-- | drivers/misc/habanalabs/mmu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/misc/habanalabs/mmu.c b/drivers/misc/habanalabs/mmu.c index 10aee3141444..87968f32e718 100644 --- a/drivers/misc/habanalabs/mmu.c +++ b/drivers/misc/habanalabs/mmu.c @@ -385,12 +385,8 @@ static void dram_default_mapping_fini(struct hl_ctx *ctx) * @hdev: habanalabs device structure. * * This function does the following: - * - Allocate max_asid zeroed hop0 pgts so no mapping is available. - * - Enable MMU in H/W. - * - Invalidate the MMU cache. * - Create a pool of pages for pgt_infos. - * - * This function depends on DMA QMAN to be working! + * - Create a shadow table for pgt * * Return: 0 for success, non-zero for failure. */ |