Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
cc833b60
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
cc833b60
编写于
6月 27, 2013
作者:
A
Alex Deucher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/radeon/dpm: add dpm_set_power_state failure output (si)
Signed-off-by:
N
Alex Deucher
<
alexander.deucher@amd.com
>
上级
173dbb0e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
54 addition
and
19 deletion
+54
-19
drivers/gpu/drm/radeon/si_dpm.c
drivers/gpu/drm/radeon/si_dpm.c
+54
-19
未找到文件。
drivers/gpu/drm/radeon/si_dpm.c
浏览文件 @
cc833b60
...
...
@@ -5872,73 +5872,108 @@ int si_dpm_set_power_state(struct radeon_device *rdev)
int
ret
;
ret
=
si_disable_ulv
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_disable_ulv failed
\n
"
);
return
ret
;
}
ret
=
si_restrict_performance_levels_before_switch
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_restrict_performance_levels_before_switch failed
\n
"
);
return
ret
;
}
if
(
eg_pi
->
pcie_performance_request
)
si_request_link_speed_change_before_state_change
(
rdev
,
new_ps
,
old_ps
);
rv770_set_uvd_clock_before_set_eng_clock
(
rdev
,
new_ps
,
old_ps
);
ret
=
si_enable_power_containment
(
rdev
,
new_ps
,
false
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_enable_power_containment failed
\n
"
);
return
ret
;
}
ret
=
si_enable_smc_cac
(
rdev
,
new_ps
,
false
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_enable_smc_cac failed
\n
"
);
return
ret
;
}
ret
=
si_halt_smc
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_halt_smc failed
\n
"
);
return
ret
;
}
ret
=
si_upload_sw_state
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_upload_sw_state failed
\n
"
);
return
ret
;
}
ret
=
si_upload_smc_data
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_upload_smc_data failed
\n
"
);
return
ret
;
}
ret
=
si_upload_ulv_state
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_upload_ulv_state failed
\n
"
);
return
ret
;
}
if
(
eg_pi
->
dynamic_ac_timing
)
{
ret
=
si_upload_mc_reg_table
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_upload_mc_reg_table failed
\n
"
);
return
ret
;
}
}
ret
=
si_program_memory_timing_parameters
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_program_memory_timing_parameters failed
\n
"
);
return
ret
;
}
si_set_pcie_lane_width_in_smc
(
rdev
,
new_ps
,
old_ps
);
ret
=
si_populate_smc_tdp_limits
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_populate_smc_tdp_limits failed
\n
"
);
return
ret
;
}
ret
=
si_populate_smc_tdp_limits_2
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_populate_smc_tdp_limits_2 failed
\n
"
);
return
ret
;
}
ret
=
si_resume_smc
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_resume_smc failed
\n
"
);
return
ret
;
}
ret
=
si_set_sw_state
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_set_sw_state failed
\n
"
);
return
ret
;
}
rv770_set_uvd_clock_after_set_eng_clock
(
rdev
,
new_ps
,
old_ps
);
if
(
eg_pi
->
pcie_performance_request
)
si_notify_link_speed_change_after_state_change
(
rdev
,
new_ps
,
old_ps
);
ret
=
si_set_power_state_conditionally_enable_ulv
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_set_power_state_conditionally_enable_ulv failed
\n
"
);
return
ret
;
}
ret
=
si_enable_smc_cac
(
rdev
,
new_ps
,
true
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_enable_smc_cac failed
\n
"
);
return
ret
;
}
ret
=
si_enable_power_containment
(
rdev
,
new_ps
,
true
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"si_enable_power_containment failed
\n
"
);
return
ret
;
}
#if 0
/* XXX */
ret = si_unrestrict_performance_levels_after_switch(rdev);
if (ret)
if (ret) {
DRM_ERROR("si_unrestrict_performance_levels_after_switch failed\n");
return ret;
}
#endif
return
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录