From: Hawking Zhang Date: Wed, 12 Dec 2018 17:23:56 +0000 (+0800) Subject: drm/amdgpu/psp: initialize autoload_supported flag in psp_sw_init X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1d1f41cf49d16c784682f8efff333475204d0e10;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu/psp: initialize autoload_supported flag in psp_sw_init RLC autoload is supported since from Navi10 Signed-off-by: Hawking Zhang Acked-by: Alex Deucher Reviewed-by: Jack Xiao Reviewed-by: Le Ma Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 297b1e1e3e49..f4e4d7b918c8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -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;