OSDN Git Service

drm/amdgpu: expose sclk and mclk via hwmon
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Dec 2018 21:04:15 +0000 (16:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:54 +0000 (15:04 -0500)
commitd0948af7f6aaf05e3228063b26f696dedf2685df
tree251ee97b3ffb29845eddf33177f785b741471200
parentb45e18acd394954c24943762ada5d8dada75f2b9
drm/amdgpu: expose sclk and mclk via hwmon

Expose sclk (gfx clock) and mclk (memory clock) via
hwmon compatible interface.  hwmon does not actually
formally specify a frequency type attribute, but these
are compatible with the format of the other attributes
exposed via hwmon.  Units are hertz.

freq1_input - GPU gfx/compute clock in hertz
freq2_input - GPU memory clock in hertz (dGPU only)

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c