summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/common/debugfs.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/debugfs.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/debugfs.c')
-rw-r--r--drivers/misc/habanalabs/common/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/common/debugfs.c b/drivers/misc/habanalabs/common/debugfs.c
index 104b9686e57b..3d9bd86312e2 100644
--- a/drivers/misc/habanalabs/common/debugfs.c
+++ b/drivers/misc/habanalabs/common/debugfs.c
@@ -598,7 +598,7 @@ static bool hl_is_device_va(struct hl_device *hdev, u64 addr)
if (!hdev->mmu_enable)
goto out;
- if (hdev->dram_supports_virtual_memory &&
+ if (prop->dram_supports_virtual_memory &&
(addr >= prop->dmmu.start_addr && addr < prop->dmmu.end_addr))
return true;