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

This fixes dce11 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_v11_0.c