diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-03-23 12:30:41 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:55:16 -0400 |
commit | f7618a633095daaf42f054af153fa7970ee71cee (patch) | |
tree | cf7a6c55d48cb2a10358ae0e129342d3ae8665e7 | |
parent | e1d53aa880e359f94bb1141cc836ddbbc0080162 (diff) |
drm/amdgpu/gfx9: reserve kiq eop object before unmapping it
It's required.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 861b1eccd714..f46eb293cb17 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |||
@@ -600,7 +600,11 @@ static int gfx_v9_0_kiq_init(struct amdgpu_device *adev) | |||
600 | 600 | ||
601 | memset(hpd, 0, MEC_HPD_SIZE); | 601 | memset(hpd, 0, MEC_HPD_SIZE); |
602 | 602 | ||
603 | r = amdgpu_bo_reserve(kiq->eop_obj, false); | ||
604 | if (unlikely(r != 0)) | ||
605 | dev_warn(adev->dev, "(%d) reserve kiq eop bo failed\n", r); | ||
603 | amdgpu_bo_kunmap(kiq->eop_obj); | 606 | amdgpu_bo_kunmap(kiq->eop_obj); |
607 | amdgpu_bo_unreserve(kiq->eop_obj); | ||
604 | 608 | ||
605 | return 0; | 609 | return 0; |
606 | } | 610 | } |