drm-print
Subsystems (3)
PATCH v3 1/4 drm-print
--- include/drm/drm_print.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
include/drm/drm_print.h +14 -0
@@ -80,6 +80,20 @@ void __drm_printfn_debug(struct drm_printer *p, struct va_format *vaf); __printf(2, 3)void drm_printf (struct drm_printer *p,const char *f, ...); +/** +* drm_vprintf - print to a &drm_printer stream +* @p: the &drm_printer +* @f: format string +* @args: the va_list +*/ +__printf(2, 0) +static inline void drm_vprintf (struct drm_printer *p, +const char *fmt,va_list *va) +{ +struct va_format vaf = { .fmt = fmt, .va = va }; + + p->printfn (p, &vaf); +}/** * drm_seq_file_printer - construct a &drm_printer that outputs to &seq_file
Signature · 6 lines
2.15.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 2/4 drm/i915: Make engine state pretty-printer header configurable
Pass in a format string (and args) to specify the header to be emitted along with the engine state when pretty-printing. This allows the header to be emitted inside the drm_printer stream, so sharing the same prefix and output characteristics (e.g. debug level and filtering).
--- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/intel_engine_cs.c | 18 ++++++++++++------ drivers/gpu/drm/i915/intel_ringbuffer.h | 5 ++++- drivers/gpu/drm/i915/selftests/intel_hangcheck.c | 21 ++++++++++++--------- 4 files changed, 29 insertions(+), 17 deletions(-)
drivers/gpu/drm/i915/i915_debugfs.c +1 -1
@@ -3248,7 +3248,7 @@ static int i915_engine_info(struct seq_file *m, void *unused) p =drm_seq_file_printer (m);for_each_engine (engine, dev_priv, id) -intel_engine_dump (engine, &p); +intel_engine_dump (engine, &p,"%s\n" , engine->name);intel_runtime_pm_put (dev_priv);
drivers/gpu/drm/i915/intel_engine_cs.c +12 -6
@@ -1652,12 +1652,12 @@ void intel_engines_park(struct drm_i915_private *i915)* will be no more interrupts arriving later and the engines * are truly idle. */ -if (!intel_engine_is_idle (engine)) { +if (GEM_WARN_ON (!intel_engine_is_idle (engine))) {struct drm_printer p =drm_debug_printer (__func__); -DRM_ERROR ("%s is not idle before parking\n" , - engine->name); -intel_engine_dump (engine, &p); +intel_engine_dump (engine, &p, +"%s is not idle before parking\n" , + engine->name); }if (engine->park)
@@ -1727,7 +1727,9 @@ static void print_request(struct drm_printer *m, rq->timeline->common->name); } -void intel_engine_dump (struct intel_engine_cs *engine,struct drm_printer *m) +void intel_engine_dump (struct intel_engine_cs *engine, +struct drm_printer *m, +const char *fmt, ...) {struct intel_breadcrumbs *const b = &engine->breadcrumbs;const struct intel_engine_execlists *const execlists = &engine->execlists;
@@ -1735,9 +1737,13 @@ void intel_engine_dump(struct intel_engine_cs *engine, struct drm_printer *m)struct drm_i915_private *dev_priv = engine->i915;struct drm_i915_gem_request *rq;struct rb_node *rb; +va_list ap;u64 addr; -drm_printf (m,"%s\n" , engine->name); +va_start (ap, fmt); +drm_vprintf (m, fmt, &ap); +va_end (ap); + drm_printf(m, "\tcurrent seqno %x, last %x, hangcheck %x [%d ms], inflight %d\n", intel_engine_get_seqno(engine), intel_engine_last_submit(engine),
drivers/gpu/drm/i915/intel_ringbuffer.h +4 -1
@@ -936,6 +936,9 @@ unsigned int intel_engines_has_context_isolation(struct drm_i915_private *i915);bool intel_engine_can_store_dword (struct intel_engine_cs *engine); -void intel_engine_dump (struct intel_engine_cs *engine,struct drm_printer *p); +__printf(3, 4) +void intel_engine_dump (struct intel_engine_cs *engine, +struct drm_printer *m, +const char *fmt, ...);#endif /* _INTEL_RINGBUFFER_H_ */
drivers/gpu/drm/i915/selftests/intel_hangcheck.c +12 -9
@@ -626,9 +626,10 @@ static int igt_wait_reset(void *arg)if (!wait_for_hang (&h, rq)) {struct drm_printer p =drm_info_printer (i915->drm.dev); -pr_err ("Failed to start request %x, at %x\n" , - rq->fence.seqno,hws_seqno (&h, rq)); -intel_engine_dump (rq->engine, &p); +intel_engine_dump (rq->engine, &p, +"%s: Failed to start request %x, at %x\n" , + rq->engine->name, + rq->fence.seqno,hws_seqno (&h, rq));i915_reset (i915,0 );i915_gem_set_wedged (i915);
@@ -721,9 +722,10 @@ static int igt_reset_queue(void *arg)if (!wait_for_hang (&h, prev)) {struct drm_printer p =drm_info_printer (i915->drm.dev); -pr_err ("Failed to start request %x, at %x\n" , - prev->fence.seqno,hws_seqno (&h, prev)); -intel_engine_dump (rq->engine, &p); +intel_engine_dump (rq->engine, &p, +"%s: Failed to start request %x, at %x\n" , + prev->engine->name, + prev->fence.seqno,hws_seqno (&h, prev));i915_gem_request_put (rq);i915_gem_request_put (prev);
@@ -827,9 +829,10 @@ static int igt_handle_error(void *arg)if (!wait_for_hang (&h, rq)) {struct drm_printer p =drm_info_printer (i915->drm.dev); -pr_err ("Failed to start request %x, at %x\n" , - rq->fence.seqno,hws_seqno (&h, rq)); -intel_engine_dump (rq->engine, &p); +intel_engine_dump (rq->engine, &p, +"%s: Failed to start request %x, at %x\n" , + rq->engine->name, + rq->fence.seqno,hws_seqno (&h, rq));i915_reset (i915,0 );i915_gem_set_wedged (i915);
Signature · 6 lines
2.15.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v3 2/4] drm/i915: Make engine state pretty-printer header configurable
Quoted 6 lines · Chris Wilson
Pass in a format string (and args) to specify the header to be emitted along with the engine state when pretty-printing. This allows the header to be emitted inside the
drm_printerstream, so sharing the same prefix and output characteristics (e.g. debug level and filtering).Signed-off-by Chris Wilson <[email protected]>
Quoted 130 lines
--- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/intel_engine_cs.c | 18 ++++++++++++------ drivers/gpu/drm/i915/intel_ringbuffer.h | 5 ++++- drivers/gpu/drm/i915/selftests/intel_hangcheck.c | 21 ++++++++++++--------- 4 files changed, 29 insertions(+), 17 deletions(-)drivers/gpu/drm/i915/i915_debugfs.c +1
-1@@ -3248,7 +3248,7 @@ static int i915_engine_info(struct seq_file *m, void *unused) p =drm_seq_file_printer (m);for_each_engine (engine, dev_priv, id) -intel_engine_dump (engine, &p); +intel_engine_dump (engine, &p,"%s\n" , engine->name);intel_runtime_pm_put (dev_priv);drivers/gpu/drm/i915/intel_engine_cs.c +12
-6@@ -1652,12 +1652,12 @@ void intel_engines_park(struct drm_i915_private *i915)* will be no more interrupts arriving later and the engines * are truly idle. */ -if (!intel_engine_is_idle (engine)) { +if (GEM_WARN_ON (!intel_engine_is_idle (engine))) {struct drm_printer p =drm_debug_printer (__func__); -DRM_ERROR ("%s is not idle before parking\n" , - engine->name); -intel_engine_dump (engine, &p); +intel_engine_dump (engine, &p, +"%s is not idle before parking\n" , + engine->name); }if (engine->park)@@ -1727,7 +1727,9 @@ static void print_request(struct drm_printer *m, rq->timeline->common->name); } -void intel_engine_dump (struct intel_engine_cs *engine,struct drm_printer *m) +void intel_engine_dump (struct intel_engine_cs *engine, +struct drm_printer *m, +const char *fmt, ...) {struct intel_breadcrumbs *const b = &engine->breadcrumbs;const struct intel_engine_execlists *const execlists = &engine->execlists;@@ -1735,9 +1737,13 @@ void intel_engine_dump(struct intel_engine_cs *engine, struct drm_printer *m)struct drm_i915_private *dev_priv = engine->i915;struct drm_i915_gem_request *rq;struct rb_node *rb; +va_list ap;u64 addr; -drm_printf (m,"%s\n" , engine->name); +va_start (ap, fmt); +drm_vprintf (m, fmt, &ap); +va_end (ap); + drm_printf(m, "\tcurrent seqno %x, last %x, hangcheck %x [%d ms], inflight %d\n", intel_engine_get_seqno(engine), intel_engine_last_submit(engine),drivers/gpu/drm/i915/intel_ringbuffer.h +4
-1@@ -936,6 +936,9 @@ unsigned int intel_engines_has_context_isolation(struct drm_i915_private *i915);bool intel_engine_can_store_dword (struct intel_engine_cs *engine); -void intel_engine_dump (struct intel_engine_cs *engine,struct drm_printer *p); +__printf(3, 4) +void intel_engine_dump (struct intel_engine_cs *engine, +struct drm_printer *m, +const char *fmt, ...);#endif /* _INTEL_RINGBUFFER_H_ */ drivers/gpu/drm/i915/selftests/intel_hangcheck.c +12
-9@@ -626,9 +626,10 @@ static int igt_wait_reset(void *arg)if (!wait_for_hang (&h, rq)) {struct drm_printer p =drm_info_printer (i915->drm.dev); -pr_err ("Failed to start request %x, at %x\n" , - rq->fence.seqno,hws_seqno (&h, rq)); -intel_engine_dump (rq->engine, &p); +intel_engine_dump (rq->engine, &p, +"%s: Failed to start request %x, at %x\n" , + rq->engine->name, + rq->fence.seqno,hws_seqno (&h, rq));i915_reset (i915,0 );i915_gem_set_wedged (i915);@@ -721,9 +722,10 @@ static int igt_reset_queue(void *arg)if (!wait_for_hang (&h, prev)) {struct drm_printer p =drm_info_printer (i915->drm.dev); -pr_err ("Failed to start request %x, at %x\n" , - prev->fence.seqno,hws_seqno (&h, prev)); -intel_engine_dump (rq->engine, &p); +intel_engine_dump (rq->engine, &p, +"%s: Failed to start request %x, at %x\n" , + prev->engine->name, + prev->fence.seqno,hws_seqno (&h, prev));i915_gem_request_put (rq);i915_gem_request_put (prev);@@ -827,9 +829,10 @@ static int igt_handle_error(void *arg)if (!wait_for_hang (&h, rq)) {struct drm_printer p =drm_info_printer (i915->drm.dev); -pr_err ("Failed to start request %x, at %x\n" , - rq->fence.seqno,hws_seqno (&h, rq)); -intel_engine_dump (rq->engine, &p); +intel_engine_dump (rq->engine, &p, +"%s: Failed to start request %x, at %x\n" , + rq->engine->name, + rq->fence.seqno,hws_seqno (&h, rq));i915_reset (i915,0 );i915_gem_set_wedged (i915);Signature · 1 line
2.15.0
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 3/4 drm/i915: Include engine state on detecting a missed breadcrumb/seqno
In reply to Chris WilsonNow that we have a common engine state pretty printer, we can use that instead of the adhoc information printed when we miss a breadcrumb.
v2: Rearrange intel_engine_disarm_breadcrumbs() to avoid calling intel_engine_dump() under the rb spinlock (Mika) and to pretty-print the error state early so that we include the full list of waiters.
v3: Pass missed breadcrumb msg to pretty-printer as the header
--- drivers/gpu/drm/i915/intel_breadcrumbs.c | 23 ++++++++++++----------- drivers/gpu/drm/i915/intel_engine_cs.c | 6 ++++++ 2 files changed, 18 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/intel_breadcrumbs.c +12 -11
@@ -64,12 +64,11 @@ static unsigned long wait_timeout(void) static noinline void missed_breadcrumb(struct intel_engine_cs *engine) { -DRM_DEBUG_DRIVER ("%s missed breadcrumb at %pS, irq posted? %s, current seqno=%x, last=%x\n" , - engine->name,__builtin_return_address (0 ), -yesno (test_bit (ENGINE_IRQ_BREADCRUMB , - &engine->irq_posted)), -intel_engine_get_seqno (engine), -intel_engine_last_submit (engine)); +struct drm_printer p =drm_debug_printer (__func__); + +intel_engine_dump (engine, &p, +"%s missed breadcrumb at %pS\n" , + engine->name,__builtin_return_address (0 ));set_bit (engine->id, &engine->i915->gpu_error.missed_irq_rings); }
@@ -207,28 +206,30 @@ void intel_engine_unpin_breadcrumbs_irq(struct intel_engine_cs *engine)void intel_engine_disarm_breadcrumbs (struct intel_engine_cs *engine) {struct intel_breadcrumbs *b = &engine->breadcrumbs; -struct intel_wait *wait, *n, *first; +struct intel_wait *wait, *n;if (!b->irq_armed)return ; -/* We only disarm the irq when we are idle (all requests completed), +/* +* We only disarm the irq when we are idle (all requests completed), * so if the bottom-half remains asleep, it missed the request * completion. */ +if (intel_engine_wakeup (engine) &ENGINE_WAKEUP_ASLEEP ) +missed_breadcrumb (engine);spin_lock_irq (&b->rb_lock);spin_lock (&b->irq_lock); - first =fetch_and_zero (&b->irq_wait); + b->irq_wait =NULL ;if (b->irq_armed)__intel_engine_disarm_breadcrumbs (engine);spin_unlock (&b->irq_lock);rbtree_postorder_for_each_entry_safe (wait, n, &b->waiters, node) {RB_CLEAR_NODE (&wait->node); -if (wake_up_process (wait->tsk) && wait == first) -missed_breadcrumb (engine); +wake_up_process (wait->tsk); } b->waiters =RB_ROOT ;
drivers/gpu/drm/i915/intel_engine_cs.c +6 -0
@@ -1884,6 +1884,12 @@ void intel_engine_dump(struct intel_engine_cs *engine, }spin_unlock_irq (&b->rb_lock); +drm_printf (m,"IRQ? 0x%lx (breadcrumbs? %s) (execlists? %s)\n" , + engine->irq_posted, +yesno (test_bit (ENGINE_IRQ_BREADCRUMB , + &engine->irq_posted)), +yesno (test_bit (ENGINE_IRQ_EXECLIST , + &engine->irq_posted)));drm_printf (m,"Idle? %s\n" ,yesno (intel_engine_is_idle (engine)));drm_printf (m,"\n" ); }
Signature · 6 lines
2.15.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v4 1/1 drm/i915: Include engine state on detecting a missed breadcrumb/seqno
Now that we have a common engine state pretty printer, we can use that instead of the adhoc information printed when we miss a breadcrumb.
v2: Rearrange intel_engine_disarm_breadcrumbs() to avoid calling intel_engine_dump() under the rb spinlock (Mika) and to pretty-print the error state early so that we include the full list of waiters.
v3: Pass missed breadcrumb msg to pretty-printer as the header
v4: Preserve DRM_DEBUG_DRIVER filtering.
--- drivers/gpu/drm/i915/intel_breadcrumbs.c | 25 ++++++++++++++----------- drivers/gpu/drm/i915/intel_engine_cs.c | 6 ++++++ 2 files changed, 20 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/intel_breadcrumbs.c +14 -11
@@ -64,12 +64,13 @@ static unsigned long wait_timeout(void) static noinline void missed_breadcrumb(struct intel_engine_cs *engine) { -DRM_DEBUG_DRIVER ("%s missed breadcrumb at %pS, irq posted? %s, current seqno=%x, last=%x\n" , - engine->name,__builtin_return_address (0 ), -yesno (test_bit (ENGINE_IRQ_BREADCRUMB , - &engine->irq_posted)), -intel_engine_get_seqno (engine), -intel_engine_last_submit (engine)); +if (drm_debug &DRM_UT_DRIVER ) { +struct drm_printer p =drm_debug_printer (__func__); + +intel_engine_dump (engine, &p, +"%s missed breadcrumb at %pS\n" , + engine->name,__builtin_return_address (0 )); + }set_bit (engine->id, &engine->i915->gpu_error.missed_irq_rings); }
@@ -207,28 +208,30 @@ void intel_engine_unpin_breadcrumbs_irq(struct intel_engine_cs *engine)void intel_engine_disarm_breadcrumbs (struct intel_engine_cs *engine) {struct intel_breadcrumbs *b = &engine->breadcrumbs; -struct intel_wait *wait, *n, *first; +struct intel_wait *wait, *n;if (!b->irq_armed)return ; -/* We only disarm the irq when we are idle (all requests completed), +/* +* We only disarm the irq when we are idle (all requests completed), * so if the bottom-half remains asleep, it missed the request * completion. */ +if (intel_engine_wakeup (engine) &ENGINE_WAKEUP_ASLEEP ) +missed_breadcrumb (engine);spin_lock_irq (&b->rb_lock);spin_lock (&b->irq_lock); - first =fetch_and_zero (&b->irq_wait); + b->irq_wait =NULL ;if (b->irq_armed)__intel_engine_disarm_breadcrumbs (engine);spin_unlock (&b->irq_lock);rbtree_postorder_for_each_entry_safe (wait, n, &b->waiters, node) {RB_CLEAR_NODE (&wait->node); -if (wake_up_process (wait->tsk) && wait == first) -missed_breadcrumb (engine); +wake_up_process (wait->tsk); } b->waiters =RB_ROOT ;
drivers/gpu/drm/i915/intel_engine_cs.c +6 -0
@@ -1884,6 +1884,12 @@ void intel_engine_dump(struct intel_engine_cs *engine, }spin_unlock_irq (&b->rb_lock); +drm_printf (m,"IRQ? 0x%lx (breadcrumbs? %s) (execlists? %s)\n" , + engine->irq_posted, +yesno (test_bit (ENGINE_IRQ_BREADCRUMB , + &engine->irq_posted)), +yesno (test_bit (ENGINE_IRQ_EXECLIST , + &engine->irq_posted)));drm_printf (m,"Idle? %s\n" ,yesno (intel_engine_is_idle (engine)));drm_printf (m,"\n" ); }
Signature · 6 lines
2.15.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 4/4 drm/i915: Add is-wedged flag to intel_engine_dump()
In reply to Chris WilsonComparing the state tested by intel_engine_is_idle() and printed by intel_engine_dump(), the only bit not shown is whether or not the device is wedged. Add that little bit of information to the pretty printer so that if the engine fails to idle we can see why.
--- drivers/gpu/drm/i915/intel_engine_cs.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/intel_engine_cs.c +3 -0
@@ -1744,6 +1744,9 @@ void intel_engine_dump(struct intel_engine_cs *engine,drm_vprintf (m, fmt, &ap);va_end (ap); +if (i915_terminally_wedged (&engine->i915->gpu_error)) +drm_printf (m,"*** WEDGED ***\n" ); + drm_printf(m, "\tcurrent seqno %x, last %x, hangcheck %x [%d ms], inflight %d\n", intel_engine_get_seqno(engine), intel_engine_last_submit(engine),
Signature · 6 lines
2.15.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v3 4/4] drm/i915: Add is-wedged flag to intel_engine_dump()
Quoted 7 lines · Chris Wilson
Comparing the state tested by
intel_engine_is_idle()and printed byintel_engine_dump(), the only bit not shown is whether or not the device is wedged. Add that little bit of information to the pretty printer so that if the engine fails to idle we can see why.Signed-off-by Chris Wilson <[email protected]>Cc Mika Kuoppala <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/i915/intel_engine_cs.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/i915/intel_engine_cs.c +3
-0@@ -1744,6 +1744,9 @@ void intel_engine_dump(struct intel_engine_cs *engine,drm_vprintf (m, fmt, &ap);va_end (ap); +if (i915_terminally_wedged (&engine->i915->gpu_error)) +drm_printf (m,"*** WEDGED ***\n" ); + drm_printf(m, "\tcurrent seqno %x, last %x, hangcheck %x [%d ms], inflight %d\n", intel_engine_get_seqno(engine), intel_engine_last_submit(engine),Signature · 1 line
2.15.0
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for series starting with [v3,1/4] drm-print
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [v3,1/4] drm-print
URL : https://patchwork.freedesktop.org/series/33566/
State : success
== Summary ==
Series 33566v1 series starting with [v3,1/4] drm-print
https://patchwork.freedesktop.org/api/1.0/series/33566/revisions/1/mbox/
Test chamelium:
Subgroup dp-crc-fast:
fail -> PASS (fi-kbl-7500u) fdo#102514
Test kms_pipe_crc_basic:
Subgroup read-crc-pipe-c:
skip -> PASS (fi-hsw-4770r)fdo#102514 https://bugs.freedesktop.org/show_bug.cgi?id=102514
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:448s fi-bdw-gvtdvm total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:452s fi-blb-e6850 total:289 pass:223 dwarn:1 dfail:0 fail:0 skip:65 time:384s fi-bsw-n3050 total:289 pass:243 dwarn:0 dfail:0 fail:0 skip:46 time:547s fi-bwr-2160 total:289 pass:183 dwarn:0 dfail:0 fail:0 skip:106 time:275s fi-bxt-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:513s fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:508s fi-byt-j1900 total:289 pass:254 dwarn:0 dfail:0 fail:0 skip:35 time:505s fi-byt-n2820 total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:487s fi-elk-e7500 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:437s fi-gdg-551 total:289 pass:178 dwarn:1 dfail:0 fail:1 skip:109 time:266s fi-glk-1 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:540s fi-hsw-4770 total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:430s fi-hsw-4770r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:446s fi-ilk-650 total:289 pass:228 dwarn:0 dfail:0 fail:0 skip:61 time:428s fi-ivb-3520m total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:478s fi-ivb-3770 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:462s fi-kbl-7500u total:289 pass:264 dwarn:1 dfail:0 fail:0 skip:24 time:483s fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:526s fi-kbl-7567u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:479s fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:537s fi-pnv-d510 total:289 pass:222 dwarn:1 dfail:0 fail:0 skip:66 time:573s fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:461s fi-skl-6600u total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:553s fi-skl-6700hq total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:566s fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:531s fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:499s fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:466s fi-snb-2520m total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:561s fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:0 skip:40 time:420s Blacklisted hosts: fi-cfl-s total:289 pass:254 dwarn:3 dfail:0 fail:0 skip:32 time:526s fi-cnl-y total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:561s fi-glk-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:500s
c2f5663576cf4999521da3a9adcce665fe7b12d7 drm-tip: 2017y-11m-09d-22h-32m-30s UTC integration manifest 78243f96208b drm/i915: Add is-wedged flag to intel_engine_dump()699d95b7878e drm/i915: Include engine state on detecting a missed breadcrumb/seqno 7276726c4bd9 drm/i915: Make engine state pretty-printer header configurable 890b566e12e2 drm-print
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7047/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for series starting with [v3,1/4] drm-print
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [v3,1/4] drm-print
URL : https://patchwork.freedesktop.org/series/33566/
State : success
== Summary ==
Test kms_setmode:
Subgroup basic:
fail -> PASS (shard-hsw) fdo#99912
Test perf:
Subgroup blocking:
fail -> PASS (shard-hsw) fdo#102252fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
shard-hsw total:2584 pass:1452 dwarn:3 dfail:2 fail:9 skip:1118 time:9385s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7047/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 1/1 drm/printer: Add drm_vprintf()
In reply to Chris WilsonSimple va_args equivalent to the existing drm_printf() for use with the drm_printer.
--- drivers/gpu/drm/drm_print.c | 5 +---- include/drm/drm_print.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-)
drivers/gpu/drm/drm_print.c +1 -4
@@ -55,13 +55,10 @@ EXPORT_SYMBOL(__drm_printfn_debug);*/ void drm_printf (struct drm_printer *p,const char *f, ...) { -struct va_format vaf;va_list args;va_start (args, f); - vaf.fmt = f; - vaf.va = &args; - p->printfn (p, &vaf); +drm_vprintf (p, f, &args);va_end (args); }EXPORT_SYMBOL (drm_printf);
include/drm/drm_print.h +14 -0
@@ -80,6 +80,20 @@ void __drm_printfn_debug(struct drm_printer *p, struct va_format *vaf); __printf(2, 3)void drm_printf (struct drm_printer *p,const char *f, ...); +/** +* drm_vprintf - print to a &drm_printer stream +* @p: the &drm_printer +* @f: format string +* @args: the va_list +*/ +__printf(2, 0) +static inline void +drm_vprintf (struct drm_printer *p,const char *fmt,va_list *va) +{ +struct va_format vaf = { .fmt = fmt, .va = va }; + + p->printfn (p, &vaf); +}/** * drm_seq_file_printer - construct a &drm_printer that outputs to &seq_file
Signature · 6 lines
2.15.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v2] drm/printer: Add drm_vprintf()
Quoted 4 lines · Chris Wilson
Simple
va_argsequivalent to the existingdrm_printf()for use with thedrm_printer.Signed-off-by Chris Wilson <[email protected]>
I guess you want an ack from Dave for merging through drm-intel, pls ping him for that since I'm vacationing next week. Or offload to the drm-intel maintainers :-)
Cheers, Daniel
Quoted 56 lines
--- drivers/gpu/drm/drm_print.c | 5 +---- include/drm/drm_print.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-)drivers/gpu/drm/drm_print.c +1
-4@@ -55,13 +55,10 @@ EXPORT_SYMBOL(__drm_printfn_debug);*/ void drm_printf (struct drm_printer *p,const char *f, ...) { -struct va_format vaf;va_list args;va_start (args, f); - vaf.fmt = f; - vaf.va = &args; - p->printfn (p, &vaf); +drm_vprintf (p, f, &args);va_end (args); }EXPORT_SYMBOL (drm_printf);include/drm/drm_print.h +14
-0@@ -80,6 +80,20 @@ void __drm_printfn_debug(struct drm_printer *p, struct va_format *vaf); __printf(2, 3)void drm_printf (struct drm_printer *p,const char *f, ...); +/** +* drm_vprintf - print to a &drm_printer stream +* @p: the &drm_printer +* @f: format string +* @args: the va_list +*/ +__printf(2, 0) +static inline void +drm_vprintf (struct drm_printer *p,const char *fmt,va_list *va) +{ +struct va_format vaf = { .fmt = fmt, .va = va }; + + p->printfn (p, &vaf); +}/** * drm_seq_file_printer - construct a &drm_printer that outputs to &seq_file Signature · 6 lines
2.15.0 _______________________________________________ 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
Patchwork
CI✗ Fi.CI.BAT: failure for series starting with [v3,1/4] drm-print (rev2)
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [v3,1/4] drm-print (rev2)
URL : https://patchwork.freedesktop.org/series/33566/
State : failure
== Summary ==
Series 33566v2 series starting with [v3,1/4] drm-print
https://patchwork.freedesktop.org/api/1.0/series/33566/revisions/2/mbox/
Test gem_exec_reloc:
Subgroup basic-gtt-cpu-active:
fail -> PASS (fi-gdg-551) fdo#102582 +3
Subgroup basic-write-cpu-active:
fail -> PASS (fi-gdg-551) fdo#102582 +1
Test kms_pipe_crc_basic:
Subgroup nonblocking-crc-pipe-b-frame-sequence:
pass -> SKIP (fi-hsw-4770r)
Test gvt_basic:
Subgroup invalid-placeholder-test:
skip -> INCOMPLETE (fi-bwr-2160)fdo#102582 https://bugs.freedesktop.org/show_bug.cgi?id=102582
fdo#102582 https://bugs.freedesktop.org/show_bug.cgi?id=102582
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:445s fi-bdw-gvtdvm total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:451s fi-blb-e6850 total:289 pass:223 dwarn:1 dfail:0 fail:0 skip:65 time:381s fi-bsw-n3050 total:289 pass:243 dwarn:0 dfail:0 fail:0 skip:46 time:533s fi-bwr-2160 total:289 pass:183 dwarn:0 dfail:0 fail:0 skip:105 fi-bxt-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:501s fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:506s fi-byt-j1900 total:289 pass:254 dwarn:0 dfail:0 fail:0 skip:35 time:497s fi-byt-n2820 total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:492s fi-elk-e7500 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:433s fi-gdg-551 total:289 pass:178 dwarn:1 dfail:0 fail:1 skip:109 time:264s fi-glk-1 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:537s fi-hsw-4770 total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:427s fi-hsw-4770r total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:439s fi-ilk-650 total:289 pass:228 dwarn:0 dfail:0 fail:0 skip:61 time:429s fi-ivb-3520m total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:484s fi-ivb-3770 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:459s fi-kbl-7500u total:289 pass:264 dwarn:1 dfail:0 fail:0 skip:24 time:485s fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:523s fi-kbl-7567u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:474s fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:532s fi-pnv-d510 total:289 pass:222 dwarn:1 dfail:0 fail:0 skip:66 time:569s fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:454s fi-skl-6600u total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:542s fi-skl-6700hq total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:562s fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:515s fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:492s fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:465s fi-snb-2520m total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:560s fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:0 skip:40 time:417s Blacklisted hosts: fi-cfl-s total:289 pass:254 dwarn:3 dfail:0 fail:0 skip:32 time:524s fi-glk-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:491s
831ae3962a169aa94457f1c7742dd3591b394f70 drm-tip: 2017y-11m-09d-23h-29m-57s UTC integration manifest d7c450db9907 drm/i915: Add is-wedged flag to intel_engine_dump()65c49d515824 drm/i915: Include engine state on detecting a missed breadcrumb/seqno a207be4e34b0 drm/i915: Make engine state pretty-printer header configurable 1da58dfaaf2f drm-print
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7050/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: warning for series starting with [v2] drm/printer: Add drm_vprintf() (rev3)
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [v2] drm/printer: Add drm_vprintf() (rev3)
URL : https://patchwork.freedesktop.org/series/33566/
State : warning
== Summary ==
Series 33566v3 series starting with [v2] drm/printer: Add drm_vprintf()
https://patchwork.freedesktop.org/api/1.0/series/33566/revisions/3/mbox/
Test gem_exec_reloc:
Subgroup basic-gtt-cpu-active:
fail -> PASS (fi-gdg-551) fdo#102582 +3
Subgroup basic-write-cpu-active:
fail -> PASS (fi-gdg-551) fdo#102582 +1
Test kms_cursor_legacy:
Subgroup basic-flip-after-cursor-legacy:
pass -> DMESG-WARN (fi-bsw-n3050)
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-a:
pass -> SKIP (fi-hsw-4770r)fdo#102582 https://bugs.freedesktop.org/show_bug.cgi?id=102582
fdo#102582 https://bugs.freedesktop.org/show_bug.cgi?id=102582
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:443s fi-bdw-gvtdvm total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:458s fi-blb-e6850 total:289 pass:223 dwarn:1 dfail:0 fail:0 skip:65 time:379s fi-bsw-n3050 total:289 pass:242 dwarn:1 dfail:0 fail:0 skip:46 time:526s fi-bwr-2160 total:289 pass:183 dwarn:0 dfail:0 fail:0 skip:106 time:274s fi-bxt-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:505s fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:500s fi-byt-j1900 total:289 pass:254 dwarn:0 dfail:0 fail:0 skip:35 time:499s fi-byt-n2820 total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:492s fi-elk-e7500 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:432s fi-gdg-551 total:289 pass:178 dwarn:1 dfail:0 fail:1 skip:109 time:263s fi-glk-1 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:546s fi-hsw-4770 total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:437s fi-hsw-4770r total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:421s fi-ilk-650 total:289 pass:228 dwarn:0 dfail:0 fail:0 skip:61 time:428s fi-ivb-3520m total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:481s fi-ivb-3770 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:463s fi-kbl-7500u total:289 pass:264 dwarn:1 dfail:0 fail:0 skip:24 time:486s fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:524s fi-kbl-7567u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:483s fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:539s fi-pnv-d510 total:289 pass:222 dwarn:1 dfail:0 fail:0 skip:66 time:572s fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:455s fi-skl-6600u total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:537s fi-skl-6700hq total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:554s fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:517s fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:496s fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:463s fi-snb-2520m total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:560s fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:0 skip:40 time:427s Blacklisted hosts: fi-cfl-s total:289 pass:254 dwarn:3 dfail:0 fail:0 skip:32 time:532s fi-cnl-y total:214 pass:193 dwarn:0 dfail:0 fail:0 skip:20 fi-glk-dsi total:208 pass:185 dwarn:0 dfail:0 fail:0 skip:22
831ae3962a169aa94457f1c7742dd3591b394f70 drm-tip: 2017y-11m-09d-23h-29m-57s UTC integration manifest 412ef4f87757 drm/i915: Add is-wedged flag to intel_engine_dump()83cac8f8cdbf drm/i915: Include engine state on detecting a missed breadcrumb/seqno bad1165a214c drm/i915: Make engine state pretty-printer header configurable bca790b2b7cc drm/printer: Add drm_vprintf()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7051/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx