]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Clean up mmhub functions for aldebaran
authorOak Zeng <Oak.Zeng@amd.com>
Tue, 11 Aug 2020 20:02:38 +0000 (15:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:54:05 +0000 (22:54 -0400)
commit1eb5f8166a3c4ed96d4bbacd648709862caa7e69
treef5117841811d485c5b97f279828e8f27f095bc17
parenta50646a695623530f1c4ca9b185da3f53eab8e1d
drm/amdgpu: Clean up mmhub functions for aldebaran

Add more function pointers to amdgpu_mmhub_funcs. ASIC specific
implementation of most mmhub functions are called from a general
function pointer, instead of calling different function for
different ASIC.

V2: Split patch into upstreamable and aldebaran

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.h