Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
e6e039d1
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看板
提交
e6e039d1
编写于
10月 14, 2011
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nv50/disp: move sync routine to where it can be used by other modules
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
a4eaa0a0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
37 addition
and
37 deletion
+37
-37
drivers/gpu/drm/nouveau/nv50_crtc.c
drivers/gpu/drm/nouveau/nv50_crtc.c
+4
-37
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_display.c
+32
-0
drivers/gpu/drm/nouveau/nv50_display.h
drivers/gpu/drm/nouveau/nv50_display.h
+1
-0
未找到文件。
drivers/gpu/drm/nouveau/nv50_crtc.c
浏览文件 @
e6e039d1
...
...
@@ -38,39 +38,6 @@
#include "nouveau_connector.h"
#include "nv50_display.h"
static
int
nv50_crtc_wait_complete
(
struct
drm_crtc
*
crtc
)
{
struct
drm_device
*
dev
=
crtc
->
dev
;
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
nouveau_timer_engine
*
ptimer
=
&
dev_priv
->
engine
.
timer
;
struct
nv50_display
*
disp
=
nv50_display
(
dev
);
struct
nouveau_channel
*
evo
=
disp
->
master
;
u64
start
;
int
ret
;
ret
=
RING_SPACE
(
evo
,
6
);
if
(
ret
)
return
ret
;
BEGIN_RING
(
evo
,
0
,
0x0084
,
1
);
OUT_RING
(
evo
,
0x80000000
);
BEGIN_RING
(
evo
,
0
,
0x0080
,
1
);
OUT_RING
(
evo
,
0
);
BEGIN_RING
(
evo
,
0
,
0x0084
,
1
);
OUT_RING
(
evo
,
0x00000000
);
nv_wo32
(
disp
->
ntfy
,
0x000
,
0x00000000
);
FIRE_RING
(
evo
);
start
=
ptimer
->
read
(
dev
);
do
{
if
(
nv_ro32
(
disp
->
ntfy
,
0x000
))
return
0
;
}
while
(
ptimer
->
read
(
dev
)
-
start
<
2000000000ULL
);
return
-
EBUSY
;
}
static
void
nv50_crtc_lut_load
(
struct
drm_crtc
*
crtc
)
{
...
...
@@ -303,7 +270,7 @@ nv50_crtc_set_scale(struct nouveau_crtc *nv_crtc, int scaling_mode, bool update)
if
(
update
)
{
nv50_display_flip_stop
(
crtc
);
nv50_
crtc_wait_complete
(
crtc
);
nv50_
display_sync
(
dev
);
nv50_display_flip_next
(
crtc
,
crtc
->
fb
,
NULL
);
}
...
...
@@ -515,7 +482,7 @@ nv50_crtc_commit(struct drm_crtc *crtc)
nv50_crtc_blank
(
nv_crtc
,
false
);
drm_vblank_post_modeset
(
dev
,
nv_crtc
->
index
);
nv50_
crtc_wait_complete
(
crtc
);
nv50_
display_sync
(
dev
);
nv50_display_flip_next
(
crtc
,
crtc
->
fb
,
NULL
);
}
...
...
@@ -710,7 +677,7 @@ nv50_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
if
(
ret
)
return
ret
;
ret
=
nv50_
crtc_wait_complete
(
crtc
);
ret
=
nv50_
display_sync
(
crtc
->
dev
);
if
(
ret
)
return
ret
;
...
...
@@ -729,7 +696,7 @@ nv50_crtc_mode_set_base_atomic(struct drm_crtc *crtc,
if
(
ret
)
return
ret
;
return
nv50_
crtc_wait_complete
(
crtc
);
return
nv50_
display_sync
(
crtc
->
dev
);
}
static
const
struct
drm_crtc_helper_funcs
nv50_crtc_helper_funcs
=
{
...
...
drivers/gpu/drm/nouveau/nv50_display.c
浏览文件 @
e6e039d1
...
...
@@ -61,6 +61,38 @@ nv50_display_late_takedown(struct drm_device *dev)
{
}
int
nv50_display_sync
(
struct
drm_device
*
dev
)
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
nouveau_timer_engine
*
ptimer
=
&
dev_priv
->
engine
.
timer
;
struct
nv50_display
*
disp
=
nv50_display
(
dev
);
struct
nouveau_channel
*
evo
=
disp
->
master
;
u64
start
;
int
ret
;
ret
=
RING_SPACE
(
evo
,
6
);
if
(
ret
==
0
)
{
BEGIN_RING
(
evo
,
0
,
0x0084
,
1
);
OUT_RING
(
evo
,
0x80000000
);
BEGIN_RING
(
evo
,
0
,
0x0080
,
1
);
OUT_RING
(
evo
,
0
);
BEGIN_RING
(
evo
,
0
,
0x0084
,
1
);
OUT_RING
(
evo
,
0x00000000
);
nv_wo32
(
disp
->
ntfy
,
0x000
,
0x00000000
);
FIRE_RING
(
evo
);
start
=
ptimer
->
read
(
dev
);
do
{
if
(
nv_ro32
(
disp
->
ntfy
,
0x000
))
return
0
;
}
while
(
ptimer
->
read
(
dev
)
-
start
<
2000000000ULL
);
}
return
-
EBUSY
;
}
int
nv50_display_init
(
struct
drm_device
*
dev
)
{
...
...
drivers/gpu/drm/nouveau/nv50_display.h
浏览文件 @
e6e039d1
...
...
@@ -73,6 +73,7 @@ void nv50_display_destroy(struct drm_device *dev);
int
nv50_crtc_blank
(
struct
nouveau_crtc
*
,
bool
blank
);
int
nv50_crtc_set_clock
(
struct
drm_device
*
,
int
head
,
int
pclk
);
int
nv50_display_sync
(
struct
drm_device
*
);
int
nv50_display_flip_next
(
struct
drm_crtc
*
,
struct
drm_framebuffer
*
,
struct
nouveau_channel
*
chan
);
void
nv50_display_flip_stop
(
struct
drm_crtc
*
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录