drm/radeon/dpm: fix spread spectrum setup (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2013 22:32:33 +0000 (18:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Aug 2013 21:37:10 +0000 (17:37 -0400)
commitb841ce7b41ffbecf84285b381b3ac23f05256d31
tree0649a5c0c58f91c824c88789e1e1ee3cad383e08
parentfda837241f3680e5dc554c26e178c2deec7a039c
drm/radeon/dpm: fix spread spectrum setup (v2)

Need to check for engine and memory clock ss separately
and only enable dynamic ss if either of them are found.

This should fix systems which have a ss table, but do
not have entries for engine or memory.  On those systems
we may enable dynamic spread spectrum without enabling
it on the engine or memory clocks which can lead to a
hang in some cases.

fixes some systems reported here:
https://bugs.freedesktop.org/show_bug.cgi?id=66963

v2: fix typo

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/btc_dpm.c
drivers/gpu/drm/radeon/cypress_dpm.c
drivers/gpu/drm/radeon/ni_dpm.c
drivers/gpu/drm/radeon/rv6xx_dpm.c
drivers/gpu/drm/radeon/rv770_dpm.c
drivers/gpu/drm/radeon/rv770_dpm.h
drivers/gpu/drm/radeon/si_dpm.c