drm/amdgpu: Only retrieve GPU address of GART table after pinning it
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 28 Aug 2018 09:26:17 +0000 (11:26 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Aug 2018 16:55:47 +0000 (11:55 -0500)
commitbdb1922abd620d24715906bac4d119274d98f4c9
treeedc3efbb0892dde160d30545949f9f9e596a7f1c
parent7ef0b435457a797712119c0151e144744bc45ded
drm/amdgpu: Only retrieve GPU address of GART table after pinning it

Doing it earlier hits a WARN_ON_ONCE in amdgpu_bo_gpu_offset.

Fixes: "drm/amdgpu: remove gart.table_addr"
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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