diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ltc_common.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ltc_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ltc_common.c b/drivers/gpu/nvgpu/gk20a/ltc_common.c index 45607154..5795fe91 100644 --- a/drivers/gpu/nvgpu/gk20a/ltc_common.c +++ b/drivers/gpu/nvgpu/gk20a/ltc_common.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * GK20A Graphics | 4 | * GK20A Graphics |
5 | * | 5 | * |
6 | * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. | 6 | * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify it | 8 | * This program is free software; you can redistribute it and/or modify it |
9 | * under the terms and conditions of the GNU General Public License, | 9 | * under the terms and conditions of the GNU General Public License, |
@@ -92,8 +92,9 @@ static void gk20a_ltc_init_cbc(struct gk20a *g, struct gr_gk20a *gr) | |||
92 | u64 compbit_base_post_multiply64; | 92 | u64 compbit_base_post_multiply64; |
93 | u64 compbit_store_iova; | 93 | u64 compbit_store_iova; |
94 | u64 compbit_base_post_divide64; | 94 | u64 compbit_base_post_divide64; |
95 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | ||
95 | 96 | ||
96 | if (tegra_platform_is_linsim()) | 97 | if (platform->is_fmodel) |
97 | compbit_store_iova = gk20a_mem_phys(&gr->compbit_store.mem); | 98 | compbit_store_iova = gk20a_mem_phys(&gr->compbit_store.mem); |
98 | else | 99 | else |
99 | compbit_store_iova = g->ops.mm.get_iova_addr(g, | 100 | compbit_store_iova = g->ops.mm.get_iova_addr(g, |