OSDN Git Service

drm/amd/powerplay: implement sysfs of amdgpu_get_busy_percent for smu11
authorKevin Wang <Kevin1.Wang@amd.com>
Fri, 11 Jan 2019 06:51:24 +0000 (14:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:03:57 +0000 (15:03 -0500)
commit4a5a2de66686e317ddcb090e3b1ee45b4219003a
treee5b1e9f5eed28c3920c9ee810849269342b434d6
parentdc8e3a0c8efbaab9b4bc7b924463a56ea33d818c
drm/amd/powerplay: implement sysfs of amdgpu_get_busy_percent for smu11

add interface amdgpu_get_busy_percent for smu11

v2: convert data pointer type to uint32_t *.

Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_v11_0.c