]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add amdgpu_gmc_pd_addr helper
authorChristian König <christian.koenig@amd.com>
Wed, 22 Aug 2018 10:22:14 +0000 (12:22 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:19 +0000 (11:11 -0500)
commit76befca8eb2781cdf9825f2bfa6b3d3f8f03dcd9
tree5bebe0cee82cb0e67c1303d399cf8f83853f6619
parent30891cd91ff844b6e9be6af642a486939b9d3ac5
drm/amdgpu: add amdgpu_gmc_pd_addr helper

Add a helper to get the root PD address and remove the workarounds from
the GMC9 code for that.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c