Skip to content

Commit

Permalink
drm/amdgpu/gfx9: reserve kiq eop object before unmapping it
Browse files Browse the repository at this point in the history
It's required.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Alex Deucher committed Mar 30, 2017
1 parent e1d53aa commit f7618a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,11 @@ static int gfx_v9_0_kiq_init(struct amdgpu_device *adev)

memset(hpd, 0, MEC_HPD_SIZE);

r = amdgpu_bo_reserve(kiq->eop_obj, false);
if (unlikely(r != 0))
dev_warn(adev->dev, "(%d) reserve kiq eop bo failed\n", r);
amdgpu_bo_kunmap(kiq->eop_obj);
amdgpu_bo_unreserve(kiq->eop_obj);

return 0;
}
Expand Down

0 comments on commit f7618a6

Please sign in to comment.