Quoting Tvrtko Ursulin (2018-01-19 16:26:16) > From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx> > > 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@xxxxxxxxx> > Cc: gordon.kelly@xxxxxxxxx > --- > 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 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx