]> 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)
commit8ee0a9ad3e11cab17169f328609f8bcea004b52e
treec2a0cc72945fbe32972378ea5981932817cacd1f
parent9f3a6e571eec35e9f3f66a218c4d0d77e4af1580
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