From b2b37c6437a5492f85a1d0f06358e576271d6e0d Mon Sep 17 00:00:00 2001 From: Arto Merilainen Date: Wed, 20 Aug 2014 18:13:05 -0700 Subject: 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 Reviewed-on: http://git-master/r/482721 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gm20b/mm_gm20b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gm20b/mm_gm20b.c') 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) ret = gm20b_mm_mmu_vpr_info_fetch_wait(g, VPR_INFO_FETCH_WAIT); fail: - gk20a_idle(g->dev); + pm_runtime_put(&g->dev->dev); return ret; } -- cgit v1.2.2