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)
commit1c9498425453bb65ef339a57705c5ef59fe1541d
tree293c1d2d23aa2269a67d13d8a5486cc3c6ccf549
parent03dca708521d30153fc5c7e2ff136f780a7372c9
drm/radeon: add locking around atombios scratch space usage

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