[Intel-gfx] [PATCH] drm/i915/trace: i915_request.prio is a signed value

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Tue Jan 28 15:42:33 UTC 2020


On 28/01/2020 15:16, Chris Wilson wrote:
> Don't confuse the poor developer by writing a negative value as a very
> large positive, as the flow of requests is already complex enough.
> 
> Reported-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> ---
>   drivers/gpu/drm/i915/i915_trace.h | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_trace.h b/drivers/gpu/drm/i915/i915_trace.h
> index 162c76a9d1e8..bc854ad60954 100644
> --- a/drivers/gpu/drm/i915/i915_trace.h
> +++ b/drivers/gpu/drm/i915/i915_trace.h
> @@ -800,7 +800,7 @@ TRACE_EVENT(i915_request_in,
>   			     __field(u16, instance)
>   			     __field(u32, seqno)
>   			     __field(u32, port)
> -			     __field(u32, prio)
> +			     __field(s32, prio)
>   			    ),
>   
>   	    TP_fast_assign(
> @@ -813,7 +813,7 @@ TRACE_EVENT(i915_request_in,
>   			   __entry->port = port;
>   			   ),
>   
> -	    TP_printk("dev=%u, engine=%u:%u, ctx=%llu, seqno=%u, prio=%u, port=%u",
> +	    TP_printk("dev=%u, engine=%u:%u, ctx=%llu, seqno=%u, prio=%d, port=%u",
>   		      __entry->dev, __entry->class, __entry->instance,
>   		      __entry->ctx, __entry->seqno,
>   		      __entry->prio, __entry->port)
> 

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Regards,

Tvrtko


More information about the Intel-gfx mailing list