drm/radeon: add locking around atombios scratch space usage
authorDave Airlie <airlied@redhat.com>
Mon, 10 Nov 2014 23:16:15 +0000 (09:16 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Nov 2014 22:22:26 +0000 (17:22 -0500)
While developing MST support I noticed I often got the wrong data
back from a transaction, in a racy fashion. I noticed the scratch
space wasn't locked against concurrent users.

Based on a patch by Alex, but I've made it a bit more obvious when
things are locked.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/atom.c
drivers/gpu/drm/radeon/atom.h
drivers/gpu/drm/radeon/atombios_dp.c
drivers/gpu/drm/radeon/atombios_i2c.c
drivers/gpu/drm/radeon/radeon_device.c

Simple merge
Simple merge
Simple merge
Simple merge