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)
commitd0ba51b1cacd27bdc1acfe70cb55699f3329b2b1
treee4ee5166609e4acdd00e95cff2975d203de587ce
parent093e48c04dfdf91f323ae80428d4ced0294c596e
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