summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/ltc_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/ltc_gp10b.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
index 0ccabaf8..3e64d435 100644
--- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GP10B L2 2 * GP10B L2
3 * 3 *
4 * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -70,6 +70,7 @@ static int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
70 u32 compbit_backing_size; 70 u32 compbit_backing_size;
71 71
72 int err; 72 int err;
73 struct gk20a_platform *platform = dev_get_drvdata(g->dev);
73 74
74 gk20a_dbg_fn(""); 75 gk20a_dbg_fn("");
75 76
@@ -100,7 +101,7 @@ static int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
100 gk20a_dbg_info("gobs_per_comptagline_per_slice: %d", 101 gk20a_dbg_info("gobs_per_comptagline_per_slice: %d",
101 gobs_per_comptagline_per_slice); 102 gobs_per_comptagline_per_slice);
102 103
103 if (tegra_platform_is_linsim()) 104 if (platform->is_fmodel)
104 err = gk20a_ltc_alloc_phys_cbc(g, compbit_backing_size); 105 err = gk20a_ltc_alloc_phys_cbc(g, compbit_backing_size);
105 else 106 else
106 err = gk20a_ltc_alloc_virt_cbc(g, compbit_backing_size); 107 err = gk20a_ltc_alloc_virt_cbc(g, compbit_backing_size);