drm/amd/powerplay: apply clocks adjust rules on power state change
authorEvan Quan <evan.quan@amd.com>
Mon, 11 Jun 2018 08:40:57 +0000 (16:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:38:55 +0000 (16:38 -0500)
commite17c7f92b2b7c2f14934c305a8d72bbb0bf6f362
tree6c001f7ff0c9db4ea863d9b7a5418f30c7de094a
parenta0a59c8fc7af37287228a0c89b0a71a1ffadc29b
drm/amd/powerplay: apply clocks adjust rules on power state change

This add the apply_clocks_adjust_rules callback which is used
to validate the clock settings on a power state change.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.h