diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-12-24 08:13:39 -0800 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-07 14:20:20 +0100 |
commit | 676fa5721c2eece4b27ac9be0cdb11c37de0a034 (patch) | |
tree | defc052c9ff5c7d7a4ae3f573ba11bf1c7ffa130 /drivers/gpu/drm/i915/i915_gem_context.c | |
parent | 9025452366e9a86f2e11292865d98430341005d1 (diff) | |
download | op-kernel-dev-676fa5721c2eece4b27ac9be0cdb11c37de0a034.zip op-kernel-dev-676fa5721c2eece4b27ac9be0cdb11c37de0a034.tar.gz |
drm/i915: Move the ban period onto the context
This will allow us to set per-file, or even per-context, periods in the
future.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_context.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c index b9deade..1d10c21 100644 --- a/drivers/gpu/drm/i915/i915_gem_context.c +++ b/drivers/gpu/drm/i915/i915_gem_context.c @@ -222,6 +222,8 @@ __create_hw_context(struct drm_device *dev, * is no remap info, it will be a NOP. */ ctx->remap_slice = (1 << NUM_L3_SLICES(dev)) - 1; + ctx->hang_stats.ban_period_seconds = DRM_I915_CTX_BAN_PERIOD; + return ctx; err_out: |