diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-19 21:43:35 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-20 21:05:12 +0000 |
commit | e956996cb078c590807469be5fd527af5a1cfb14 (patch) | |
tree | e25ab27bb723cb209247bc8eb3abe9ba27bcadfc /drivers/usb/storage/sddr55.c | |
parent | 0175969e489aaa0522e52c7d0ac06f2cab0c1ca7 (diff) |
drm/i915/gem: Protect used framebuffers from casual eviction
In the shrinker, we protect framebuffers from light reclaim as we
typically expect framebuffers to be reused in the near future (and with
low latency requirements). We can apply the same logic to the GGTT
eviction and defer framebuffers to the second pass only used if the
caller is desperate enough to wait for space to become available.
In most cases, the caller will use a smaller partial vma instead of
trying to force the object into the GGTT if doing so will cause other
users to be evicted.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210119214336.1463-5-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/usb/storage/sddr55.c')
0 files changed, 0 insertions, 0 deletions