OSDN Git Service

drm/amdgpu: Eliminate the set_pde_pte function pointer in amdgpu_gmc_funcs
authorYong Zhao <Yong.Zhao@amd.com>
Mon, 25 Feb 2019 17:56:53 +0000 (12:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:53 +0000 (15:03 -0500)
commit6490bd764c9c63df1a65ae8de290c8fc36f53a21
tree154ec6fa96bdd2e5a50fc8c676686e45697391ad
parent3c8899124a40b9cd11769c54fb57b67e5d43403d
drm/amdgpu: Eliminate the set_pde_pte function pointer in amdgpu_gmc_funcs

All the gmc_*_set_pde_pte functions are the same across different ASICs,
so we can eliminate the set_pde_pte function pointer and instead use a
generic function.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Christian König <christian.koenig@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
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
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c