diff options
author | Oak Zeng <Oak.Zeng@amd.com> | 2020-08-11 15:02:38 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-03-23 22:54:05 -0400 |
commit | 4da999cdfc8d4fd4f948e024e6d0dbbd469a9fdb (patch) | |
tree | f5117841811d485c5b97f279828e8f27f095bc17 /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | |
parent | f8db121e471713c8b8ad56cde409abf2ef9a27bb (diff) | |
download | linux-4da999cdfc8d4fd4f948e024e6d0dbbd469a9fdb.tar.gz linux-4da999cdfc8d4fd4f948e024e6d0dbbd469a9fdb.tar.bz2 linux-4da999cdfc8d4fd4f948e024e6d0dbbd469a9fdb.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 32b552e54e77..44fc85b78563 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -1129,6 +1129,9 @@ static void gmc_v9_0_set_mmhub_funcs(struct amdgpu_device *adev) case CHIP_ARCTURUS: adev->mmhub.funcs = &mmhub_v9_4_funcs; break; + case CHIP_ALDEBARAN: + adev->mmhub.funcs = &mmhub_v1_7_funcs; + break; default: adev->mmhub.funcs = &mmhub_v1_0_funcs; break; |