[PATCH] drm/radeon/kms: Initialize pageflip spinlocks.

Michel Dänzer michel at daenzer.net
Tue Jan 11 01:44:54 PST 2011


From: Michel Dänzer <daenzer at vmware.com>

I'm amazed but not really surprised this worked on x86...

Signed-off-by: Michel Dänzer <daenzer at vmware.com>
---
 drivers/gpu/drm/radeon/radeon_irq_kms.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_irq_kms.c b/drivers/gpu/drm/radeon/radeon_irq_kms.c
index a289646..9ec830c 100644
--- a/drivers/gpu/drm/radeon/radeon_irq_kms.c
+++ b/drivers/gpu/drm/radeon/radeon_irq_kms.c
@@ -110,11 +110,14 @@ void radeon_driver_irq_uninstall_kms(struct drm_device *dev)
 
 int radeon_irq_kms_init(struct radeon_device *rdev)
 {
+	int i;
 	int r = 0;
 
 	INIT_WORK(&rdev->hotplug_work, radeon_hotplug_work_func);
 
 	spin_lock_init(&rdev->irq.sw_lock);
+	for (i = 0; i < rdev->num_crtc; i++)
+		spin_lock_init(&rdev->irq.pflip_lock[i]);
 	r = drm_vblank_init(rdev->ddev, rdev->num_crtc);
 	if (r) {
 		return r;
-- 
1.7.2.3



More information about the dri-devel mailing list