]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: skip the new gc doorbell function for some asics
authorXiaojian Du <Xiaojian.Du@amd.com>
Wed, 5 Jan 2022 08:58:39 +0000 (16:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 May 2022 14:36:13 +0000 (10:36 -0400)
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>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

index 8c7146716d102ad084b8fd2de6ac47baf04ae749..70e5aefe239b08d3a4b4b4c90e1e1f095a29c3ea 100644 (file)
@@ -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)