]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Determing PTE flags separately for each mapping (v3)
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 26 Aug 2019 22:39:11 +0000 (18:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:35:55 +0000 (17:35 -0500)
commit7624fbdf247c001d69480641d025c07af679a7ca
treee4ee5166609e4acdd00e95cff2975d203de587ce
parent32da9c899a0f100976951929ce78238eb7aff3ca
drm/amdgpu: Determing PTE flags separately for each mapping (v3)

The same BO can be mapped with different PTE flags by different GPUs.
Therefore determine the PTE flags separately for each mapping instead
of storing them in the KFD buffer object.

Add a helper function to determine the PTE flags to be extended with
ASIC and memory-type-specific logic in subsequent commits.

v2: Split Arcturus-specific MTYPE changes into separate commit
v3: Fix return type of get_pte_flags to uint64_t

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Shaoyun Liu <Shaoyun.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c