diff options
author | Xiaojian Du <Xiaojian.Du@amd.com> | 2022-01-05 16:58:39 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-05-06 10:36:13 -0400 |
commit | f5d990d61215cd249da1eb6c6fa850318712af40 (patch) | |
tree | 903659042e595de8e45604f784cd59305e53dcb2 /drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | |
parent | 06aeb7533294d8a02383f2b248d04cd9a2731172 (diff) | |
download | linux-f5d990d61215cd249da1eb6c6fa850318712af40.tar.bz2 |
drm/amdgpu: skip the new gc doorbell function for some asics
This patch will skip the new gc doorbell function for some asics,
only enable new doorbell model on aisc where it is supported.
Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c index 8c7146716d10..70e5aefe239b 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c @@ -4587,7 +4587,8 @@ static int gfx_v11_0_hw_init(void *handle) if (adev->firmware.load_type != AMDGPU_FW_LOAD_PSP) gfx_v11_0_select_cp_fw_arch(adev); - adev->nbio.funcs->gc_doorbell_init(adev); + if (adev->nbio.funcs->gc_doorbell_init) + adev->nbio.funcs->gc_doorbell_init(adev); r = gfx_v11_0_rlc_resume(adev); if (r) |