diff options
author | Lijo Lazar <lijo.lazar@amd.com> | 2022-11-12 12:00:40 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-09 15:48:50 +0200 |
commit | cbd442ce91bdeb8f618511d65e674894a80e4c31 (patch) | |
tree | edb698361e5e1ad0e4e9321c410c7aeb349cceb4 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |
parent | drm/amdgpu: fix vm context register assignment in mmhub v1.8 (diff) | |
download | linux-cbd442ce91bdeb8f618511d65e674894a80e4c31.tar.xz linux-cbd442ce91bdeb8f618511d65e674894a80e4c31.zip |
drm/amdgpu: Skip runtime db read for PSP 13.0.6
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index dd7f6d688449..1319df5796cc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -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); |