Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
b62d628b
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看板
提交
b62d628b
编写于
8月 20, 2013
作者:
A
Alex Deucher
提交者:
Christian König
2月 18, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/radeon/dpm: fill in some initial vce infrastructure
Signed-off-by:
N
Alex Deucher
<
alexander.deucher@amd.com
>
上级
82f79cc5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
0 deletion
+20
-0
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon.h
+12
-0
drivers/gpu/drm/radeon/radeon_pm.c
drivers/gpu/drm/radeon/radeon_pm.c
+8
-0
未找到文件。
drivers/gpu/drm/radeon/radeon.h
浏览文件 @
b62d628b
...
...
@@ -1259,6 +1259,15 @@ enum radeon_dpm_event_src {
RADEON_DPM_EVENT_SRC_DIGIAL_OR_EXTERNAL
=
4
};
enum
radeon_vce_level
{
RADEON_VCE_LEVEL_AC_ALL
=
0
,
/* AC, All cases */
RADEON_VCE_LEVEL_DC_EE
=
1
,
/* DC, entropy encoding */
RADEON_VCE_LEVEL_DC_LL_LOW
=
2
,
/* DC, low latency queue, res <= 720 */
RADEON_VCE_LEVEL_DC_LL_HIGH
=
3
,
/* DC, low latency queue, 1080 >= res > 720 */
RADEON_VCE_LEVEL_DC_GP_LOW
=
4
,
/* DC, general purpose queue, res <= 720 */
RADEON_VCE_LEVEL_DC_GP_HIGH
=
5
,
/* DC, general purpose queue, 1080 >= res > 720 */
};
struct
radeon_ps
{
u32
caps
;
/* vbios flags */
u32
class
;
/* vbios flags */
...
...
@@ -1269,6 +1278,8 @@ struct radeon_ps {
/* VCE clocks */
u32
evclk
;
u32
ecclk
;
bool
vce_active
;
enum
radeon_vce_level
vce_level
;
/* asic priv */
void
*
ps_priv
;
};
...
...
@@ -1480,6 +1491,7 @@ struct radeon_dpm {
/* special states active */
bool
thermal_active
;
bool
uvd_active
;
bool
vce_active
;
/* thermal handling */
struct
radeon_dpm_thermal
thermal
;
/* forced levels */
...
...
drivers/gpu/drm/radeon/radeon_pm.c
浏览文件 @
b62d628b
...
...
@@ -826,6 +826,9 @@ static void radeon_dpm_change_power_state_locked(struct radeon_device *rdev)
/* no need to reprogram if nothing changed unless we are on BTC+ */
if
(
rdev
->
pm
.
dpm
.
current_ps
==
rdev
->
pm
.
dpm
.
requested_ps
)
{
/* vce just modifies an existing state so force a change */
if
(
ps
->
vce_active
!=
rdev
->
pm
.
dpm
.
vce_active
)
goto
force
;
if
((
rdev
->
family
<
CHIP_BARTS
)
||
(
rdev
->
flags
&
RADEON_IS_IGP
))
{
/* for pre-BTC and APUs if the num crtcs changed but state is the same,
* all we need to do is update the display configuration.
...
...
@@ -862,16 +865,21 @@ static void radeon_dpm_change_power_state_locked(struct radeon_device *rdev)
}
}
force:
if
(
radeon_dpm
==
1
)
{
printk
(
"switching from power state:
\n
"
);
radeon_dpm_print_power_state
(
rdev
,
rdev
->
pm
.
dpm
.
current_ps
);
printk
(
"switching to power state:
\n
"
);
radeon_dpm_print_power_state
(
rdev
,
rdev
->
pm
.
dpm
.
requested_ps
);
}
mutex_lock
(
&
rdev
->
ddev
->
struct_mutex
);
down_write
(
&
rdev
->
pm
.
mclk_lock
);
mutex_lock
(
&
rdev
->
ring_lock
);
/* update whether vce is active */
ps
->
vce_active
=
rdev
->
pm
.
dpm
.
vce_active
;
ret
=
radeon_dpm_pre_set_power_state
(
rdev
);
if
(
ret
)
goto
done
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录