Merge tag 'amd-drm-next-6.7-2023-10-13' of https://gitlab.freedesktop.org/agd5f/linux...
[sfrench/cifs-2.6.git] / drivers / gpu / drm / amd / amdgpu / psp_v11_0.c
index 8f84fe40abbbbf08d088983d56db654fccd0acee..efa37e3b793143a62281c451079dcd3e53d2c778 100644 (file)
@@ -95,7 +95,7 @@ static int psp_v11_0_init_microcode(struct psp_context *psp)
 
        amdgpu_ucode_ip_version_decode(adev, MP0_HWIP, ucode_prefix, sizeof(ucode_prefix));
 
-       switch (adev->ip_versions[MP0_HWIP][0]) {
+       switch (amdgpu_ip_version(adev, MP0_HWIP, 0)) {
        case IP_VERSION(11, 0, 2):
        case IP_VERSION(11, 0, 4):
                err = psp_init_sos_microcode(psp, ucode_prefix);