AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PART1 PATCH 0/8] Introduce a method to get clock gating status dynamically
@ 2017-01-05 13:49 Huang Rui
       [not found] ` <1483624193-20897-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 16+ messages in thread
From: Huang Rui @ 2017-01-05 13:49 UTC (permalink / raw)
  To: Alex Deucher, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: Huang Rui, Hawking Zhang, Rex Zhu, Ping Fu, David Mao

This series patches implement to get the clock gating status
dynamically into debugfs. User will enter profiling mode to runtime
disable clockgating, so it needs an interface to expose clock gating
states. Part 1 works for VI, I will implement it on CI/SI in following
days.

Here is the example on Fiji:

root@jenkins-All-Series:/home/jenkins# cat /sys/kernel/debug/dri/64/amdgpu_pm_info
Clock Gating Flags Mask: 0x3dfff
        Medium Grain Clock Gating: On
        Medium Grain memory Light Sleep: On
        Coarse Grain Clock Gating: On
        Coarse Grain memory Light Sleep: On
        Coarse Grain Tree Shader: On
        Coarse Grain Tree Shader Light Sleep: On
        Command Processor Light Sleep: On
        Run List Controller Light Sleep: On
        Memory Controller Light Sleep: On
        Memory Controller Medium Grain Clock Gating: On
        System Direct Memory Access Light Sleep: On
        System Direct Memory Access Medium Grain Clock Gating: On
        Bus Interface Light Sleep: On
        Universal Video Decoder Medium Grain Clock Gating: Off
        Video Coding Engine Medium Grain Clock Gating: On
        Host Data Path Light Sleep: On
        Host Data Path Medium Grain Clock Gating: On
        Rom Medium Grain Clock Gating: On
...

Thanks,
Rui

Huang Rui (8):
  drm/amdgpu: introduce an interface to get clock gating status
    dynamically
  drm/amdgpu: add parse clock gating state
  drm/amdgpu: add clockgating_state method for gfx v8
  drm/amdgpu: add clockgating_state method for gmc v8
  drm/amdgpu: add clockgating_state method for sdma v3
  drm/amdgpu: add clockgating_state method for vi common
  drm/amdgpu: add clockgating_state method for uvd v5&v6
  drm/amdgpu: add clockgating_state method for vce v3

 drivers/gpu/drm/amd/amdgpu/amdgpu.h        |  1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 12 ++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c     | 99 ++++++++++++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c      | 40 ++++++++++++
 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c      | 16 +++++
 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c     | 17 +++++
 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c      | 12 ++++
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c      | 12 ++++
 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c      | 18 ++++++
 drivers/gpu/drm/amd/amdgpu/vi.c            | 27 ++++++++
 drivers/gpu/drm/amd/include/amd_shared.h   |  2 +
 11 files changed, 256 insertions(+)

-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-01-06  6:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-05 13:49 [PART1 PATCH 0/8] Introduce a method to get clock gating status dynamically Huang Rui
     [not found] ` <1483624193-20897-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2017-01-05 13:49   ` [PART1 PATCH 1/8] drm/amdgpu: introduce an interface " Huang Rui
2017-01-05 13:49   ` [PART1 PATCH 2/8] drm/amdgpu: add parse clock gating state Huang Rui
     [not found]     ` <1483624193-20897-3-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org>
2017-01-05 16:33       ` Felix Kuehling
     [not found]         ` <b407dd74-16e2-8df3-0adb-2afa17bf8f13-5C7GfCeVMHo@public.gmane.org>
2017-01-06  6:19           ` Huang Rui
2017-01-05 16:34       ` William Lewis
     [not found]         ` <BN6PR17MB0913FDE2AC51D02FD9730FD1C8600-jOV4XOBZ6Mu/5fi7T5v52H+GY4YGzQ7gvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-01-06  6:21           ` Huang Rui
2017-01-05 13:49   ` [PART1 PATCH 3/8] drm/amdgpu: add clockgating_state method for gfx v8 Huang Rui
2017-01-05 13:49   ` [PART1 PATCH 4/8] drm/amdgpu: add clockgating_state method for gmc v8 Huang Rui
2017-01-05 13:49   ` [PART1 PATCH 5/8] drm/amdgpu: add clockgating_state method for sdma v3 Huang Rui
2017-01-05 13:49   ` [PART1 PATCH 6/8] drm/amdgpu: add clockgating_state method for vi common Huang Rui
2017-01-05 13:49   ` [PART1 PATCH 7/8] drm/amdgpu: add clockgating_state method for uvd v5&v6 Huang Rui
2017-01-05 13:49   ` [PART1 PATCH 8/8] drm/amdgpu: add clockgating_state method for vce v3 Huang Rui
2017-01-05 15:40   ` [PART1 PATCH 0/8] Introduce a method to get clock gating status dynamically Deucher, Alexander
     [not found]     ` <BN6PR12MB1652B0E3AD8F9252CE089FA0F7600-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-01-05 15:51       ` StDenis, Tom
2017-01-06  6:12       ` Huang Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox