summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/common/mmu_v1.c
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2020-11-09 10:48:31 +0300
committerOded Gabbay <ogabbay@kernel.org>2020-11-30 11:47:34 +0300
commit7f070c913c361ed79dd29d9256b486b1b105d7f0 (patch)
treecb131b26d10b582e1c95970e21f4fba37af9cce9 /drivers/misc/habanalabs/common/mmu_v1.c
parentbe91b91fa40f5d2b1c8b79dbc34c1130de16f9e7 (diff)
downloadlinux-7f070c913c361ed79dd29d9256b486b1b105d7f0.tar.xz
habanalabs: move asic property to correct structure
Whether an ASIC has MMU towards its DRAM is an ASIC property, so move it to the asic fixed properties structure. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/common/mmu_v1.c')
-rw-r--r--drivers/misc/habanalabs/common/mmu_v1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/habanalabs/common/mmu_v1.c b/drivers/misc/habanalabs/common/mmu_v1.c
index ac3784523baa..5f62cb158eef 100644
--- a/drivers/misc/habanalabs/common/mmu_v1.c
+++ b/drivers/misc/habanalabs/common/mmu_v1.c
@@ -262,7 +262,7 @@ static int dram_default_mapping_init(struct hl_ctx *ctx)
hop2_pte_addr, hop3_pte_addr, pte_val;
int rc, i, j, hop3_allocated = 0;
- if ((!hdev->dram_supports_virtual_memory) ||
+ if ((!prop->dram_supports_virtual_memory) ||
(!hdev->dram_default_page_mapping) ||
(ctx->asid == HL_KERNEL_ASID_ID))
return 0;
@@ -362,7 +362,7 @@ static void dram_default_mapping_fini(struct hl_ctx *ctx)
hop2_pte_addr, hop3_pte_addr;
int i, j;
- if ((!hdev->dram_supports_virtual_memory) ||
+ if ((!prop->dram_supports_virtual_memory) ||
(!hdev->dram_default_page_mapping) ||
(ctx->asid == HL_KERNEL_ASID_ID))
return;