]> Gentwo Git Trees - linux/.git/commit
drm/amdkfd: Tie UNMAP_LATENCY to queue_preemption
authorAmber Lin <Amber.Lin@amd.com>
Fri, 15 Aug 2025 18:04:15 +0000 (14:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Aug 2025 17:57:49 +0000 (13:57 -0400)
commitf3820e9d356132e18405cd7606e22dc87ccfa6d1
tree1e3acac15abdcb4d93189e449dff6664b523aa46
parent181d7dcc584f8ac575ea2b6e51498547186df9f3
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>
drivers/gpu/drm/amd/amdkfd/kfd_priv.h