drm/radeon: fix freeze for laptop with Turks/Thames GPU.
authorJérôme Glisse <jglisse@redhat.com>
Fri, 5 Jun 2015 17:33:57 +0000 (13:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 11 Jun 2015 14:26:42 +0000 (10:26 -0400)
commit6dfd197283bffc23a2b046a7f065588de7e1fc1e
treecc01011088c4f4ecb7bfbe5febfd15d931f74b05
parent38d8571dad8a759bdc051dbff747b189c90658cf
drm/radeon: fix freeze for laptop with Turks/Thames GPU.

Laptop with Turks/Thames GPU will freeze if dpm is enabled. It seems
the SMC engine is relying on some state inside the CP engine. CP needs
to chew at least one packet for it to get in good state for dynamic
power management.

This patch simply disabled and re-enable DPM after the ring test which
is enough to avoid the freeze.

Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_device.c