diff options
| author | Prike Liang <Prike.Liang@amd.com> | 2026-05-14 12:21:09 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-06-03 20:49:41 +0300 |
| commit | d87c9d86727a0bcc95c3009a213a1b27a11b691e (patch) | |
| tree | 849d7c75047d95c0b1180588733cf4e36735090f /include/linux/debugobjects.h | |
| parent | 113fa3ca614a865776f81759bb245dabf99859a7 (diff) | |
| download | linux-d87c9d86727a0bcc95c3009a213a1b27a11b691e.tar.xz | |
drm/amdgpu: unmap userq for evicting user queue
If the driver only preempts queues, there can still be inflight waves,
pending dispatch state, or resume/redispatch possibility tied to the
same queue. Then the VM/TTM side may proceed to move/unmap queue related
BOs during evicting userq objects while shader TCP clients still need to
access them.
So for eviction, unmap is safer because it makes the queue nonrunnable
before memory backing is invalidated. Meanwhile, for a idle queue it's
more sutiable for unmapping it rather preempt and unmapping also can
save more processing time than preempt.
Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
