drm/amdgpu: add amdgpu_gmc_agp_location v3
authorChristian König <christian.koenig@amd.com>
Fri, 24 Aug 2018 10:08:06 +0000 (12:08 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Sep 2018 03:41:32 +0000 (22:41 -0500)
commitd76364fc7fde36b60c592c504f0f0ed636f1d2f3
tree408c8b327a64b7803aeacc3fa1712b5488014b1a
parentad9a5b78f585e9a9bd5ad06dfaf1269659a99f43
drm/amdgpu: add amdgpu_gmc_agp_location v3

Helper to figure out the location of the AGP BAR.

v2: fix a couple of bugs
v3: correctly add one to vram_end

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h