projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b50c1
)
drm: Improve debug output for drm_wait_one_vblank
author
Daniel Vetter
<
[email protected]
>
Mon, 15 Sep 2014 12:04:28 +0000
(14:04 +0200)
committer
Daniel Vetter
<
[email protected]
>
Wed, 24 Sep 2014 10:09:23 +0000
(12:09 +0200)
This replicates what we've done in i915 in
commit
31e4b89acbd7b19c9a8557e6e660a583a0b97daa
Author: Damien Lespiau <
[email protected]
>
Date: Mon Aug 18 13:51:00 2014 +0100
drm/i915: Print the pipe on which the vblank wait times out
to make sure that when we switch i915 to drm_wait_one_vblank that the
debug output doesn't regress.
Cc: Damien Lespiau <
[email protected]
>
Cc: Thomas Wood <
[email protected]
>
Reviewed-by: Damien Lespiau <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/drm_irq.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_irq.c
b/drivers/gpu/drm/drm_irq.c
index e73cbdaa18df8669feb33a81aaedfa2013596bfe..5ef03c216a2740818468ef64ebb1a056f1644235 100644
(file)
--- a/
drivers/gpu/drm/drm_irq.c
+++ b/
drivers/gpu/drm/drm_irq.c
@@
-1077,7
+1077,7
@@
void drm_wait_one_vblank(struct drm_device *dev, int crtc)
u32 last;
ret = drm_vblank_get(dev, crtc);
- if (WARN
_ON(
ret))
+ if (WARN
(ret, "vblank not available on crtc %i, ret=%i\n", crtc,
ret))
return;
last = drm_vblank_count(dev, crtc);
@@
-1086,7
+1086,7
@@
void drm_wait_one_vblank(struct drm_device *dev, int crtc)
last != drm_vblank_count(dev, crtc),
msecs_to_jiffies(100));
- WARN
_ON(ret == 0
);
+ WARN
(ret == 0, "vblank wait timed out on crtc %i\n", crtc
);
drm_vblank_put(dev, crtc);
}