drm/amd: disable GPA mode in backdoor load
authorYifan Zhang <yifan1.zhang@amd.com>
Thu, 9 Jun 2022 09:03:48 +0000 (17:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jun 2022 01:38:39 +0000 (21:38 -0400)
GPA mode should be disabled in direct load.

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

index 05359df..942d41a 100644 (file)
@@ -4563,6 +4563,9 @@ static int gfx_v11_0_hw_init(void *handle)
                                if (adev->gfx.imu.funcs->start_imu)
                                        adev->gfx.imu.funcs->start_imu(adev);
                        }
+
+                       /* disable gpa mode in backdoor loading */
+                       gfx_v11_0_disable_gpa_mode(adev);
                }
        }