linux/drivers/gpu/drm/radeon/atom.c
Dave Airlie 5078540360 drm/radeon: add locking around atombios scratch space usage
commit 1c94984254 upstream.

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>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
2014-11-27 11:21:43 +00:00

1425 lines
35 KiB