]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ecb9b825cde3585fa06ae233a93e7b13ede04b2
tree408c8b327a64b7803aeacc3fa1712b5488014b1a
parent88add35d2c89cd74cd7451af605c90662838c67d
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