diff options
author | Chris Wilson <[email protected]> | 2017-01-06 15:22:39 +0000 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2017-01-06 16:54:17 +0000 |
commit | 1a292fa53d06e53000296ba76c6984a43e1e828c (patch) | |
tree | dcc3136667a08b27e222a167219390f0832925a6 /scripts/gcc-plugins | |
parent | 10466d2a59b23aa6d5ecd5310296c8cdb6458dac (diff) |
drm/i915: Purge loose pages if we run out of DMA remap space
If the DMA remap fails, one cause can be that we have too many objects
pinned in a small remapping table, such as swiotlb. (DMA remapping does
not trigger the shrinker by itself on its normal failure paths.) So try
purging all other objects (using i915_gem_shrink_all(), sparing our own
pages as we have yet to assign them to the obj->pages) and try again. If
there are no pages to reclaim (and consequently no pages to unmap), the
shrinker will report 0 and we fail with -ENOSPC as before.
Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions