drm/amdkfd: Copy wave state only for compute queue
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 3 Oct 2024 15:53:51 +0000 (11:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:09:21 +0000 (14:09 -0400)
commitdafc87dcdc3bc50ac72c59156d64ed5267ad28e2
tree0a830b00a96f583cbd09c0be05fecd8d188a6381
parent623f1dd63b8af0ba1de4cafd2ebdd450fe3581e5
drm/amdkfd: Copy wave state only for compute queue

get_wave_state is not defined for sdma queue, copy_context_work_handler
calls it for sdma queue will crash.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Jonathan Kim <jonathan.kim@amd.com>
Tested-by: Jonathan Kim <jonathan.kim@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c