diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ltc_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c index c6ff07da..0d9a98b4 100644 --- a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | |||
@@ -1,9 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * drivers/video/tegra/host/gk20a/ltc_gk20a.c | 2 | * GK20A L2 |
3 | * | 3 | * |
4 | * GK20A Graphics | 4 | * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. |
5 | * | ||
6 | * Copyright (c) 2011-2015, NVIDIA CORPORATION. All rights reserved. | ||
7 | * | 5 | * |
8 | * 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 |
9 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -173,9 +171,17 @@ out: | |||
173 | 171 | ||
174 | static void gk20a_ltc_init_fs_state(struct gk20a *g) | 172 | static void gk20a_ltc_init_fs_state(struct gk20a *g) |
175 | { | 173 | { |
174 | u32 reg; | ||
175 | |||
176 | gk20a_dbg_info("initialize gk20a L2"); | 176 | gk20a_dbg_info("initialize gk20a L2"); |
177 | 177 | ||
178 | g->max_ltc_count = g->ltc_count = 1; | 178 | g->max_ltc_count = g->ltc_count = 1; |
179 | |||
180 | /* Disable LTC interrupts */ | ||
181 | reg = gk20a_readl(g, ltc_ltcs_ltss_intr_r()); | ||
182 | reg &= ~ltc_ltcs_ltss_intr_en_evicted_cb_m(); | ||
183 | reg &= ~ltc_ltcs_ltss_intr_en_illegal_compstat_m(); | ||
184 | gk20a_writel(g, ltc_ltcs_ltss_intr_r(), reg); | ||
179 | } | 185 | } |
180 | 186 | ||
181 | static void gk20a_ltc_isr(struct gk20a *g) | 187 | static void gk20a_ltc_isr(struct gk20a *g) |