drm/amdgpu/psp: initialize autoload_supported flag in psp_sw_init
authorHawking Zhang <Hawking.Zhang@amd.com>
Wed, 12 Dec 2018 17:23:56 +0000 (01:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 02:46:50 +0000 (21:46 -0500)
RLC autoload is supported since from Navi10

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Le Ma <Le.Ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 297b1e1e3e4950bff3de3759ac1b82f9737a9673..f4e4d7b918c8d10da984a1e2026c3a5924e8cc19 100644 (file)
@@ -46,13 +46,19 @@ static int psp_early_init(void *handle)
        case CHIP_VEGA10:
        case CHIP_VEGA12:
                psp_v3_1_set_psp_funcs(psp);
+               psp->autoload_supported = false;
                break;
        case CHIP_RAVEN:
                psp_v10_0_set_psp_funcs(psp);
+               psp->autoload_supported = false;
                break;
        case CHIP_VEGA20:
+               psp_v11_0_set_psp_funcs(psp);
+               psp->autoload_supported = false;
+               break;
        case CHIP_NAVI10:
                psp_v11_0_set_psp_funcs(psp);
+               psp->autoload_supported = true;
                break;
        default:
                return -EINVAL;