]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit959a2091fae0fa498c79e095a4f6cbbb202a1194
treec2a0cc72945fbe32972378ea5981932817cacd1f
parent8eb77198131bab4417b711f899473f4ee6b8ad55
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