Created
September 20, 2012 14:15
-
-
Save Themaister/3756205 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c | |
index 7ddef8f..43a8344 100644 | |
--- a/drivers/gpu/drm/radeon/radeon_display.c | |
+++ b/drivers/gpu/drm/radeon/radeon_display.c | |
@@ -277,11 +277,14 @@ void radeon_crtc_handle_flip(struct radeon_device *rdev, int crtc_id) | |
u32 update_pending; | |
int vpos, hpos; | |
+ printk(KERN_DEBUG "Radeon: CRTC handle flip.\n"); | |
+ | |
spin_lock_irqsave(&rdev->ddev->event_lock, flags); | |
work = radeon_crtc->unpin_work; | |
if (work == NULL || | |
(work->fence && !radeon_fence_signaled(work->fence))) { | |
spin_unlock_irqrestore(&rdev->ddev->event_lock, flags); | |
+ printk(KERN_DEBUG "Radeon: No fence.\n"); | |
return; | |
} | |
/* New pageflip, or just completion of a previous one? */ | |
@@ -321,6 +324,7 @@ void radeon_crtc_handle_flip(struct radeon_device *rdev, int crtc_id) | |
*/ | |
radeon_crtc->deferred_flip_completion = 1; | |
spin_unlock_irqrestore(&rdev->ddev->event_lock, flags); | |
+ printk(KERN_DEBUG "Radeon: Deferred page flip.\n"); | |
return; | |
} | |
@@ -335,6 +339,7 @@ void radeon_crtc_handle_flip(struct radeon_device *rdev, int crtc_id) | |
e->event.tv_usec = now.tv_usec; | |
list_add_tail(&e->base.link, &e->base.file_priv->event_list); | |
wake_up_interruptible(&e->base.file_priv->event_wait); | |
+ printk(KERN_DEBUG "Radeon: Radeon wakeup: (Frame %u).\n", e->event.sequence); | |
} | |
spin_unlock_irqrestore(&rdev->ddev->event_lock, flags); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment