summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorLikun Gao <Likun.Gao@amd.com>2022-05-04 09:56:33 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-05-04 09:56:51 -0400
commit7f318f4e305ac2675bc6e67712f03e631b6f2ed1 (patch)
treef03254fdb4733c32ce1c4f75a1f73cf638661e9f /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parenta6b6d38ed873bb4f105cde4b91f6d4cb5aa41efa (diff)
downloadlwn-7f318f4e305ac2675bc6e67712f03e631b6f2ed1.tar.gz
lwn-7f318f4e305ac2675bc6e67712f03e631b6f2ed1.zip
drm/amdgpu: add tracking for the enablement of SCPM
Add parmeter to shows whether SCPM feature is enabled or not, and whether is valid. 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.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index cb57ccfce289..fc3225eb7142 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1016,6 +1016,9 @@ struct amdgpu_device {
/* reset dump register */
uint32_t *reset_dump_reg_list;
int num_regs;
+
+ bool scpm_enabled;
+ uint32_t scpm_status;
};
static inline struct amdgpu_device *drm_to_adev(struct drm_device *ddev)