]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Add support to change mtype for 2nd part of gart BOs on GFX9
authorYong Zhao <yong.zhao@amd.com>
Mon, 14 May 2018 16:15:27 +0000 (12:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:44:26 +0000 (13:44 -0500)
commitd1885565b334b2f0c6aabdc810adee3c07c26792
treec2a0cc72945fbe32972378ea5981932817cacd1f
parent3a3d4b37168e8a316e6c76f929e4b2f6cea6a431
drm/amdgpu: Add support to change mtype for 2nd part of gart BOs on GFX9

This change prepares for a workaround in amdkfd for a GFX9 HW bug. It
requires the control stack memory of compute queues, which is allocated
from the second page of MQD gart BOs, to have mtype NC, rather than
the default UC.

Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
include/uapi/drm/amdgpu_drm.h