diff options
author | Likun Gao <Likun.Gao@amd.com> | 2023-10-26 17:39:17 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-02-14 17:18:16 -0500 |
commit | 2fb4460fb84d507c55d3e346dfe95230e6d17c5b (patch) | |
tree | b17a2490542c18f4bce417099e9f956839daaa8d /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | |
parent | 8d339b0df22956ce7e3ed8b1aa08ac8fe7f7952d (diff) | |
download | linux-2fb4460fb84d507c55d3e346dfe95230e6d17c5b.tar.gz linux-2fb4460fb84d507c55d3e346dfe95230e6d17c5b.tar.bz2 linux-2fb4460fb84d507c55d3e346dfe95230e6d17c5b.zip |
drm/amdgpu/psp: handle TMR type via flag
Add flag boot_time_tmr to indicate boot time TMR or runtime TMR
instead of function.
v2: rework logic (Alex)
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/amdgpu_psp.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h index c24b1d7462ee..ee16f134ae92 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h @@ -364,6 +364,8 @@ struct psp_context { atomic_t fence_value; /* flag to mark whether gfx fw autoload is supported or not */ bool autoload_supported; + /* flag to mark whether psp use runtime TMR or boottime TMR */ + bool boot_time_tmr; /* flag to mark whether df cstate management centralized to PMFW */ bool pmfw_centralized_cstate_management; |