diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2020-11-09 09:48:31 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2020-11-30 10:47:34 +0200 |
commit | 7f070c913c361ed79dd29d9256b486b1b105d7f0 (patch) | |
tree | cb131b26d10b582e1c95970e21f4fba37af9cce9 /drivers/misc/habanalabs/common/debugfs.c | |
parent | be91b91fa40f5d2b1c8b79dbc34c1130de16f9e7 (diff) | |
download | lwn-7f070c913c361ed79dd29d9256b486b1b105d7f0.tar.gz lwn-7f070c913c361ed79dd29d9256b486b1b105d7f0.zip |
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.c | 2 |
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; |