diff options
author | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2021-11-08 18:45:44 +0100 |
---|---|---|
committer | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2021-11-26 08:26:08 +0100 |
commit | e45b98ba627691c6b577244abfdb18ef2621fea3 (patch) | |
tree | 02f04882d76ef83aae5255088851e5d278289796 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 5c2625c4a08cf9b19cd070c1b30c75c9e5317853 (diff) |
drm/i915: Avoid allocating a page array for the gpu coredump
The gpu coredump typically takes place in a dma_fence signalling
critical path, and hence can't use GFP_KERNEL allocations, as that
means we might hit deadlocks under memory pressure. However
changing to __GFP_KSWAPD_RECLAIM which will be done in an upcoming
patch will instead mean a lower chance of the allocation succeeding.
In particular large contigous allocations like the coredump page
vector.
Remove the page vector in favor of a linked list of single pages.
Use the page lru list head as the list link, as the page owner is
allowed to do that.
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211108174547.979714-2-thomas.hellstrom@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions