drm/amdgpu: Skip runtime db read for PSP 13.0.6
authorLijo Lazar <lijo.lazar@amd.com>
Sat, 12 Nov 2022 11:00:40 +0000 (16:30 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:48:50 +0000 (09:48 -0400)
Skip reading runtime db information for PSP 13.0.6.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index dd7f6d688449c24d16bbaa296de6913e4545477b..1319df5796cc668f2c89101609341d1ac944b1d1 100644 (file)
@@ -329,6 +329,9 @@ static bool psp_get_runtime_db_entry(struct amdgpu_device *adev,
        bool ret = false;
        int i;
 
+       if (adev->ip_versions[MP0_HWIP][0] == IP_VERSION(13, 0, 6))
+               return false;
+
        db_header_pos = adev->gmc.mc_vram_size - PSP_RUNTIME_DB_OFFSET;
        db_dir_pos = db_header_pos + sizeof(struct psp_runtime_data_header);