]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/dce8: Clean up reference counting and pinning of the cursor BOs
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Oct 2015 15:31:58 +0000 (11:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Oct 2015 20:16:34 +0000 (16:16 -0400)
commit3571cab31ba411cfb241009982ffe98bb0ea7c77
tree9b6329372647692a43347ec4adcc344120558f64
parente914e8cc9f5bd0dab5d2addb21598954ce00f258
drm/amdgpu/dce8: Clean up reference counting and pinning of the cursor BOs

Take a GEM reference for and pin the new cursor BO, unpin and drop the
GEM reference for the old cursor BO in dce8 crtc_cursor_set2, and use
amdgpu_crtc->cursor_addr in dce8 set_cursor.

This fixes dce8 cursor_reset accidentally incrementing the cursor BO
pin count, and cleans up the code a little.

Port of radeon commit:
2216109db529d06bb5930f072df40a0daa929cfe

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c