Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
72dd2c54
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看板
提交
72dd2c54
编写于
3月 28, 2013
作者:
A
Alex Deucher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/radeon/dpm: add dpm_set_power_state failure output (7xx-ni)
Signed-off-by:
N
Alex Deucher
<
alexander.deucher@amd.com
>
上级
2c48febb
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
90 addition
and
33 deletion
+90
-33
drivers/gpu/drm/radeon/btc_dpm.c
drivers/gpu/drm/radeon/btc_dpm.c
+21
-8
drivers/gpu/drm/radeon/cypress_dpm.c
drivers/gpu/drm/radeon/cypress_dpm.c
+18
-8
drivers/gpu/drm/radeon/ni_dpm.c
drivers/gpu/drm/radeon/ni_dpm.c
+36
-12
drivers/gpu/drm/radeon/rv770_dpm.c
drivers/gpu/drm/radeon/rv770_dpm.c
+15
-5
未找到文件。
drivers/gpu/drm/radeon/btc_dpm.c
浏览文件 @
72dd2c54
...
...
@@ -2274,44 +2274,57 @@ int btc_dpm_set_power_state(struct radeon_device *rdev)
ret
=
btc_disable_ulv
(
rdev
);
btc_set_boot_state_timing
(
rdev
);
ret
=
rv770_restrict_performance_levels_before_switch
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_restrict_performance_levels_before_switch failed
\n
"
);
return
ret
;
}
if
(
eg_pi
->
pcie_performance_request
)
cypress_notify_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
=
rv770_halt_smc
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_halt_smc failed
\n
"
);
return
ret
;
}
btc_set_at_for_uvd
(
rdev
,
new_ps
);
if
(
eg_pi
->
smu_uvd_hs
)
btc_notify_uvd_to_smc
(
rdev
,
new_ps
);
ret
=
cypress_upload_sw_state
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_upload_sw_state failed
\n
"
);
return
ret
;
}
if
(
eg_pi
->
dynamic_ac_timing
)
{
ret
=
cypress_upload_mc_reg_table
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_upload_mc_reg_table failed
\n
"
);
return
ret
;
}
}
cypress_program_memory_timing_parameters
(
rdev
,
new_ps
);
ret
=
rv770_resume_smc
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_resume_smc failed
\n
"
);
return
ret
;
}
ret
=
rv770_set_sw_state
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_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
)
cypress_notify_link_speed_change_after_state_change
(
rdev
,
new_ps
,
old_ps
);
ret
=
btc_set_power_state_conditionally_enable_ulv
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"btc_set_power_state_conditionally_enable_ulv failed
\n
"
);
return
ret
;
}
#if 0
/* XXX */
...
...
drivers/gpu/drm/radeon/cypress_dpm.c
浏览文件 @
72dd2c54
...
...
@@ -1971,34 +1971,44 @@ int cypress_dpm_set_power_state(struct radeon_device *rdev)
int
ret
;
ret
=
rv770_restrict_performance_levels_before_switch
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_restrict_performance_levels_before_switch failed
\n
"
);
return
ret
;
}
if
(
eg_pi
->
pcie_performance_request
)
cypress_notify_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
=
rv770_halt_smc
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_halt_smc failed
\n
"
);
return
ret
;
}
ret
=
cypress_upload_sw_state
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_upload_sw_state failed
\n
"
);
return
ret
;
}
if
(
eg_pi
->
dynamic_ac_timing
)
{
ret
=
cypress_upload_mc_reg_table
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_upload_mc_reg_table failed
\n
"
);
return
ret
;
}
}
cypress_program_memory_timing_parameters
(
rdev
,
new_ps
);
ret
=
rv770_resume_smc
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_resume_smc failed
\n
"
);
return
ret
;
}
ret
=
rv770_set_sw_state
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_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
)
...
...
drivers/gpu/drm/radeon/ni_dpm.c
浏览文件 @
72dd2c54
...
...
@@ -3726,47 +3726,71 @@ int ni_dpm_set_power_state(struct radeon_device *rdev)
int
ret
;
ret
=
ni_restrict_performance_levels_before_switch
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_restrict_performance_levels_before_switch failed
\n
"
);
return
ret
;
}
rv770_set_uvd_clock_before_set_eng_clock
(
rdev
,
new_ps
,
old_ps
);
ret
=
ni_enable_power_containment
(
rdev
,
new_ps
,
false
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_enable_power_containment failed
\n
"
);
return
ret
;
}
ret
=
ni_enable_smc_cac
(
rdev
,
new_ps
,
false
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_enable_smc_cac failed
\n
"
);
return
ret
;
}
ret
=
rv770_halt_smc
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_halt_smc failed
\n
"
);
return
ret
;
}
if
(
eg_pi
->
smu_uvd_hs
)
btc_notify_uvd_to_smc
(
rdev
,
new_ps
);
ret
=
ni_upload_sw_state
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_upload_sw_state failed
\n
"
);
return
ret
;
}
if
(
eg_pi
->
dynamic_ac_timing
)
{
ret
=
ni_upload_mc_reg_table
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_upload_mc_reg_table failed
\n
"
);
return
ret
;
}
}
ret
=
ni_program_memory_timing_parameters
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_program_memory_timing_parameters failed
\n
"
);
return
ret
;
}
ret
=
ni_populate_smc_tdp_limits
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_populate_smc_tdp_limits failed
\n
"
);
return
ret
;
}
ret
=
rv770_resume_smc
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_resume_smc failed
\n
"
);
return
ret
;
}
ret
=
rv770_set_sw_state
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_set_sw_state failed
\n
"
);
return
ret
;
}
rv770_set_uvd_clock_after_set_eng_clock
(
rdev
,
new_ps
,
old_ps
);
ret
=
ni_enable_smc_cac
(
rdev
,
new_ps
,
true
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_enable_smc_cac failed
\n
"
);
return
ret
;
}
ret
=
ni_enable_power_containment
(
rdev
,
new_ps
,
true
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_enable_power_containment failed
\n
"
);
return
ret
;
}
#if 0
/* XXX */
...
...
drivers/gpu/drm/radeon/rv770_dpm.c
浏览文件 @
72dd2c54
...
...
@@ -2015,24 +2015,34 @@ int rv770_dpm_set_power_state(struct radeon_device *rdev)
int
ret
;
ret
=
rv770_restrict_performance_levels_before_switch
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_restrict_performance_levels_before_switch failed
\n
"
);
return
ret
;
}
rv770_set_uvd_clock_before_set_eng_clock
(
rdev
,
new_ps
,
old_ps
);
ret
=
rv770_halt_smc
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_halt_smc failed
\n
"
);
return
ret
;
}
ret
=
rv770_upload_sw_state
(
rdev
,
new_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_upload_sw_state failed
\n
"
);
return
ret
;
}
r7xx_program_memory_timing_parameters
(
rdev
,
new_ps
);
if
(
pi
->
dcodt
)
rv770_program_dcodt_before_state_switch
(
rdev
,
new_ps
,
old_ps
);
ret
=
rv770_resume_smc
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_resume_smc failed
\n
"
);
return
ret
;
}
ret
=
rv770_set_sw_state
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_set_sw_state failed
\n
"
);
return
ret
;
}
if
(
pi
->
dcodt
)
rv770_program_dcodt_after_state_switch
(
rdev
,
new_ps
,
old_ps
);
rv770_set_uvd_clock_after_set_eng_clock
(
rdev
,
new_ps
,
old_ps
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录