diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h | 8 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | 10 |
2 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h index 01b66c9c..ea96a9aa 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_ltc_gp10b.h | |||
@@ -514,4 +514,12 @@ static inline u32 ltc_ltc0_lts0_tstg_info_1_slices_per_l2_v(u32 r) | |||
514 | { | 514 | { |
515 | return (r >> 16) & 0x1f; | 515 | return (r >> 16) & 0x1f; |
516 | } | 516 | } |
517 | static inline u32 ltc_ltca_g_axi_pctrl_r(void) | ||
518 | { | ||
519 | return 0x00160000; | ||
520 | } | ||
521 | static inline u32 ltc_ltca_g_axi_pctrl_user_sid_f(u32 v) | ||
522 | { | ||
523 | return (v & 0xff) << 2; | ||
524 | } | ||
517 | #endif | 525 | #endif |
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c index dbeed474..78c85f3e 100644 --- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | |||
@@ -148,6 +148,14 @@ void gp10b_ltc_isr(struct gk20a *g) | |||
148 | } | 148 | } |
149 | } | 149 | } |
150 | 150 | ||
151 | void gp10b_ltc_init_fs_state(struct gk20a *g) | ||
152 | { | ||
153 | gm20b_ltc_init_fs_state(g); | ||
154 | |||
155 | gk20a_writel(g, ltc_ltca_g_axi_pctrl_r(), | ||
156 | ltc_ltca_g_axi_pctrl_user_sid_f(31)); | ||
157 | } | ||
158 | |||
151 | void gp10b_init_ltc(struct gpu_ops *gops) | 159 | void gp10b_init_ltc(struct gpu_ops *gops) |
152 | { | 160 | { |
153 | gops->ltc.determine_L2_size_bytes = gp10b_determine_L2_size_bytes; | 161 | gops->ltc.determine_L2_size_bytes = gp10b_determine_L2_size_bytes; |
@@ -157,7 +165,7 @@ void gp10b_init_ltc(struct gpu_ops *gops) | |||
157 | gops->ltc.init_cbc = gk20a_ltc_init_cbc; | 165 | gops->ltc.init_cbc = gk20a_ltc_init_cbc; |
158 | 166 | ||
159 | /* GM20b specific ops. */ | 167 | /* GM20b specific ops. */ |
160 | gops->ltc.init_fs_state = gm20b_ltc_init_fs_state; | 168 | gops->ltc.init_fs_state = gp10b_ltc_init_fs_state; |
161 | gops->ltc.init_comptags = gp10b_ltc_init_comptags; | 169 | gops->ltc.init_comptags = gp10b_ltc_init_comptags; |
162 | gops->ltc.cbc_ctrl = gm20b_ltc_cbc_ctrl; | 170 | gops->ltc.cbc_ctrl = gm20b_ltc_cbc_ctrl; |
163 | gops->ltc.elpg_flush = gm20b_ltc_g_elpg_flush_locked; | 171 | gops->ltc.elpg_flush = gm20b_ltc_g_elpg_flush_locked; |