Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
fa4b5471
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fa4b5471
编写于
3月 28, 2013
作者:
A
Alex Deucher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/radeon/dpm: add dpm_enable failure output (7xx-ni)
Signed-off-by:
N
Alex Deucher
<
alexander.deucher@amd.com
>
上级
a9e61410
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
87 addition
and
34 deletion
+87
-34
drivers/gpu/drm/radeon/btc_dpm.c
drivers/gpu/drm/radeon/btc_dpm.c
+18
-7
drivers/gpu/drm/radeon/cypress_dpm.c
drivers/gpu/drm/radeon/cypress_dpm.c
+21
-10
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
+12
-5
未找到文件。
drivers/gpu/drm/radeon/btc_dpm.c
浏览文件 @
fa4b5471
...
...
@@ -2353,14 +2353,18 @@ int btc_dpm_enable(struct radeon_device *rdev)
if
(
pi
->
voltage_control
)
{
rv770_enable_voltage_control
(
rdev
,
true
);
ret
=
cypress_construct_voltage_tables
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_construct_voltage_tables failed
\n
"
);
return
ret
;
}
}
if
(
pi
->
mvdd_control
)
{
ret
=
cypress_get_mvdd_configuration
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_get_mvdd_configuration failed
\n
"
);
return
ret
;
}
}
if
(
eg_pi
->
dynamic_ac_timing
)
{
...
...
@@ -2391,27 +2395,34 @@ int btc_dpm_enable(struct radeon_device *rdev)
btc_enable_dynamic_pcie_gen2
(
rdev
,
true
);
ret
=
rv770_upload_firmware
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_upload_firmware failed
\n
"
);
return
ret
;
}
ret
=
cypress_get_table_locations
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_get_table_locations failed
\n
"
);
return
ret
;
}
ret
=
btc_init_smc_table
(
rdev
,
boot_ps
);
if
(
ret
)
return
ret
;
if
(
eg_pi
->
dynamic_ac_timing
)
{
ret
=
cypress_populate_mc_reg_table
(
rdev
,
boot_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_populate_mc_reg_table failed
\n
"
);
return
ret
;
}
}
cypress_program_response_times
(
rdev
);
r7xx_start_smc
(
rdev
);
ret
=
cypress_notify_smc_display_change
(
rdev
,
false
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_notify_smc_display_change failed
\n
"
);
return
ret
;
}
cypress_enable_sclk_control
(
rdev
,
true
);
if
(
eg_pi
->
memory_transition
)
...
...
drivers/gpu/drm/radeon/cypress_dpm.c
浏览文件 @
fa4b5471
...
...
@@ -1813,14 +1813,18 @@ int cypress_dpm_enable(struct radeon_device *rdev)
if
(
pi
->
voltage_control
)
{
rv770_enable_voltage_control
(
rdev
,
true
);
ret
=
cypress_construct_voltage_tables
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_construct_voltage_tables failed
\n
"
);
return
ret
;
}
}
if
(
pi
->
mvdd_control
)
{
ret
=
cypress_get_mvdd_configuration
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_get_mvdd_configuration failed
\n
"
);
return
ret
;
}
}
if
(
eg_pi
->
dynamic_ac_timing
)
{
...
...
@@ -1854,21 +1858,27 @@ int cypress_dpm_enable(struct radeon_device *rdev)
cypress_enable_dynamic_pcie_gen2
(
rdev
,
true
);
ret
=
rv770_upload_firmware
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_upload_firmware failed
\n
"
);
return
ret
;
}
ret
=
cypress_get_table_locations
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_get_table_locations failed
\n
"
);
return
ret
;
}
ret
=
cypress_init_smc_table
(
rdev
,
boot_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_init_smc_table failed
\n
"
);
return
ret
;
}
if
(
eg_pi
->
dynamic_ac_timing
)
{
ret
=
cypress_populate_mc_reg_table
(
rdev
,
boot_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_populate_mc_reg_table failed
\n
"
);
return
ret
;
}
}
cypress_program_response_times
(
rdev
);
...
...
@@ -1876,9 +1886,10 @@ int cypress_dpm_enable(struct radeon_device *rdev)
r7xx_start_smc
(
rdev
);
ret
=
cypress_notify_smc_display_change
(
rdev
,
false
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_notify_smc_display_change failed
\n
"
);
return
ret
;
}
cypress_enable_sclk_control
(
rdev
,
true
);
if
(
eg_pi
->
memory_transition
)
...
...
drivers/gpu/drm/radeon/ni_dpm.c
浏览文件 @
fa4b5471
...
...
@@ -3530,8 +3530,10 @@ int ni_dpm_enable(struct radeon_device *rdev)
if
(
pi
->
voltage_control
)
{
rv770_enable_voltage_control
(
rdev
,
true
);
ret
=
cypress_construct_voltage_tables
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_construct_voltage_tables failed
\n
"
);
return
ret
;
}
}
if
(
eg_pi
->
dynamic_ac_timing
)
{
ret
=
ni_initialize_mc_reg_table
(
rdev
);
...
...
@@ -3552,42 +3554,64 @@ int ni_dpm_enable(struct radeon_device *rdev)
if
(
pi
->
dynamic_pcie_gen2
)
ni_enable_dynamic_pcie_gen2
(
rdev
,
true
);
ret
=
rv770_upload_firmware
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_upload_firmware failed
\n
"
);
return
ret
;
}
ret
=
ni_process_firmware_header
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_process_firmware_header failed
\n
"
);
return
ret
;
}
ret
=
ni_initial_switch_from_arb_f0_to_f1
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_initial_switch_from_arb_f0_to_f1 failed
\n
"
);
return
ret
;
}
ret
=
ni_init_smc_table
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_init_smc_table failed
\n
"
);
return
ret
;
}
ret
=
ni_init_smc_spll_table
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_init_smc_spll_table failed
\n
"
);
return
ret
;
}
ret
=
ni_init_arb_table_index
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_init_arb_table_index failed
\n
"
);
return
ret
;
}
if
(
eg_pi
->
dynamic_ac_timing
)
{
ret
=
ni_populate_mc_reg_table
(
rdev
,
boot_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_populate_mc_reg_table failed
\n
"
);
return
ret
;
}
}
ret
=
ni_initialize_smc_cac_tables
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_initialize_smc_cac_tables failed
\n
"
);
return
ret
;
}
ret
=
ni_initialize_hardware_cac_manager
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_initialize_hardware_cac_manager failed
\n
"
);
return
ret
;
}
ret
=
ni_populate_smc_tdp_limits
(
rdev
,
boot_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"ni_populate_smc_tdp_limits failed
\n
"
);
return
ret
;
}
ni_program_response_times
(
rdev
);
r7xx_start_smc
(
rdev
);
ret
=
cypress_notify_smc_display_change
(
rdev
,
false
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"cypress_notify_smc_display_change failed
\n
"
);
return
ret
;
}
cypress_enable_sclk_control
(
rdev
,
true
);
if
(
eg_pi
->
memory_transition
)
cypress_enable_mclk_control
(
rdev
,
true
);
...
...
drivers/gpu/drm/radeon/rv770_dpm.c
浏览文件 @
fa4b5471
...
...
@@ -1886,8 +1886,10 @@ int rv770_dpm_enable(struct radeon_device *rdev)
if
(
pi
->
voltage_control
)
{
rv770_enable_voltage_control
(
rdev
,
true
);
ret
=
rv770_construct_vddc_table
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_construct_vddc_table failed
\n
"
);
return
ret
;
}
}
if
(
pi
->
dcodt
)
...
...
@@ -1895,8 +1897,10 @@ int rv770_dpm_enable(struct radeon_device *rdev)
if
(
pi
->
mvdd_control
)
{
ret
=
rv770_get_mvdd_configuration
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_get_mvdd_configuration failed
\n
"
);
return
ret
;
}
}
if
(
rdev
->
pm
.
dpm
.
platform_caps
&
ATOM_PP_PLATFORM_CAP_BACKBIAS
)
...
...
@@ -1921,12 +1925,15 @@ int rv770_dpm_enable(struct radeon_device *rdev)
rv770_enable_dynamic_pcie_gen2
(
rdev
,
true
);
ret
=
rv770_upload_firmware
(
rdev
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_upload_firmware failed
\n
"
);
return
ret
;
}
ret
=
rv770_init_smc_table
(
rdev
,
boot_ps
);
if
(
ret
)
if
(
ret
)
{
DRM_ERROR
(
"rv770_init_smc_table failed
\n
"
);
return
ret
;
}
rv770_program_response_times
(
rdev
);
r7xx_start_smc
(
rdev
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录