diff options
author | 2017-01-06 15:22:39 +0000 | |
---|---|---|
committer | 2017-01-06 16:54:17 +0000 | |
commit | 1a292fa53d06e53000296ba76c6984a43e1e828c (patch) | |
tree | dcc3136667a08b27e222a167219390f0832925a6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915: Fix phys pwrite for struct_mutex-less operation (diff) | |
download | linux-dev-1a292fa53d06e53000296ba76c6984a43e1e828c.tar.xz linux-dev-1a292fa53d06e53000296ba76c6984a43e1e828c.zip |
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 <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170106152240.5793-2-chris@chris-wilson.co.uk
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions