drm/radeon/dpm: handle bapm on trinity
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Sep 2013 22:56:50 +0000 (18:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Sep 2013 15:44:37 +0000 (11:44 -0400)
commitef4e03658420bbf91365647615460668c2510e79
treee5a566fc95349dfdcbc81e042801dd6648b2c326
parent6ea4e84d209c1b49c90b52efff2ab0b1824619a6
drm/radeon/dpm: handle bapm on trinity

bapm is a power management feature for handling the
power budget between the CPU and GPU on APUs.  This
patch adds support for enabling or disabling it.
For now disable it by default.  Enabling it properly
requires quite a bit more work and will be addressed
in a separate patch.

This patch fixes hangs on boot on certain trinity
laptops when the system is on battery power.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/ppsmc.h
drivers/gpu/drm/radeon/trinity_dpm.c
drivers/gpu/drm/radeon/trinity_dpm.h
drivers/gpu/drm/radeon/trinity_smc.c