]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/dce10: Clean up reference counting and pinning of the cursor BOs
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Oct 2015 15:25:38 +0000 (11:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Oct 2015 20:16:27 +0000 (16:16 -0400)
commit6c0b3247a337f7f2caf9bcf14335c7ea0298f49a
tree432c2f45bc651945ce83b98b972d3fc39e552e78
parentd1561e15d2ff877df9a046b1e1ef14d966f72aeb
drm/amdgpu/dce10: 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 dce10 crtc_cursor_set2, and use
amdgpu_crtc->cursor_addr in dce10 set_cursor.

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

Port of radeon commit:
76127868068c7e18d1b8947e2acdcff5393deb41

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