projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0104cf2
)
drm/amdgpu/gfx8: reserve kiq eop object before unmapping it
author
Alex Deucher
<
[email protected]
>
Thu, 23 Mar 2017 05:51:53 +0000
(
01:51
-0400)
committer
Alex Deucher
<
[email protected]
>
Thu, 30 Mar 2017 03:54:12 +0000
(23:54 -0400)
It's required.
Reviewed-by: Christian König <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 353494431a92b9f86faf011c89c0ba83f79cc5ff..0fc29959f4123dda407575699d35d9b80275492f 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@
-1488,7
+1488,11
@@
static int gfx_v8_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;
}