diff options
author | Arto Merilainen <amerilainen@nvidia.com> | 2014-08-20 21:13:05 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:01 -0400 |
commit | b2b37c6437a5492f85a1d0f06358e576271d6e0d (patch) | |
tree | baedbbce5db47d3c681a46ba0feea4d743857479 /drivers/gpu/nvgpu | |
parent | 1fd722f592c2e0523c5e399a2406a4e387057188 (diff) |
gpu: nvgpu: gm20b: Fix pm refs in VPR info fetch
The code took reference to gk20a by using gk20a_busy_noresume(). This
function takes pm runtime reference only to the GPU, however, the code
dropped the reference by calling gk20a_idle() which also drops the
reference to the platform dependencies (host1x).
This patch modifies gm20b_mm_mmu_vpr_info_fetch_wait() to drop only
the GPU reference.
Change-Id: Ied59381fa302452356768ed59e8ad9af18284e3d
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/482721
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/mm_gm20b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c index ed5b5e0d..fd0d058f 100644 --- a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c | |||
@@ -267,7 +267,7 @@ int gm20b_mm_mmu_vpr_info_fetch(struct gk20a *g) | |||
267 | ret = gm20b_mm_mmu_vpr_info_fetch_wait(g, VPR_INFO_FETCH_WAIT); | 267 | ret = gm20b_mm_mmu_vpr_info_fetch_wait(g, VPR_INFO_FETCH_WAIT); |
268 | 268 | ||
269 | fail: | 269 | fail: |
270 | gk20a_idle(g->dev); | 270 | pm_runtime_put(&g->dev->dev); |
271 | return ret; | 271 | return ret; |
272 | } | 272 | } |
273 | 273 | ||