drm/amdkfd: allow users to target recommended SDMA engines
authorJonathan Kim <Jonathan.Kim@amd.com>
Tue, 21 May 2024 17:22:15 +0000 (13:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jul 2024 21:43:41 +0000 (17:43 -0400)
commite06b71b2313a00579ba64a1cc43ad29d64cb8d4c
treea561cd62a26c646effdb424f6612cdcfb07c7730
parent60c30ba7ba2064066ec462236666058cbbf619c1
drm/amdkfd: allow users to target recommended SDMA engines

Certain GPUs have better copy performance over xGMI on specific
SDMA engines depending on the source and destination GPU.
Allow users to create SDMA queues on these recommended engines.
Close to 2x overall performance has been observed with this
optimization.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.h
include/uapi/linux/kfd_ioctl.h