drm: Avoid printing negative values for unsigned variables.
Subsystems (2)
PATCH 1/1 drm: Avoid printing negative values for unsigned variables.
It was really strange to see negative vblank seqs on debug messages. It is rare to have that big number, but when it happens it is confusing and misleading.
--- drivers/gpu/drm/drm_irq.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/drm_irq.c +5 -5
@@ -1295,7 +1295,7 @@ void drm_vblank_off(struct drm_device *dev, unsigned int pipe)if (e->pipe != pipe)continue ;DRM_DEBUG ("Sending premature vblank event on disable: " -"wanted %d, current %d\n" , +"wanted %u, current %u\n" , e->event.sequence, seq);list_del (&e->base.link);drm_vblank_put (dev, pipe);
@@ -1585,7 +1585,7 @@ static int drm_queue_vblank_event(struct drm_device *dev, unsigned int pipe, seq =drm_vblank_count_and_time (dev, pipe, &now); -DRM_DEBUG ("event on vblank count %d, current %d, crtc %u\n" , +DRM_DEBUG ("event on vblank count %u, current %u, crtc %u\n" , vblwait->request.sequence, seq, pipe); trace_drm_vblank_event_queued(current->pid, pipe,
@@ -1693,7 +1693,7 @@ int drm_wait_vblank(struct drm_device *dev, void *data,return drm_queue_vblank_event (dev, pipe, vblwait, file_priv); } -DRM_DEBUG ("waiting on vblank count %d, crtc %u\n" , +DRM_DEBUG ("waiting on vblank count %u, crtc %u\n" , vblwait->request.sequence, pipe); DRM_WAIT_ON(ret, vblank->queue, 3 * HZ, (((drm_vblank_count(dev, pipe) -
@@ -1708,7 +1708,7 @@ int drm_wait_vblank(struct drm_device *dev, void *data, vblwait->reply.tval_sec = now.tv_sec; vblwait->reply.tval_usec = now.tv_usec; -DRM_DEBUG ("returning %d to client\n" , +DRM_DEBUG ("returning %u to client\n" , vblwait->reply.sequence); }else {DRM_DEBUG ("vblank wait interrupted by signal\n" );
@@ -1735,7 +1735,7 @@ static void drm_handle_vblank_events(struct drm_device *dev, unsigned int pipe)if ((seq - e->event.sequence) > (1 <<23 ))continue ; -DRM_DEBUG ("vblank event on %d, current %d\n" , +DRM_DEBUG ("vblank event on %u, current %u\n" , e->event.sequence, seq);list_del (&e->base.link);
Signature · 6 lines
2.5.5 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Ro.CI.BAT: failure for drm: Avoid printing negative values for unsigned variables.
== Series Details ==
== Series Details ==
Series: drm: Avoid printing negative values for unsigned variables.
URL : https://patchwork.freedesktop.org/series/10612/
State : failure
== Summary ==
Series 10612v1 drm: Avoid printing negative values for unsigned variables.
http://patchwork.freedesktop.org/api/1.0/series/10612/revisions/1/mbox
Test kms_cursor_legacy:
Subgroup basic-flip-vs-cursor-legacy:
fail -> PASS (ro-hsw-i7-4770r)
fail -> PASS (ro-bdw-i7-5600u)
pass -> FAIL (ro-bdw-i5-5250u)
Subgroup basic-flip-vs-cursor-varying-size:
pass -> FAIL (ro-bdw-i5-5250u)ro-bdw-i5-5250u total:240 pass:218 dwarn:4 dfail:0 fail:2 skip:16 ro-bdw-i7-5557U total:240 pass:224 dwarn:0 dfail:0 fail:0 skip:16 ro-bdw-i7-5600u total:240 pass:207 dwarn:0 dfail:0 fail:1 skip:32 ro-bsw-n3050 total:240 pass:193 dwarn:0 dfail:0 fail:4 skip:43 ro-byt-n2820 total:240 pass:197 dwarn:0 dfail:0 fail:3 skip:40 ro-hsw-i3-4010u total:240 pass:214 dwarn:0 dfail:0 fail:0 skip:26 ro-hsw-i7-4770r total:240 pass:214 dwarn:0 dfail:0 fail:0 skip:26 ro-ilk-i7-620lm total:240 pass:173 dwarn:1 dfail:0 fail:1 skip:65 ro-ilk1-i5-650 total:235 pass:173 dwarn:0 dfail:0 fail:2 skip:60 ro-ivb-i7-3770 total:240 pass:205 dwarn:0 dfail:0 fail:0 skip:35 ro-ivb2-i7-3770 total:240 pass:209 dwarn:0 dfail:0 fail:0 skip:31 ro-skl3-i5-6260u total:240 pass:222 dwarn:0 dfail:0 fail:4 skip:14 ro-snb-i7-2620M total:240 pass:198 dwarn:0 dfail:0 fail:1 skip:41
Results at /archive/results/CI_IGT_test/RO_Patchwork_1687/
4d6f224 drm-intel-nightly: 2016y-08m-03d-15h-38m-31s UTC integration manifest 7e81331 drm: Avoid printing negative values for unsigned variables.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · Rodrigo Vivi
It was really strange to see negative vblank seqs on debug messages. It is rare to have that big number, but when it happens it is confusing and misleading.
Signed-off-by Rodrigo Vivi <[email protected]>
Quoted 60 lines
--- drivers/gpu/drm/drm_irq.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/drm_irq.c +5
-5@@ -1295,7 +1295,7 @@ void drm_vblank_off(struct drm_device *dev, unsigned int pipe)if (e->pipe != pipe)continue ;DRM_DEBUG ("Sending premature vblank event on disable: " -"wanted %d, current %d\n" , +"wanted %u, current %u\n" , e->event.sequence, seq);list_del (&e->base.link);drm_vblank_put (dev, pipe);@@ -1585,7 +1585,7 @@ static int drm_queue_vblank_event(struct drm_device *dev, unsigned int pipe, seq =drm_vblank_count_and_time (dev, pipe, &now); -DRM_DEBUG ("event on vblank count %d, current %d, crtc %u\n" , +DRM_DEBUG ("event on vblank count %u, current %u, crtc %u\n" , vblwait->request.sequence, seq, pipe); trace_drm_vblank_event_queued(current->pid, pipe,@@ -1693,7 +1693,7 @@ int drm_wait_vblank(struct drm_device *dev, void *data,return drm_queue_vblank_event (dev, pipe, vblwait, file_priv); } -DRM_DEBUG ("waiting on vblank count %d, crtc %u\n" , +DRM_DEBUG ("waiting on vblank count %u, crtc %u\n" , vblwait->request.sequence, pipe); DRM_WAIT_ON(ret, vblank->queue, 3 * HZ, (((drm_vblank_count(dev, pipe) -@@ -1708,7 +1708,7 @@ int drm_wait_vblank(struct drm_device *dev, void *data, vblwait->reply.tval_sec = now.tv_sec; vblwait->reply.tval_usec = now.tv_usec; -DRM_DEBUG ("returning %d to client\n" , +DRM_DEBUG ("returning %u to client\n" , vblwait->reply.sequence); }else {DRM_DEBUG ("vblank wait interrupted by signal\n" );@@ -1735,7 +1735,7 @@ static void drm_handle_vblank_events(struct drm_device *dev, unsigned int pipe)if ((seq - e->event.sequence) > (1 <<23 ))continue ; -DRM_DEBUG ("vblank event on %d, current %d\n" , +DRM_DEBUG ("vblank event on %u, current %u\n" , e->event.sequence, seq);list_del (&e->base.link);Signature · 6 lines
2.5.5 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 8 lines · Ville Syrjälä
Quoted 5 lines · Rodrigo Vivi
It was really strange to see negative vblank seqs on debug messages. It is rare to have that big number, but when it happens it is confusing and misleading.
Signed-off-by Rodrigo Vivi <[email protected]>Reviewed-by Ville Syrjälä <[email protected]>
Put into my -misc queue, will push out once -rc1 hits. -Daniel
Quoted 69 lines
Quoted 61 lines
--- drivers/gpu/drm/drm_irq.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/drm_irq.c +5
-5@@ -1295,7 +1295,7 @@ void drm_vblank_off(struct drm_device *dev, unsigned int pipe)if (e->pipe != pipe)continue ;DRM_DEBUG ("Sending premature vblank event on disable: " -"wanted %d, current %d\n" , +"wanted %u, current %u\n" , e->event.sequence, seq);list_del (&e->base.link);drm_vblank_put (dev, pipe);@@ -1585,7 +1585,7 @@ static int drm_queue_vblank_event(struct drm_device *dev, unsigned int pipe, seq =drm_vblank_count_and_time (dev, pipe, &now); -DRM_DEBUG ("event on vblank count %d, current %d, crtc %u\n" , +DRM_DEBUG ("event on vblank count %u, current %u, crtc %u\n" , vblwait->request.sequence, seq, pipe); trace_drm_vblank_event_queued(current->pid, pipe,@@ -1693,7 +1693,7 @@ int drm_wait_vblank(struct drm_device *dev, void *data,return drm_queue_vblank_event (dev, pipe, vblwait, file_priv); } -DRM_DEBUG ("waiting on vblank count %d, crtc %u\n" , +DRM_DEBUG ("waiting on vblank count %u, crtc %u\n" , vblwait->request.sequence, pipe); DRM_WAIT_ON(ret, vblank->queue, 3 * HZ, (((drm_vblank_count(dev, pipe) -@@ -1708,7 +1708,7 @@ int drm_wait_vblank(struct drm_device *dev, void *data, vblwait->reply.tval_sec = now.tv_sec; vblwait->reply.tval_usec = now.tv_usec; -DRM_DEBUG ("returning %d to client\n" , +DRM_DEBUG ("returning %u to client\n" , vblwait->reply.sequence); }else {DRM_DEBUG ("vblank wait interrupted by signal\n" );@@ -1735,7 +1735,7 @@ static void drm_handle_vblank_events(struct drm_device *dev, unsigned int pipe)if ((seq - e->event.sequence) > (1 <<23 ))continue ; -DRM_DEBUG ("vblank event on %d, current %d\n" , +DRM_DEBUG ("vblank event on %u, current %u\n" , e->event.sequence, seq);list_del (&e->base.link);Signature · 6 lines
2.5.5 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx