Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
becfa698
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看板
提交
becfa698
编写于
5月 09, 2013
作者:
A
Alex Deucher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/radeon/dpm: clean up the extended table error pathes
Signed-off-by:
N
Alex Deucher
<
alexander.deucher@amd.com
>
上级
018042b1
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
34 deletion
+6
-34
drivers/gpu/drm/radeon/r600_dpm.c
drivers/gpu/drm/radeon/r600_dpm.c
+6
-34
未找到文件。
drivers/gpu/drm/radeon/r600_dpm.c
浏览文件 @
becfa698
...
...
@@ -919,10 +919,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev)
sizeof
(
struct
radeon_phase_shedding_limits_entry
),
GFP_KERNEL
);
if
(
!
rdev
->
pm
.
dpm
.
dyn_state
.
phase_shedding_limits_table
.
entries
)
{
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_sclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddci_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
mvdd_dependency_on_mclk
.
entries
);
r600_free_extended_power_table
(
rdev
);
return
-
ENOMEM
;
}
...
...
@@ -964,10 +961,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev)
u32
size
=
cac_table
->
ucNumEntries
*
sizeof
(
struct
radeon_cac_leakage_table
);
rdev
->
pm
.
dpm
.
dyn_state
.
cac_leakage_table
.
entries
=
kzalloc
(
size
,
GFP_KERNEL
);
if
(
!
rdev
->
pm
.
dpm
.
dyn_state
.
cac_leakage_table
.
entries
)
{
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_sclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddci_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
mvdd_dependency_on_mclk
.
entries
);
r600_free_extended_power_table
(
rdev
);
return
-
ENOMEM
;
}
for
(
i
=
0
;
i
<
cac_table
->
ucNumEntries
;
i
++
)
{
...
...
@@ -1010,11 +1004,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev)
rdev
->
pm
.
dpm
.
dyn_state
.
vce_clock_voltage_dependency_table
.
entries
=
kzalloc
(
size
,
GFP_KERNEL
);
if
(
!
rdev
->
pm
.
dpm
.
dyn_state
.
vce_clock_voltage_dependency_table
.
entries
)
{
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_sclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddci_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
mvdd_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
cac_leakage_table
.
entries
);
r600_free_extended_power_table
(
rdev
);
return
-
ENOMEM
;
}
rdev
->
pm
.
dpm
.
dyn_state
.
vce_clock_voltage_dependency_table
.
count
=
...
...
@@ -1045,12 +1035,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev)
rdev
->
pm
.
dpm
.
dyn_state
.
uvd_clock_voltage_dependency_table
.
entries
=
kzalloc
(
size
,
GFP_KERNEL
);
if
(
!
rdev
->
pm
.
dpm
.
dyn_state
.
uvd_clock_voltage_dependency_table
.
entries
)
{
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_sclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddci_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
mvdd_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
cac_leakage_table
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vce_clock_voltage_dependency_table
.
entries
);
r600_free_extended_power_table
(
rdev
);
return
-
ENOMEM
;
}
rdev
->
pm
.
dpm
.
dyn_state
.
uvd_clock_voltage_dependency_table
.
count
=
...
...
@@ -1074,13 +1059,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev)
rdev
->
pm
.
dpm
.
dyn_state
.
ppm_table
=
kzalloc
(
sizeof
(
struct
radeon_ppm_table
),
GFP_KERNEL
);
if
(
!
rdev
->
pm
.
dpm
.
dyn_state
.
ppm_table
)
{
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_sclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddci_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
mvdd_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
cac_leakage_table
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vce_clock_voltage_dependency_table
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
uvd_clock_voltage_dependency_table
.
entries
);
r600_free_extended_power_table
(
rdev
);
return
-
ENOMEM
;
}
rdev
->
pm
.
dpm
.
dyn_state
.
ppm_table
->
ppm_design
=
ppm
->
ucPpmDesign
;
...
...
@@ -1111,14 +1090,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev)
rdev
->
pm
.
dpm
.
dyn_state
.
cac_tdp_table
=
kzalloc
(
sizeof
(
struct
radeon_cac_tdp_table
),
GFP_KERNEL
);
if
(
!
rdev
->
pm
.
dpm
.
dyn_state
.
cac_tdp_table
)
{
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_sclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddci_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vddc_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
mvdd_dependency_on_mclk
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
cac_leakage_table
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
ppm_table
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
vce_clock_voltage_dependency_table
.
entries
);
kfree
(
rdev
->
pm
.
dpm
.
dyn_state
.
uvd_clock_voltage_dependency_table
.
entries
);
r600_free_extended_power_table
(
rdev
);
return
-
ENOMEM
;
}
if
(
rev
>
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录