Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
bc3b0c7a
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
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看板
提交
bc3b0c7a
编写于
11月 01, 2017
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau: remove unused sysmem fence code
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
e75c091b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
2 addition
and
42 deletion
+2
-42
drivers/gpu/drm/nouveau/nouveau_fence.c
drivers/gpu/drm/nouveau/nouveau_fence.c
+0
-2
drivers/gpu/drm/nouveau/nouveau_fence.h
drivers/gpu/drm/nouveau/nouveau_fence.h
+0
-4
drivers/gpu/drm/nouveau/nv84_fence.c
drivers/gpu/drm/nouveau/nv84_fence.c
+2
-36
未找到文件。
drivers/gpu/drm/nouveau/nouveau_fence.c
浏览文件 @
bc3b0c7a
...
...
@@ -474,8 +474,6 @@ nouveau_fence_new(struct nouveau_channel *chan, bool sysmem,
if
(
!
fence
)
return
-
ENOMEM
;
fence
->
sysmem
=
sysmem
;
ret
=
nouveau_fence_emit
(
fence
,
chan
);
if
(
ret
)
nouveau_fence_unref
(
&
fence
);
...
...
drivers/gpu/drm/nouveau/nouveau_fence.h
浏览文件 @
bc3b0c7a
...
...
@@ -12,8 +12,6 @@ struct nouveau_fence {
struct
list_head
head
;
bool
sysmem
;
struct
nouveau_channel
__rcu
*
channel
;
unsigned
long
timeout
;
};
...
...
@@ -91,13 +89,11 @@ int nouveau_flip_complete(struct nvif_notify *);
struct
nv84_fence_chan
{
struct
nouveau_fence_chan
base
;
struct
nvkm_vma
vma
;
struct
nvkm_vma
vma_gart
;
};
struct
nv84_fence_priv
{
struct
nouveau_fence_priv
base
;
struct
nouveau_bo
*
bo
;
struct
nouveau_bo
*
bo_gart
;
u32
*
suspend
;
struct
mutex
mutex
;
};
...
...
drivers/gpu/drm/nouveau/nv84_fence.c
浏览文件 @
bc3b0c7a
...
...
@@ -68,12 +68,7 @@ nv84_fence_emit(struct nouveau_fence *fence)
{
struct
nouveau_channel
*
chan
=
fence
->
channel
;
struct
nv84_fence_chan
*
fctx
=
chan
->
fence
;
u64
addr
=
chan
->
chid
*
16
;
if
(
fence
->
sysmem
)
addr
+=
fctx
->
vma_gart
.
offset
;
else
addr
+=
fctx
->
vma
.
offset
;
u64
addr
=
fctx
->
vma
.
offset
+
chan
->
chid
*
16
;
return
fctx
->
base
.
emit32
(
chan
,
addr
,
fence
->
base
.
seqno
);
}
...
...
@@ -83,12 +78,7 @@ nv84_fence_sync(struct nouveau_fence *fence,
struct
nouveau_channel
*
prev
,
struct
nouveau_channel
*
chan
)
{
struct
nv84_fence_chan
*
fctx
=
chan
->
fence
;
u64
addr
=
prev
->
chid
*
16
;
if
(
fence
->
sysmem
)
addr
+=
fctx
->
vma_gart
.
offset
;
else
addr
+=
fctx
->
vma
.
offset
;
u64
addr
=
fctx
->
vma
.
offset
+
prev
->
chid
*
16
;
return
fctx
->
base
.
sync32
(
chan
,
addr
,
fence
->
base
.
seqno
);
}
...
...
@@ -108,7 +98,6 @@ nv84_fence_context_del(struct nouveau_channel *chan)
nouveau_bo_wr32
(
priv
->
bo
,
chan
->
chid
*
16
/
4
,
fctx
->
base
.
sequence
);
mutex_lock
(
&
priv
->
mutex
);
nouveau_bo_vma_del
(
priv
->
bo
,
&
fctx
->
vma_gart
);
nouveau_bo_vma_del
(
priv
->
bo
,
&
fctx
->
vma
);
mutex_unlock
(
&
priv
->
mutex
);
nouveau_fence_context_del
(
&
fctx
->
base
);
...
...
@@ -138,10 +127,6 @@ nv84_fence_context_new(struct nouveau_channel *chan)
mutex_lock
(
&
priv
->
mutex
);
ret
=
nouveau_bo_vma_add
(
priv
->
bo
,
cli
->
vm
,
&
fctx
->
vma
);
if
(
ret
==
0
)
{
ret
=
nouveau_bo_vma_add
(
priv
->
bo_gart
,
cli
->
vm
,
&
fctx
->
vma_gart
);
}
mutex_unlock
(
&
priv
->
mutex
);
if
(
ret
)
...
...
@@ -182,10 +167,6 @@ static void
nv84_fence_destroy
(
struct
nouveau_drm
*
drm
)
{
struct
nv84_fence_priv
*
priv
=
drm
->
fence
;
nouveau_bo_unmap
(
priv
->
bo_gart
);
if
(
priv
->
bo_gart
)
nouveau_bo_unpin
(
priv
->
bo_gart
);
nouveau_bo_ref
(
NULL
,
&
priv
->
bo_gart
);
nouveau_bo_unmap
(
priv
->
bo
);
if
(
priv
->
bo
)
nouveau_bo_unpin
(
priv
->
bo
);
...
...
@@ -238,21 +219,6 @@ nv84_fence_create(struct nouveau_drm *drm)
nouveau_bo_ref
(
NULL
,
&
priv
->
bo
);
}
if
(
ret
==
0
)
ret
=
nouveau_bo_new
(
&
drm
->
client
,
16
*
priv
->
base
.
contexts
,
0
,
TTM_PL_FLAG_TT
|
TTM_PL_FLAG_UNCACHED
,
0
,
0
,
NULL
,
NULL
,
&
priv
->
bo_gart
);
if
(
ret
==
0
)
{
ret
=
nouveau_bo_pin
(
priv
->
bo_gart
,
TTM_PL_FLAG_TT
,
false
);
if
(
ret
==
0
)
{
ret
=
nouveau_bo_map
(
priv
->
bo_gart
);
if
(
ret
)
nouveau_bo_unpin
(
priv
->
bo_gart
);
}
if
(
ret
)
nouveau_bo_ref
(
NULL
,
&
priv
->
bo_gart
);
}
if
(
ret
)
nv84_fence_destroy
(
drm
);
return
ret
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录