diff options
author | Huang Rui <ray.huang@amd.com> | 2017-01-05 05:44:41 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-01-27 11:13:06 -0500 |
commit | 6cb2d4e4f3b1f0857c720ab8c41a764f18995377 (patch) | |
tree | dd43467632c3b7866232440822dda2eb7c363328 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | c8394f38fa2362385fd34f7034a2276b458c640e (diff) |
drm/amdgpu: introduce an interface to get clock gating status dynamically
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 0345fbbfff4e..c63e5d3a902c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -1365,6 +1365,10 @@ static int amdgpu_debugfs_pm_info(struct seq_file *m, void *data) | |||
1365 | struct drm_device *dev = node->minor->dev; | 1365 | struct drm_device *dev = node->minor->dev; |
1366 | struct amdgpu_device *adev = dev->dev_private; | 1366 | struct amdgpu_device *adev = dev->dev_private; |
1367 | struct drm_device *ddev = adev->ddev; | 1367 | struct drm_device *ddev = adev->ddev; |
1368 | u32 flags = 0; | ||
1369 | |||
1370 | amdgpu_get_clockgating_state(adev, &flags); | ||
1371 | seq_printf(m, "Clock Gating Flags Mask: 0x%x\n", flags); | ||
1368 | 1372 | ||
1369 | if (!adev->pm.dpm_enabled) { | 1373 | if (!adev->pm.dpm_enabled) { |
1370 | seq_printf(m, "dpm not enabled\n"); | 1374 | seq_printf(m, "dpm not enabled\n"); |