summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-03-15 19:07:24 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-26 12:55:15 -0400
commit4f5996e23d7ea3d576c33f9b0ec5c7b590d6adca (patch)
treeeade673d7b4462bcc45aa9d034efa926b30e7a03 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c
parentf01c36986e22de0f4a049bf6897dd276b17a18ba (diff)
gpu: nvgpu: Remove MC accesses from gk20a.c
Clean up gk20a.c by removing direct accesses to MC and moving the accesses to happen via MC HAL. The chip detection logic has to violate the HAL and call gk20a version directly, because HAL ops cannot be set up before chip has been identified. Change-Id: I4cdd0ef3fcf7d3b561a3fca4247a8356fe8d18e1 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1321576 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 5121d6e9..63ae1da1 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -4970,10 +4970,10 @@ static int gk20a_init_gr_prepare(struct gk20a *g)
4970 } 4970 }
4971 4971
4972 /* reset gr engine */ 4972 /* reset gr engine */
4973 gk20a_reset(g, mc_enable_pgraph_enabled_f() 4973 g->ops.mc.reset(g, mc_enable_pgraph_enabled_f() |
4974 | mc_enable_blg_enabled_f() 4974 mc_enable_blg_enabled_f() |
4975 | mc_enable_perfmon_enabled_f() 4975 mc_enable_perfmon_enabled_f() |
4976 | ce_reset_mask); 4976 ce_reset_mask);
4977 4977
4978 gr_gk20a_load_gating_prod(g); 4978 gr_gk20a_load_gating_prod(g);
4979 4979