diff options
author | Sami Kiminki <skiminki@nvidia.com> | 2018-01-31 16:09:28 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-06 08:21:41 -0500 |
commit | 068217e5674d9d396b294331012e1effd18c345a (patch) | |
tree | a6a0be30715bb84e8cf5eb98b1140745a4a2640f /drivers/gpu/nvgpu/gv11b | |
parent | d6ce4f7fb4bb9e6f393ff0f938b3ad8375163983 (diff) |
gpu: nvgpu: gv11b: disable SCC pagepool invalidates
Disable SCC pagepool invalidates as is required by HW. Since this
register is context-switched, add these in the GR init sequence.
Bug 2040262
Change-Id: I8dd1b7c7c4b0544878ca57b1261f9c85fa380d47
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1649719
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index 3e207811..67bd4b88 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -2765,6 +2765,12 @@ int gr_gv11b_init_fs_state(struct gk20a *g) | |||
2765 | gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_disable_f()); | 2765 | gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_disable_f()); |
2766 | gk20a_writel(g, gr_gpcs_tpcs_sm_disp_ctrl_r(), data); | 2766 | gk20a_writel(g, gr_gpcs_tpcs_sm_disp_ctrl_r(), data); |
2767 | 2767 | ||
2768 | /* Disable SCC pagepool invalidates */ | ||
2769 | data = gk20a_readl(g, gr_scc_debug_r()); | ||
2770 | data = set_field(data, gr_scc_debug_pagepool_invalidates_m(), | ||
2771 | gr_scc_debug_pagepool_invalidates_disable_f()); | ||
2772 | gk20a_writel(g, gr_scc_debug_r(), data); | ||
2773 | |||
2768 | if (g->gr.fecs_feature_override_ecc_val != 0) { | 2774 | if (g->gr.fecs_feature_override_ecc_val != 0) { |
2769 | gk20a_writel(g, | 2775 | gk20a_writel(g, |
2770 | gr_fecs_feature_override_ecc_r(), | 2776 | gr_fecs_feature_override_ecc_r(), |