diff options
author | Mika Kuoppala <[email protected]> | 2018-06-15 13:44:29 +0300 |
---|---|---|
committer | Mika Kuoppala <[email protected]> | 2018-06-15 16:36:21 +0300 |
commit | 14921f3cef85b0167a9145e5f29b9dfc3b2a84dc (patch) | |
tree | d185650c373f0310fddd06f469eaa3c92398cbfa /lib/netdev-notifier-error-inject.c | |
parent | 548764bb7ce050afdba15892fb4add79d15974db (diff) |
drm/i915: Fix context ban and hang accounting for client
If client is smart or lucky enough to create a new context
after each hang, our context banning mechanism will never
catch up, and as a result of that it will be saved from
client banning. This can result in a never ending streak of
gpu hangs caused by bad or malicious client, preventing
access from other legit gpu clients.
Fix this by always incrementing per client ban score if
it hangs in short successions regardless of context ban
scoring. The exception are non bannable contexts. They remain
detached from client ban scoring mechanism.
v2: xchg timestamp, tidyup (Chris)
v3: comment, bannable & banned together (Chris)
Fixes: b083a0870c79 ("drm/i915: Add per client max context ban limit")
Cc: Chris Wilson <[email protected]>
Signed-off-by: Mika Kuoppala <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions