diff options
| author | Thomas Hellström <[email protected]> | 2025-08-05 07:48:42 +0000 |
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2025-08-12 16:52:26 +0000 |
| commit | 2dd7a47669ae6c1da18c55f8e89c4a44418c7006 (patch) | |
| tree | adf419569853df34601cd348ed62661b2e2baa53 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | drm/xe/migrate: prevent potential UAF (diff) | |
| download | kernel-2dd7a47669ae6c1da18c55f8e89c4a44418c7006.tar.gz kernel-2dd7a47669ae6c1da18c55f8e89c4a44418c7006.zip | |
drm/xe: Defer buffer object shrinker write-backs and GPU waits
When the xe buffer-object shrinker allows GPU waits and write-back,
(typically from kswapd), perform multiple passes, skipping
subsequent passes if the shrinker number of scanned objects target
is reached.
1) Without GPU waits and write-back
2) Without write-back
3) With both GPU-waits and write-back
This is to avoid stalls and costly write- and readbacks unless they
are really necessary.
v2:
- Don't test for scan completion twice. (Stuart Summers)
- Update tags.
Reported-by: melvyn <[email protected]>
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/5557
Cc: Summers Stuart <[email protected]>
Fixes: 00c8efc3180f ("drm/xe: Add a shrinker for xe bos")
Cc: <[email protected]> # v6.15+
Signed-off-by: Thomas Hellström <[email protected]>
Reviewed-by: Stuart Summers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
(cherry picked from commit 80944d334182ce5eb27d00e2bf20a88bfc32dea1)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
