summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
diff options
context:
space:
mode:
authorAmber Lin <Amber.Lin@amd.com>2025-08-15 21:04:15 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-08-27 20:57:49 +0300
commitf3820e9d356132e18405cd7606e22dc87ccfa6d1 (patch)
tree1e3acac15abdcb4d93189e449dff6664b523aa46 /drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
parent181d7dcc584f8ac575ea2b6e51498547186df9f3 (diff)
downloadlinux-f3820e9d356132e18405cd7606e22dc87ccfa6d1.tar.xz
drm/amdkfd: Tie UNMAP_LATENCY to queue_preemption
When KFD asks CP to preempt queues, other than preempt CP queues, CP also requests SDMA to preempt SDMA queues with UNMAP_LATENCY timeout. Currently queue_preemption_timeout_ms is 9000 ms by default but can be configured via module parameter. KFD_UNMAP_LATENCY_MS is hard coded as 4000 ms though. This patch ties KFD_UNMAP_LATENCY_MS to queue_preemption_timeout_ms so in a slow system such as emulator, both CP and SDMA slowness are taken into account. Signed-off-by: Amber Lin <Amber.Lin@amd.com> Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c')
0 files changed, 0 insertions, 0 deletions