From: Xiaojian Du Date: Wed, 5 Jan 2022 08:58:39 +0000 (+0800) Subject: drm/amdgpu: skip the new gc doorbell function for some asics X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f5d990d61215cd249da1eb6c6fa850318712af40;p=linux.git 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 Reviewed-by: Huang Rui Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c index 8c7146716d102..70e5aefe239b0 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)