]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/dpm: make sure dc performance level limits are valid (BTC-SI) (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:18:35 +0000 (16:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:31:24 +0000 (16:31 -0400)
commita8533f7a40ea5d860eb162df6925c826e16d98b0
tree34a8876fe4c3cebb2915c1a3b36fef9b13014afd
parent905d628f2335413a68da8b3d6a2144a6bcd86b44
drm/radeon/dpm: make sure dc performance level limits are valid (BTC-SI) (v2)

Check to make sure the dc limits are valid before using them.
Some systems may not have a dc limits table.  In that case just
use the ac limits.  This fixes hangs on systems when the power
state is changed when on battery (dc) due to invalid performance
state parameters.

Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=68708

v2: fix up limits in dpm_init()

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/btc_dpm.c
drivers/gpu/drm/radeon/ni_dpm.c
drivers/gpu/drm/radeon/si_dpm.c