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_drv.h | |
parent | 9025452366e9a86f2e11292865d98430341005d1 (diff) | |
download | talos-op-linux-676fa5721c2eece4b27ac9be0cdb11c37de0a034.tar.gz talos-op-linux-676fa5721c2eece4b27ac9be0cdb11c37de0a034.zip |
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_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index da52f9cdc5df..ee841349407e 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -678,6 +678,11 @@ struct i915_ctx_hang_stats { /* Time when this context was last blamed for a GPU reset */ unsigned long guilty_ts; + /* If the contexts causes a second GPU hang within this time, + * it is permanently banned from submitting any more work. + */ + unsigned long ban_period_seconds; + /* This context is banned to submit more work */ bool banned; }; |