diff options
author | Likun Gao <Likun.Gao@amd.com> | 2023-06-13 12:10:00 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-15 11:06:58 -0400 |
commit | d4a4ff1c8e4cd752b517af7317077939f3a25dfe (patch) | |
tree | bac45a49b181a7e6e05778465be335a8b163ca13 /drivers/gpu/drm/amd/amdgpu/psp_v13_0.h | |
parent | ebbb0b103efdcf9b682c7fe8ea84b1cf355304c6 (diff) | |
download | linux-d4a4ff1c8e4cd752b517af7317077939f3a25dfe.tar.gz linux-d4a4ff1c8e4cd752b517af7317077939f3a25dfe.tar.bz2 linux-d4a4ff1c8e4cd752b517af7317077939f3a25dfe.zip |
drm/amdgpu: add wait_for helper for spirom update
Spirom update typically requires extremely long
duration for command execution, and special helper
function to wait for it completion.
Signed-off-by: Likun Gao <Likun.Gao@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/psp_v13_0.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/psp_v13_0.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v13_0.h b/drivers/gpu/drm/amd/amdgpu/psp_v13_0.h index b2414a729ca1..de5677ce4330 100644 --- a/drivers/gpu/drm/amd/amdgpu/psp_v13_0.h +++ b/drivers/gpu/drm/amd/amdgpu/psp_v13_0.h @@ -25,6 +25,8 @@ #include "amdgpu_psp.h" +#define PSP_SPIROM_UPDATE_TIMEOUT 60000 /* 60s */ + void psp_v13_0_set_psp_funcs(struct psp_context *psp); #endif |