summaryrefslogtreecommitdiff
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2026-05-14 17:21:09 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-06-03 14:48:49 -0400
commite0153b94a1d104cf4545878c83302672573de65e (patch)
treef1378e79929999fe622b48d73df197aef9774cf5 /kernel/workqueue.c
parent1a4a55f181a9584386701f9b4183d9ecc5271b21 (diff)
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> (cherry picked from commit d87c9d86727a0bcc95c3009a213a1b27a11b691e)
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions