Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
af3082b3
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
af3082b3
编写于
8月 20, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/fifo: switch to new-style timer macros
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
3a020b4d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
21 addition
and
7 deletion
+21
-7
drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c
+4
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
+4
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
+4
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c
+5
-3
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c
+4
-1
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c
浏览文件 @
af3082b3
...
@@ -106,7 +106,10 @@ g84_fifo_context_detach(struct nvkm_object *parent, bool suspend,
...
@@ -106,7 +106,10 @@ g84_fifo_context_detach(struct nvkm_object *parent, bool suspend,
save
=
nvkm_mask
(
device
,
0x002520
,
0x0000003f
,
1
<<
engn
);
save
=
nvkm_mask
(
device
,
0x002520
,
0x0000003f
,
1
<<
engn
);
nvkm_wr32
(
device
,
0x0032fc
,
nv_gpuobj
(
base
)
->
addr
>>
12
);
nvkm_wr32
(
device
,
0x0032fc
,
nv_gpuobj
(
base
)
->
addr
>>
12
);
done
=
nv_wait_ne
(
fifo
,
0x0032fc
,
0xffffffff
,
0xffffffff
);
done
=
nvkm_msec
(
device
,
2000
,
if
(
nvkm_rd32
(
device
,
0x0032fc
)
!=
0xffffffff
)
break
;
)
>=
0
;
nvkm_wr32
(
device
,
0x002520
,
save
);
nvkm_wr32
(
device
,
0x002520
,
save
);
if
(
!
done
)
{
if
(
!
done
)
{
nv_error
(
fifo
,
"channel %d [%s] unload timeout
\n
"
,
nv_error
(
fifo
,
"channel %d [%s] unload timeout
\n
"
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
浏览文件 @
af3082b3
...
@@ -166,7 +166,10 @@ gf100_fifo_context_detach(struct nvkm_object *parent, bool suspend,
...
@@ -166,7 +166,10 @@ gf100_fifo_context_detach(struct nvkm_object *parent, bool suspend,
}
}
nvkm_wr32
(
device
,
0x002634
,
chan
->
base
.
chid
);
nvkm_wr32
(
device
,
0x002634
,
chan
->
base
.
chid
);
if
(
!
nv_wait
(
fifo
,
0x002634
,
0xffffffff
,
chan
->
base
.
chid
))
{
if
(
nvkm_msec
(
device
,
2000
,
if
(
nvkm_rd32
(
device
,
0x002634
)
==
chan
->
base
.
chid
)
break
;
)
<
0
)
{
nv_error
(
fifo
,
"channel %d [%s] kick timeout
\n
"
,
nv_error
(
fifo
,
"channel %d [%s] kick timeout
\n
"
,
chan
->
base
.
chid
,
nvkm_client_name
(
chan
));
chan
->
base
.
chid
,
nvkm_client_name
(
chan
));
if
(
suspend
)
if
(
suspend
)
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
浏览文件 @
af3082b3
...
@@ -174,7 +174,10 @@ gk104_fifo_chan_kick(struct gk104_fifo_chan *chan)
...
@@ -174,7 +174,10 @@ gk104_fifo_chan_kick(struct gk104_fifo_chan *chan)
struct
nvkm_device
*
device
=
fifo
->
base
.
engine
.
subdev
.
device
;
struct
nvkm_device
*
device
=
fifo
->
base
.
engine
.
subdev
.
device
;
nvkm_wr32
(
device
,
0x002634
,
chan
->
base
.
chid
);
nvkm_wr32
(
device
,
0x002634
,
chan
->
base
.
chid
);
if
(
!
nv_wait
(
fifo
,
0x002634
,
0x100000
,
0x000000
))
{
if
(
nvkm_msec
(
device
,
2000
,
if
(
!
(
nvkm_rd32
(
device
,
0x002634
)
&
0x00100000
))
break
;
)
<
0
)
{
nv_error
(
fifo
,
"channel %d [%s] kick timeout
\n
"
,
nv_error
(
fifo
,
"channel %d [%s] kick timeout
\n
"
,
chan
->
base
.
chid
,
nvkm_client_name
(
chan
));
chan
->
base
.
chid
,
nvkm_client_name
(
chan
));
return
-
EBUSY
;
return
-
EBUSY
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c
浏览文件 @
af3082b3
...
@@ -321,9 +321,11 @@ __acquires(fifo->base.lock)
...
@@ -321,9 +321,11 @@ __acquires(fifo->base.lock)
* to avoid this, we invalidate the most recently calculated
* to avoid this, we invalidate the most recently calculated
* instance.
* instance.
*/
*/
if
(
!
nv_wait
(
fifo
,
NV04_PFIFO_CACHE1_PULL0
,
nvkm_msec
(
device
,
2000
,
NV04_PFIFO_CACHE1_PULL0_HASH_BUSY
,
0x00000000
))
u32
tmp
=
nvkm_rd32
(
device
,
NV04_PFIFO_CACHE1_PULL0
);
nv_warn
(
fifo
,
"timeout idling puller
\n
"
);
if
(
!
(
tmp
&
NV04_PFIFO_CACHE1_PULL0_HASH_BUSY
))
break
;
);
if
(
nvkm_rd32
(
device
,
NV04_PFIFO_CACHE1_PULL0
)
&
if
(
nvkm_rd32
(
device
,
NV04_PFIFO_CACHE1_PULL0
)
&
NV04_PFIFO_CACHE1_PULL0_HASH_FAILED
)
NV04_PFIFO_CACHE1_PULL0_HASH_FAILED
)
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c
浏览文件 @
af3082b3
...
@@ -135,7 +135,10 @@ nv50_fifo_context_detach(struct nvkm_object *parent, bool suspend,
...
@@ -135,7 +135,10 @@ nv50_fifo_context_detach(struct nvkm_object *parent, bool suspend,
/* do the kickoff... */
/* do the kickoff... */
nvkm_wr32
(
device
,
0x0032fc
,
nv_gpuobj
(
base
)
->
addr
>>
12
);
nvkm_wr32
(
device
,
0x0032fc
,
nv_gpuobj
(
base
)
->
addr
>>
12
);
if
(
!
nv_wait_ne
(
fifo
,
0x0032fc
,
0xffffffff
,
0xffffffff
))
{
if
(
nvkm_msec
(
device
,
2000
,
if
(
nvkm_rd32
(
device
,
0x0032fc
)
!=
0xffffffff
)
break
;
)
<
0
)
{
nv_error
(
fifo
,
"channel %d [%s] unload timeout
\n
"
,
nv_error
(
fifo
,
"channel %d [%s] unload timeout
\n
"
,
chan
->
base
.
chid
,
nvkm_client_name
(
chan
));
chan
->
base
.
chid
,
nvkm_client_name
(
chan
));
if
(
suspend
)
if
(
suspend
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录