]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Change the control stack MTYPE from UC to NC on GFX9
authorYong Zhao <yong.zhao@amd.com>
Thu, 13 Sep 2018 01:42:19 +0000 (21:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Sep 2018 15:25:17 +0000 (10:25 -0500)
commit9d168b0bd6dc4ad87473fd5fe87559d0eee1064b
tree631d5baf64f9dbf5107326c49b05bfe124ae2fb8
parent558eb3a888e2ec60c80b6aecedb893a1da4e1044
drm/amdkfd: Change the control stack MTYPE from UC to NC on GFX9

CWSR fails on Raven if the control stack is MTYPE_UC, which is used
for regular GART mappings. As a workaround we map it using MTYPE_NC.

The MEC firmware expects the control stack at one page offset from the
start of the MQD so it is part of the MQD allocation on GFXv9. AMDGPU
added a memory allocation flag just for this purpose.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
drivers/gpu/drm/amd/include/kgd_kfd_interface.h