]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: fix & improve ih ring handling v3
authorChristian Koenig <christian.koenig@amd.com>
Wed, 16 May 2012 19:45:24 +0000 (21:45 +0200)
committerChristian König <deathsimple@vodafone.de>
Thu, 21 Jun 2012 07:38:48 +0000 (09:38 +0200)
commitd2d14ff874ec7cb0b42029449c0d1af31e7f547b
treee150268483bee4137d9c22e3121171b23a53be76
parentedc9eebe7ed6f12ed17081f3c594e119ac36a2e8
drm/radeon: fix & improve ih ring handling v3

The spinlock was actually there to protect the
rptr, but rptr was read outside of the locked area.

Also we don't really need a spinlock here, an
atomic should to quite fine since we only need to
prevent it from being reentrant.

v2: Keep the spinlock....
v3: Back to an atomic again after finding & fixing the real bug.

Signed-off-by: Christian Koenig <christian.koenig@amd.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/si.c