OSDN Git Service

drm/amdkfd: Setup current_logical_xcc_id in MQD
authorMukul Joshi <mukul.joshi@amd.com>
Fri, 9 Dec 2022 14:03:01 +0000 (09:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:50:39 +0000 (09:50 -0400)
commitc2d43918a14f7b0f04932f5a45728e0fe8161da0
tree48fa4a677e28330a71c74a635d61794e8966e55a
parenta820d3ca8ed3a2851e1c9d5713e807f84e88019d
drm/amdkfd: Setup current_logical_xcc_id in MQD

Setup rolling current_logical_xcc_id in MQD for GFX9.4.3
to ensure each queue starts at a different place and prevent
hotspotting issues. Also, remove updating current_logical_xcc_id
during queue update.

Suggested-by: Joseph Greathouse <Joseph.Greathouse@amd.com>
Signed-off-by: Mukul Joshi <mukul.joshi@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_device_queue_manager.h
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c