Skip to content

Commit 6e29c22

Browse files
committed
drm/amdgpu: move gpu_info parsing after common early init
We need to get the silicon revision id before we parse the firmware in order to load the correct gpu info firmware for raven2 variants. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1103 Acked-by: Christian König <[email protected]> Reviewed-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 6ba57b7 commit 6e29c22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,10 +1766,6 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
17661766
return -EINVAL;
17671767
}
17681768

1769-
r = amdgpu_device_parse_gpu_info_fw(adev);
1770-
if (r)
1771-
return r;
1772-
17731769
amdgpu_amdkfd_device_probe(adev);
17741770

17751771
if (amdgpu_sriov_vf(adev)) {
@@ -1824,6 +1820,10 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)
18241820
}
18251821
/* get the vbios after the asic_funcs are set up */
18261822
if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_COMMON) {
1823+
r = amdgpu_device_parse_gpu_info_fw(adev);
1824+
if (r)
1825+
return r;
1826+
18271827
/* skip vbios handling for new handshake */
18281828
if (amdgpu_sriov_vf(adev) && adev->virt.req_init_data_ver == 1)
18291829
continue;

0 commit comments

Comments
 (0)