diff options
author | Deepak Goyal <dgoyal@nvidia.com> | 2015-01-08 07:20:02 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:07:48 -0400 |
commit | 142c377d60947cd707cff612f06d9f58b72bb7e3 (patch) | |
tree | 43dff22236ea62e91dc5ac09d973db1273c527e8 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |
parent | 781cbf5c932dddf00200f07754cb033d417d301d (diff) |
gpu: nvgpu: Fix if/else conds if PMU flag is OFF.
bug 200069748
Invalidating FECS code instblk is required only if
FECS uses bootloader to load. Added check for same
instead of using PMU support to invalidate.
Handle elpg enable/disable call in case PMU is OFF.
Change-Id: I28abbbbe1f22edd9e0417df9d0e831bbd770502c
Signed-off-by: Deepak Goyal <dgoyal@nvidia.com>
Reviewed-on: http://git-master/r/670664
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Tested-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Supriya Sharatkumar <ssharatkumar@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index cffc48f5..d84d4ad5 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -2160,7 +2160,7 @@ static int gr_gk20a_wait_ctxsw_ready(struct gk20a *g) | |||
2160 | return ret; | 2160 | return ret; |
2161 | } | 2161 | } |
2162 | 2162 | ||
2163 | if (support_gk20a_pmu(g->dev)) | 2163 | if (!(g->gpu_characteristics.arch > NVGPU_GPU_ARCH_GM200)) |
2164 | gk20a_writel(g, gr_fecs_current_ctx_r(), | 2164 | gk20a_writel(g, gr_fecs_current_ctx_r(), |
2165 | gr_fecs_current_ctx_valid_false_f()); | 2165 | gr_fecs_current_ctx_valid_false_f()); |
2166 | 2166 | ||