]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/dpm: make sure dc performance level limits are valid (CI)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:24:33 +0000 (16:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:31:25 +0000 (16:31 -0400)
commite47af7af3473044379010273628b98db52a0da78
tree309b8269d5906c68a5419abc853cc7f0dea72e22
parent6b7eac749f5f9b6244882e6d8294f323bbe50686
drm/radeon/dpm: make sure dc performance level limits are valid (CI)

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

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/ci_dpm.c