diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/ltc_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/ltc_vgpu.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/ltc_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/ltc_vgpu.c deleted file mode 100644 index eacbbf9e..00000000 --- a/drivers/gpu/nvgpu/common/linux/vgpu/ltc_vgpu.c +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | /* | ||
2 | * Virtualized GPU L2 | ||
3 | * | ||
4 | * Copyright (c) 2014-2018 NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
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, | ||
8 | * version 2, as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
13 | * more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #include "gk20a/gk20a.h" | ||
20 | #include "vgpu.h" | ||
21 | #include "ltc_vgpu.h" | ||
22 | |||
23 | int vgpu_determine_L2_size_bytes(struct gk20a *g) | ||
24 | { | ||
25 | struct vgpu_priv_data *priv = vgpu_get_priv_data(g); | ||
26 | |||
27 | gk20a_dbg_fn(""); | ||
28 | |||
29 | return priv->constants.l2_size; | ||
30 | } | ||
31 | |||
32 | int vgpu_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | ||
33 | { | ||
34 | struct vgpu_priv_data *priv = vgpu_get_priv_data(g); | ||
35 | u32 max_comptag_lines = 0; | ||
36 | int err; | ||
37 | |||
38 | gk20a_dbg_fn(""); | ||
39 | |||
40 | gr->cacheline_size = priv->constants.cacheline_size; | ||
41 | gr->comptags_per_cacheline = priv->constants.comptags_per_cacheline; | ||
42 | gr->slices_per_ltc = priv->constants.slices_per_ltc; | ||
43 | max_comptag_lines = priv->constants.comptag_lines; | ||
44 | |||
45 | if (max_comptag_lines < 2) | ||
46 | return -ENXIO; | ||
47 | |||
48 | err = gk20a_comptag_allocator_init(g, &gr->comp_tags, max_comptag_lines); | ||
49 | if (err) | ||
50 | return err; | ||
51 | |||
52 | return 0; | ||
53 | } | ||
54 | |||
55 | void vgpu_ltc_init_fs_state(struct gk20a *g) | ||
56 | { | ||
57 | struct vgpu_priv_data *priv = vgpu_get_priv_data(g); | ||
58 | |||
59 | gk20a_dbg_fn(""); | ||
60 | |||
61 | g->ltc_count = priv->constants.ltc_count; | ||
62 | } | ||