drm/amdgpu: csa_vaddr should not larger than AMDGPU_GMC_HOLE_START
authorwentalou <Wentao.Lou@amd.com>
Mon, 14 Jan 2019 08:26:13 +0000 (16:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Jan 2019 20:16:18 +0000 (15:16 -0500)
commit06ea4c34991570d1e3d175f81029a6ea4bd8f634
tree64e39922d5fd43d97fec789f9066ac65f2cd64f0
parenta97c084aad394f65a47af92273494d2ce0da1be5
drm/amdgpu: csa_vaddr should not larger than AMDGPU_GMC_HOLE_START

After removing unnecessary VM size calculations,
vm_manager.max_pfn would reach 0x10,0000,0000
max_pfn << AMDGPU_GPU_PAGE_SHIFT exceeding AMDGPU_GMC_HOLE_START
would cause GPU reset.

Signed-off-by: wentalou <Wentao.Lou@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c