summaryrefslogtreecommitdiff
path: root/rust/helpers/xarray.c
diff options
context:
space:
mode:
authorAmber Lin <Amber.Lin@amd.com>2025-08-15 14:04:15 -0400
committerAlex Deucher <alexander.deucher@amd.com>2025-08-27 13:57:49 -0400
commitf3820e9d356132e18405cd7606e22dc87ccfa6d1 (patch)
tree1e3acac15abdcb4d93189e449dff6664b523aa46 /rust/helpers/xarray.c
parent181d7dcc584f8ac575ea2b6e51498547186df9f3 (diff)
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 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions