提交 730a336c 编写于 作者: A Alex Deucher

drm/radeon/TN: only enable bapm on MSI systems

There still seem to be stability problems with other systems.

Bug:
https://bugs.freedesktop.org/show_bug.cgi?id=72921Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 cc9e67e3
...@@ -1874,15 +1874,16 @@ int trinity_dpm_init(struct radeon_device *rdev) ...@@ -1874,15 +1874,16 @@ int trinity_dpm_init(struct radeon_device *rdev)
for (i = 0; i < SUMO_MAX_HARDWARE_POWERLEVELS; i++) for (i = 0; i < SUMO_MAX_HARDWARE_POWERLEVELS; i++)
pi->at[i] = TRINITY_AT_DFLT; pi->at[i] = TRINITY_AT_DFLT;
/* There are stability issues reported on latops with /* There are stability issues reported on with
* bapm installed when switching between AC and battery * bapm enabled when switching between AC and battery
* power. At the same time, some desktop boards hang * power. At the same time, some MSI boards hang
* if it's not enabled and dpm is enabled. * if it's not enabled and dpm is enabled. Just enable
* it for MSI boards right now.
*/ */
if (rdev->flags & RADEON_IS_MOBILITY) if (rdev->pdev->subsystem_vendor == 0x1462)
pi->enable_bapm = false;
else
pi->enable_bapm = true; pi->enable_bapm = true;
else
pi->enable_bapm = false;
pi->enable_nbps_policy = true; pi->enable_nbps_policy = true;
pi->enable_sclk_ds = true; pi->enable_sclk_ds = true;
pi->enable_gfx_power_gating = true; pi->enable_gfx_power_gating = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册