drm/amdgpu: cleanup PTE flag generation v3
authorChristian König <christian.koenig@amd.com>
Mon, 2 Sep 2019 14:39:40 +0000 (16:39 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 14:59:29 +0000 (09:59 -0500)
commitcbfae36ceac95d0a68e679e98a36632e04f18f1f
treee179fbdb5f6ca743730d260a1370a685751f7936
parent71776b6daef66b6d7afdd404c2175dbcac7e1a05
drm/amdgpu: cleanup PTE flag generation v3

Move the ASIC specific code into a new callback function.

v2: mask the flags for SI and CIK instead of a BUG_ON().
v3: remove last missed BUG_ON().

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c