diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-06 15:22:39 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-06 16:54:17 +0000 |
commit | 1a292fa53d06e53000296ba76c6984a43e1e828c (patch) | |
tree | dcc3136667a08b27e222a167219390f0832925a6 /drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | |
parent | 10466d2a59b23aa6d5ecd5310296c8cdb6458dac (diff) | |
download | linux-1a292fa53d06e53000296ba76c6984a43e1e828c.tar.bz2 |
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 'drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c')
0 files changed, 0 insertions, 0 deletions