Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
4cbb0f8d
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看板
提交
4cbb0f8d
编写于
3月 12, 2012
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nvd0/disp: disconnect encoders before reprogramming them
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
3488c57b
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
33 addition
and
33 deletion
+33
-33
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+33
-33
未找到文件。
drivers/gpu/drm/nouveau/nvd0_display.c
浏览文件 @
4cbb0f8d
...
...
@@ -284,6 +284,8 @@ nvd0_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
u32
*
push
;
int
ret
;
evo_sync
(
crtc
->
dev
,
EVO_MASTER
);
swap_interval
<<=
4
;
if
(
swap_interval
==
0
)
swap_interval
|=
0x100
;
...
...
@@ -593,7 +595,7 @@ nvd0_crtc_commit(struct drm_crtc *crtc)
evo_kick
(
push
,
crtc
->
dev
,
EVO_MASTER
);
}
nvd0_crtc_cursor_show
(
nv_crtc
,
nv_crtc
->
cursor
.
visible
,
fals
e
);
nvd0_crtc_cursor_show
(
nv_crtc
,
nv_crtc
->
cursor
.
visible
,
tru
e
);
nvd0_display_flip_next
(
crtc
,
crtc
->
fb
,
NULL
,
1
);
}
...
...
@@ -947,11 +949,6 @@ nvd0_dac_mode_fixup(struct drm_encoder *encoder, struct drm_display_mode *mode,
return
true
;
}
static
void
nvd0_dac_prepare
(
struct
drm_encoder
*
encoder
)
{
}
static
void
nvd0_dac_commit
(
struct
drm_encoder
*
encoder
)
{
...
...
@@ -1045,7 +1042,7 @@ nvd0_dac_destroy(struct drm_encoder *encoder)
static
const
struct
drm_encoder_helper_funcs
nvd0_dac_hfunc
=
{
.
dpms
=
nvd0_dac_dpms
,
.
mode_fixup
=
nvd0_dac_mode_fixup
,
.
prepare
=
nvd0_dac_
prepare
,
.
prepare
=
nvd0_dac_
disconnect
,
.
commit
=
nvd0_dac_commit
,
.
mode_set
=
nvd0_dac_mode_set
,
.
disable
=
nvd0_dac_disconnect
,
...
...
@@ -1385,9 +1382,38 @@ nvd0_sor_mode_fixup(struct drm_encoder *encoder, struct drm_display_mode *mode,
return
true
;
}
static
void
nvd0_sor_disconnect
(
struct
drm_encoder
*
encoder
)
{
struct
nouveau_encoder
*
nv_encoder
=
nouveau_encoder
(
encoder
);
struct
drm_device
*
dev
=
encoder
->
dev
;
u32
*
push
;
if
(
nv_encoder
->
crtc
)
{
nvd0_crtc_prepare
(
nv_encoder
->
crtc
);
push
=
evo_wait
(
dev
,
EVO_MASTER
,
4
);
if
(
push
)
{
evo_mthd
(
push
,
0x0200
+
(
nv_encoder
->
or
*
0x20
),
1
);
evo_data
(
push
,
0x00000000
);
evo_mthd
(
push
,
0x0080
,
1
);
evo_data
(
push
,
0x00000000
);
evo_kick
(
push
,
dev
,
EVO_MASTER
);
}
nvd0_hdmi_disconnect
(
encoder
);
nv_encoder
->
crtc
=
NULL
;
nv_encoder
->
last_dpms
=
DRM_MODE_DPMS_OFF
;
}
}
static
void
nvd0_sor_prepare
(
struct
drm_encoder
*
encoder
)
{
nvd0_sor_disconnect
(
encoder
);
if
(
nouveau_encoder
(
encoder
)
->
dcb
->
type
==
OUTPUT_DP
)
evo_sync
(
encoder
->
dev
,
EVO_MASTER
);
}
static
void
...
...
@@ -1508,32 +1534,6 @@ nvd0_sor_mode_set(struct drm_encoder *encoder, struct drm_display_mode *umode,
nv_encoder
->
crtc
=
encoder
->
crtc
;
}
static
void
nvd0_sor_disconnect
(
struct
drm_encoder
*
encoder
)
{
struct
nouveau_encoder
*
nv_encoder
=
nouveau_encoder
(
encoder
);
struct
drm_device
*
dev
=
encoder
->
dev
;
u32
*
push
;
if
(
nv_encoder
->
crtc
)
{
nvd0_crtc_prepare
(
nv_encoder
->
crtc
);
push
=
evo_wait
(
dev
,
EVO_MASTER
,
4
);
if
(
push
)
{
evo_mthd
(
push
,
0x0200
+
(
nv_encoder
->
or
*
0x20
),
1
);
evo_data
(
push
,
0x00000000
);
evo_mthd
(
push
,
0x0080
,
1
);
evo_data
(
push
,
0x00000000
);
evo_kick
(
push
,
dev
,
EVO_MASTER
);
}
nvd0_hdmi_disconnect
(
encoder
);
nv_encoder
->
crtc
=
NULL
;
nv_encoder
->
last_dpms
=
DRM_MODE_DPMS_OFF
;
}
}
static
void
nvd0_sor_destroy
(
struct
drm_encoder
*
encoder
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录