diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index dc1e9688..3d1f8d28 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -1276,8 +1276,7 @@ u64 gk20a_mm_smmu_vaddr_translate(struct gk20a *g, u64 iova) | |||
1276 | /* ensure it is not vidmem allocation */ | 1276 | /* ensure it is not vidmem allocation */ |
1277 | WARN_ON(is_vidmem_page_alloc(iova)); | 1277 | WARN_ON(is_vidmem_page_alloc(iova)); |
1278 | 1278 | ||
1279 | if (device_is_iommuable(dev_from_gk20a(g)) && | 1279 | if (nvgpu_iommuable(g) && g->ops.mm.get_physical_addr_bits) |
1280 | g->ops.mm.get_physical_addr_bits) | ||
1281 | return iova | 1ULL << g->ops.mm.get_physical_addr_bits(g); | 1280 | return iova | 1ULL << g->ops.mm.get_physical_addr_bits(g); |
1282 | 1281 | ||
1283 | return iova; | 1282 | return iova; |