diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-09-20 14:08:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-21 20:34:28 -0400 |
commit | 50a1cc069a6b28757de1af1617c0f9f037b60c6a (patch) | |
tree | c635fe4e1fd0c2f4ef405766eb65da553f9a2cb9 /drivers/gpu/nvgpu/gm20b | |
parent | 8882014731730ef7febb1e2236e82a9d409f77ec (diff) |
gpu: nvgpu: memory unlock HAL support
- Created "mem_unlock" HAL under fb to support memory
unlock
- Called as part of gk20a_finalize_poweron() if memory unlock
support needed by checking HAL
- Assigned "mem_unlock" HAL to NULL for chips which don't
need memory unlocks.
Change-Id: I68d0910f15d293feaacfcbf6bd17ecccd3b5219d
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
(cherry picked from commit 586894eb84860bbbe4c75dae4715bdf27432a480)
Reviewed-on: https://git-master.nvidia.com/r/1564703
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index e146d3ca..269fd7f1 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -308,6 +308,7 @@ static const struct gpu_ops gm20b_ops = { | |||
308 | .is_debug_mode_enabled = gm20b_fb_debug_mode_enabled, | 308 | .is_debug_mode_enabled = gm20b_fb_debug_mode_enabled, |
309 | .set_debug_mode = gm20b_fb_set_debug_mode, | 309 | .set_debug_mode = gm20b_fb_set_debug_mode, |
310 | .tlb_invalidate = gk20a_fb_tlb_invalidate, | 310 | .tlb_invalidate = gk20a_fb_tlb_invalidate, |
311 | .mem_unlock = NULL, | ||
311 | }, | 312 | }, |
312 | .clock_gating = { | 313 | .clock_gating = { |
313 | .slcg_bus_load_gating_prod = | 314 | .slcg_bus_load_gating_prod = |