[Intel-gfx] [PATCH v5 1/6] drm/i915: Track per-context engine busyness

Chris Wilson chris at chris-wilson.co.uk
Fri Jan 19 21:02:58 UTC 2018


Quoting Tvrtko Ursulin (2018-01-19 16:26:16)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> Some customers want to know how much of the GPU time are their clients
> using in order to make dynamic load balancing decisions.
> 
> With the hooks already in place which track the overall engine busyness,
> we can extend that slightly to split that time between contexts.
> 
> v2: Fix accounting for tail updates.
> v3: Rebase.
> v4: Mark currently running contexts as active on stats enable.
> v5: Include some headers to fix the build.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Cc: gordon.kelly at intel.com
> ---
>  drivers/gpu/drm/i915/i915_gem_context.h |  8 ++++++
>  drivers/gpu/drm/i915/intel_engine_cs.c  | 32 +++++++++++++++++++++
>  drivers/gpu/drm/i915/intel_lrc.c        | 14 +++++----
>  drivers/gpu/drm/i915/intel_ringbuffer.h | 50 +++++++++++++++++++++++++++++----
>  4 files changed, 93 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_gem_context.h b/drivers/gpu/drm/i915/i915_gem_context.h
> index 4bfb72f8e1cb..7f5eebb67167 100644
> --- a/drivers/gpu/drm/i915/i915_gem_context.h
> +++ b/drivers/gpu/drm/i915/i915_gem_context.h
> @@ -29,6 +29,9 @@
>  #include <linux/list.h>
>  #include <linux/radix-tree.h>
>  
> +#include "i915_gem.h"
> +#include "i915_gem_request.h"

Yup, we need a patch for tip for

#include "i915_gem.h"

struct drm_i915_gem_request;
-Chris


More information about the Intel-gfx mailing list