drm/radeon: protect concurrent smc register access with a spinlock
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Sep 2013 22:19:42 +0000 (18:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Sep 2013 15:44:28 +0000 (11:44 -0400)
commitfe78118c4603ab91b88907eaabe4a1ca03a9f220
tree7c84a0664723ac52194413f76d2caf9eff71ee68
parent136de91ea760b55bd52b707c1443f121e006962e
drm/radeon: protect concurrent smc register access with a spinlock

smc registers are access indirectly via the main mmio aperture, so
there may be problems with concurrent access.  This adds a spinlock
to protect access to this register space.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/ci_smc.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/rv770_smc.c
drivers/gpu/drm/radeon/rv770_smc.h
drivers/gpu/drm/radeon/si_smc.c