diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-08-07 09:28:31 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-08-15 00:57:27 -0400 |
commit | 6e909f74db2aa9c5b5606b81efcbe18f2749b008 (patch) | |
tree | b3cc50522fee4433665ebc6fca88f832c778bcfe /drivers/gpu/drm/radeon/kv_dpm.c | |
parent | 251964845fbf539781dd2c6406cb2ba1bf9eddd0 (diff) | |
download | op-kernel-dev-6e909f74db2aa9c5b5606b81efcbe18f2749b008.zip op-kernel-dev-6e909f74db2aa9c5b5606b81efcbe18f2749b008.tar.gz |
drm/radeon: add bapm module parameter
Add a module paramter to enable bapm on APUs. It's disabled
by default on certain APUs due to stability issues. This
option makes it easier to test and to enable it on systems that
are stable.
bug:
https://bugzilla.kernel.org/show_bug.cgi?id=81021
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/radeon/kv_dpm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/kv_dpm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/kv_dpm.c b/drivers/gpu/drm/radeon/kv_dpm.c index 9ef8c38..c667d83 100644 --- a/drivers/gpu/drm/radeon/kv_dpm.c +++ b/drivers/gpu/drm/radeon/kv_dpm.c @@ -2726,7 +2726,10 @@ int kv_dpm_init(struct radeon_device *rdev) pi->caps_sclk_ds = true; pi->enable_auto_thermal_throttling = true; pi->disable_nb_ps3_in_battery = false; - pi->bapm_enable = true; + if (radeon_bapm == 0) + pi->bapm_enable = false; + else + pi->bapm_enable = true; pi->voltage_drop_t = 0; pi->caps_sclk_throttle_low_notification = false; pi->caps_fps = false; /* true? */ |