From 4f5996e23d7ea3d576c33f9b0ec5c7b590d6adca Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 15 Mar 2017 16:07:24 -0700 Subject: 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 Reviewed-on: http://git-master/r/1321576 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c') 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) } /* reset gr engine */ - gk20a_reset(g, mc_enable_pgraph_enabled_f() - | mc_enable_blg_enabled_f() - | mc_enable_perfmon_enabled_f() - | ce_reset_mask); + g->ops.mc.reset(g, mc_enable_pgraph_enabled_f() | + mc_enable_blg_enabled_f() | + mc_enable_perfmon_enabled_f() | + ce_reset_mask); gr_gk20a_load_gating_prod(g); -- cgit v1.2.2