Re: [Intel-gfx] [PATCH] drm/i915/debugfs: add noreclaim annotations

2021-12-13 Thread Thomas Hellström
On 12/13/21 13:55, Matthew Auld wrote: We have a debugfs hook to directly call into i915_gem_shrink() with the fs_reclaim acquire annotations to simulate hitting direct reclaim. However we should also annotate this with memalloc_noreclaim, which will set PF_MEMALLOC for us on the current

[Intel-gfx] [PATCH] drm/i915/debugfs: add noreclaim annotations

2021-12-13 Thread Matthew Auld
We have a debugfs hook to directly call into i915_gem_shrink() with the fs_reclaim acquire annotations to simulate hitting direct reclaim. However we should also annotate this with memalloc_noreclaim, which will set PF_MEMALLOC for us on the current context, to ensure we can't re-enter direct