drm/amdgpu: move static CSA address to top of address space v2
authorChristian König <christian.koenig@amd.com>
Mon, 22 Jan 2018 10:25:48 +0000 (11:25 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:18:48 +0000 (14:18 -0500)
commit6f05c4e9d1a1a743eca76ddbad788386d7bb534e
treee0a0fcc298614661f925a0cfc8db73acf54c14d0
parentc1f2fb6b6371980dfdaea1ceba7269ccac6fda3f
drm/amdgpu: move static CSA address to top of address space v2

Move the CSA area to the top of the VA space to avoid clashing with
HMM/ATC in the lower range on GFX9.

v2: wrong sign noticed by Roger, rebase on CSA_VADDR cleanup, handle VA
hole on GFX9 as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c