drm/amdgpu: check kdb_bin_size to exclude kdb loading sequence
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 16 Jul 2019 05:48:19 +0000 (13:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Jul 2019 19:49:57 +0000 (14:49 -0500)
The legacy navi10 sos binary will not carry on kdb image. the kdb_start_addr
is actually the start address of sys_drv image and shouldn't be sent to psp
bootloader.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index c5b7049cc01da7153f9b0c6b6cd7844cbc2e0585..c027e5e7713ef821297d78127e035fff8e3732d8 100644 (file)
@@ -769,7 +769,7 @@ static int psp_hw_start(struct psp_context *psp)
        int ret;
 
        if (!amdgpu_sriov_vf(adev) || !adev->in_gpu_reset) {
-               if (psp->kdb_start_addr &&
+               if (psp->kdb_bin_size &&
                    (psp->funcs->bootloader_load_kdb != NULL)) {
                        ret = psp_bootloader_load_kdb(psp);
                        if (ret) {