diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-12-17 16:25:33 -0500 |
---|---|---|
committer | Alex Waterman <alexw@nvidia.com> | 2017-12-17 19:21:52 -0500 |
commit | b014a0b2c18cf8661ef5f45502add906c75ca0ce (patch) | |
tree | 996c8a27ac0465a7c7b376e08400e2cebb98b806 /drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |
parent | 65513bc33d65c921cd556a72e4e9263565dca4bf (diff) |
gpu: nvgpu: gv11b: Skip disabling vdc_4to2
gr_gv11b_init_fs_state() calls gr_gm20b_init_fs_state() which
disables vdc_4to2. This should no longer be done on gv11b, so
instead of calling gr_gm20b_init_fs_state() copy the relevant
lines to gr_gv11b_init_fs_state() and drop vdc_4to2 disable.
gv11b_ltc_init_fs_state() also disables it to match the state.
Remove that disable, too.
Change-Id: I3a3fd87a3e8836e495cb818570c971b3d29a6dd1
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1619966
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Wei Sun <wsun@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/gr_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index 8514cc1e..8d8f56f6 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -2382,6 +2382,7 @@ void gr_gv11b_set_preemption_buffer_va(struct gk20a *g, | |||
2382 | int gr_gv11b_init_fs_state(struct gk20a *g) | 2382 | int gr_gv11b_init_fs_state(struct gk20a *g) |
2383 | { | 2383 | { |
2384 | u32 data; | 2384 | u32 data; |
2385 | int err; | ||
2385 | 2386 | ||
2386 | gk20a_dbg_fn(""); | 2387 | gk20a_dbg_fn(""); |
2387 | 2388 | ||
@@ -2401,7 +2402,20 @@ int gr_gv11b_init_fs_state(struct gk20a *g) | |||
2401 | g->gr.fecs_feature_override_ecc_val); | 2402 | g->gr.fecs_feature_override_ecc_val); |
2402 | } | 2403 | } |
2403 | 2404 | ||
2404 | return gr_gm20b_init_fs_state(g); | 2405 | err = gr_gk20a_init_fs_state(g); |
2406 | if (err) | ||
2407 | return err; | ||
2408 | |||
2409 | g->ops.gr.load_tpc_mask(g); | ||
2410 | |||
2411 | gk20a_writel(g, gr_bes_zrop_settings_r(), | ||
2412 | gr_bes_zrop_settings_num_active_ltcs_f(g->ltc_count)); | ||
2413 | gk20a_writel(g, gr_bes_crop_settings_r(), | ||
2414 | gr_bes_crop_settings_num_active_ltcs_f(g->ltc_count)); | ||
2415 | |||
2416 | g->ops.gr.load_smid_config(g); | ||
2417 | |||
2418 | return err; | ||
2405 | } | 2419 | } |
2406 | 2420 | ||
2407 | void gv11b_gr_get_esr_sm_sel(struct gk20a *g, u32 gpc, u32 tpc, | 2421 | void gv11b_gr_get_esr_sm_sel(struct gk20a *g, u32 gpc, u32 tpc, |