drm/amdgpu: Load vcn_v4_0_3 ucode during early_init
authorSonny Jiang <sonjiang@amd.com>
Wed, 15 Feb 2023 18:56:57 +0000 (13:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:55:56 +0000 (09:55 -0400)
VCN loading ucode is moved to early_init with using 'amdgpu_ucode_*'
helpers.

Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Sonny Jiang <sonjiang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c

index 746df23b2eaa641835cc612049efcdba9951085a..308dfe80a87c782edd6bca44d4fc5901c807cde0 100644 (file)
@@ -69,7 +69,7 @@ static int vcn_v4_0_3_early_init(void *handle)
        vcn_v4_0_3_set_unified_ring_funcs(adev);
        vcn_v4_0_3_set_irq_funcs(adev);
 
-       return 0;
+       return amdgpu_vcn_early_init(adev);
 }
 
 /**