• Mika Kuoppala's avatar
    drm/i915: Add per client max context ban limit · b083a087
    Mika Kuoppala authored
    If we have a bad client submitting unfavourably across different
    contexts, creating new ones, the per context scoring of badness
    doesn't remove the root cause, the offending client.
    To counter, keep track of per client context bans. Deny access if
    client is responsible for more than 3 context bans in
    it's lifetime.
    
    v2: move ban check to context create ioctl (Chris)
    v3: add commentary about hangs needed to reach client ban (Chris)
    
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
    b083a087
i915_gpu_error.c 43.2 KB