]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/radeon: Clean up reference counting and pinning of the cursor BOs
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 7 Jul 2015 07:27:28 +0000 (16:27 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:10 +0000 (09:29 -0700)
commit5161879c7e43ba40edbe2991ec31bfa6f7e2fe30
tree8a05490fc73325ca075a9177580ead6efb30aa6a
parent7c4cbc81127b31fa179578e8b17b422efc16d966
drm/radeon: Clean up reference counting and pinning of the cursor BOs

commit cd404af0c930104462aa91344f07d002cf8248ed upstream.

Take a GEM reference for and pin the new cursor BO, unpin and drop the
GEM reference for the old cursor BO in radeon_crtc_cursor_set2, and use
radeon_crtc->cursor_addr in radeon_set_cursor.

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

Reviewed-by: Grigori Goronzy <greg@chown.ath.cx>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_cursor.c
drivers/gpu/drm/radeon/radeon_mode.h