Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
f50c8054
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看板
提交
f50c8054
编写于
4月 24, 2013
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nv50-/fifo: use parent as self for subobjects
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
a3e6789a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
25 deletion
+31
-25
drivers/gpu/drm/nouveau/core/engine/fifo/nv50.c
drivers/gpu/drm/nouveau/core/engine/fifo/nv50.c
+10
-8
drivers/gpu/drm/nouveau/core/engine/fifo/nv84.c
drivers/gpu/drm/nouveau/core/engine/fifo/nv84.c
+12
-10
drivers/gpu/drm/nouveau/core/engine/fifo/nvc0.c
drivers/gpu/drm/nouveau/core/engine/fifo/nvc0.c
+5
-4
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
+4
-3
未找到文件。
drivers/gpu/drm/nouveau/core/engine/fifo/nv50.c
浏览文件 @
f50c8054
...
...
@@ -210,7 +210,8 @@ nv50_fifo_chan_ctor_dma(struct nouveau_object *parent,
nv_parent
(
chan
)
->
object_attach
=
nv50_fifo_object_attach
;
nv_parent
(
chan
)
->
object_detach
=
nv50_fifo_object_detach
;
ret
=
nouveau_ramht_new
(
parent
,
parent
,
0x8000
,
16
,
&
chan
->
ramht
);
ret
=
nouveau_ramht_new
(
nv_object
(
chan
),
nv_object
(
chan
),
0x8000
,
16
,
&
chan
->
ramht
);
if
(
ret
)
return
ret
;
...
...
@@ -263,7 +264,8 @@ nv50_fifo_chan_ctor_ind(struct nouveau_object *parent,
nv_parent
(
chan
)
->
object_attach
=
nv50_fifo_object_attach
;
nv_parent
(
chan
)
->
object_detach
=
nv50_fifo_object_detach
;
ret
=
nouveau_ramht_new
(
parent
,
parent
,
0x8000
,
16
,
&
chan
->
ramht
);
ret
=
nouveau_ramht_new
(
nv_object
(
chan
),
nv_object
(
chan
),
0x8000
,
16
,
&
chan
->
ramht
);
if
(
ret
)
return
ret
;
...
...
@@ -373,17 +375,17 @@ nv50_fifo_context_ctor(struct nouveau_object *parent,
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
nv_object
(
base
),
0x0200
,
0x10
00
,
NVOBJ_FLAG_ZERO_ALLOC
,
&
base
->
ramfc
);
ret
=
nouveau_gpuobj_new
(
nv_object
(
base
),
nv_object
(
base
),
0x02
00
,
0x1000
,
NVOBJ_FLAG_ZERO_ALLOC
,
&
base
->
ramfc
);
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
nv_object
(
base
),
0x1200
,
0
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
base
)
,
nv_object
(
base
),
0x1200
,
0
,
NVOBJ_FLAG_ZERO_ALLOC
,
&
base
->
eng
);
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
nv_object
(
base
),
0x4000
,
0
,
0
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
base
)
,
nv_object
(
base
),
0x4000
,
0
,
0
,
&
base
->
pgd
);
if
(
ret
)
return
ret
;
...
...
@@ -437,12 +439,12 @@ nv50_fifo_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
128
*
4
,
0x1000
,
0
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
)
,
NULL
,
128
*
4
,
0x1000
,
0
,
&
priv
->
playlist
[
0
]);
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
128
*
4
,
0x1000
,
0
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
)
,
NULL
,
128
*
4
,
0x1000
,
0
,
&
priv
->
playlist
[
1
]);
if
(
ret
)
return
ret
;
...
...
drivers/gpu/drm/nouveau/core/engine/fifo/nv84.c
浏览文件 @
f50c8054
...
...
@@ -180,7 +180,8 @@ nv84_fifo_chan_ctor_dma(struct nouveau_object *parent,
if
(
ret
)
return
ret
;
ret
=
nouveau_ramht_new
(
parent
,
parent
,
0x8000
,
16
,
&
chan
->
ramht
);
ret
=
nouveau_ramht_new
(
nv_object
(
chan
),
nv_object
(
chan
),
0x8000
,
16
,
&
chan
->
ramht
);
if
(
ret
)
return
ret
;
...
...
@@ -242,7 +243,8 @@ nv84_fifo_chan_ctor_ind(struct nouveau_object *parent,
if
(
ret
)
return
ret
;
ret
=
nouveau_ramht_new
(
parent
,
parent
,
0x8000
,
16
,
&
chan
->
ramht
);
ret
=
nouveau_ramht_new
(
nv_object
(
chan
),
nv_object
(
chan
),
0x8000
,
16
,
&
chan
->
ramht
);
if
(
ret
)
return
ret
;
...
...
@@ -336,12 +338,12 @@ nv84_fifo_context_ctor(struct nouveau_object *parent,
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
nv_object
(
base
),
0x0200
,
0
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
base
)
,
nv_object
(
base
),
0x0200
,
0
,
NVOBJ_FLAG_ZERO_ALLOC
,
&
base
->
eng
);
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
nv_object
(
base
),
0x4000
,
0
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
base
)
,
nv_object
(
base
),
0x4000
,
0
,
0
,
&
base
->
pgd
);
if
(
ret
)
return
ret
;
...
...
@@ -350,13 +352,13 @@ nv84_fifo_context_ctor(struct nouveau_object *parent,
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
nv_object
(
base
),
0x1000
,
0x4
00
,
NVOBJ_FLAG_ZERO_ALLOC
,
&
base
->
cache
);
ret
=
nouveau_gpuobj_new
(
nv_object
(
base
),
nv_object
(
base
),
0x10
00
,
0x400
,
NVOBJ_FLAG_ZERO_ALLOC
,
&
base
->
cache
);
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
nv_object
(
base
),
0x0100
,
0x
100
,
NVOBJ_FLAG_ZERO_ALLOC
,
&
base
->
ramfc
);
ret
=
nouveau_gpuobj_new
(
nv_object
(
base
),
nv_object
(
base
),
0x0
100
,
0x100
,
NVOBJ_FLAG_ZERO_ALLOC
,
&
base
->
ramfc
);
if
(
ret
)
return
ret
;
...
...
@@ -407,12 +409,12 @@ nv84_fifo_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
128
*
4
,
0x1000
,
0
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
)
,
NULL
,
128
*
4
,
0x1000
,
0
,
&
priv
->
playlist
[
0
]);
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
128
*
4
,
0x1000
,
0
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
)
,
NULL
,
128
*
4
,
0x1000
,
0
,
&
priv
->
playlist
[
1
]);
if
(
ret
)
return
ret
;
...
...
drivers/gpu/drm/nouveau/core/engine/fifo/nvc0.c
浏览文件 @
f50c8054
...
...
@@ -292,7 +292,8 @@ nvc0_fifo_context_ctor(struct nouveau_object *parent,
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
0x10000
,
0x1000
,
0
,
&
base
->
pgd
);
ret
=
nouveau_gpuobj_new
(
nv_object
(
base
),
NULL
,
0x10000
,
0x1000
,
0
,
&
base
->
pgd
);
if
(
ret
)
return
ret
;
...
...
@@ -623,17 +624,17 @@ nvc0_fifo_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
0x1000
,
0x1000
,
0
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
)
,
NULL
,
0x1000
,
0x1000
,
0
,
&
priv
->
playlist
[
0
]);
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
0x1000
,
0x1000
,
0
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
)
,
NULL
,
0x1000
,
0x1000
,
0
,
&
priv
->
playlist
[
1
]);
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
128
*
0x1000
,
0x1000
,
0
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
)
,
NULL
,
128
*
0x1000
,
0x1000
,
0
,
&
priv
->
user
.
mem
);
if
(
ret
)
return
ret
;
...
...
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
浏览文件 @
f50c8054
...
...
@@ -96,7 +96,7 @@ nve0_fifo_playlist_update(struct nve0_fifo_priv *priv, u32 engine)
cur
=
engn
->
playlist
[
engn
->
cur_playlist
];
if
(
unlikely
(
cur
==
NULL
))
{
int
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
)
->
parent
,
NULL
,
int
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
),
NULL
,
0x8000
,
0x1000
,
0
,
&
cur
);
if
(
ret
)
{
nv_error
(
priv
,
"playlist alloc failed
\n
"
);
...
...
@@ -333,7 +333,8 @@ nve0_fifo_context_ctor(struct nouveau_object *parent,
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
0x10000
,
0x1000
,
0
,
&
base
->
pgd
);
ret
=
nouveau_gpuobj_new
(
nv_object
(
base
),
NULL
,
0x10000
,
0x1000
,
0
,
&
base
->
pgd
);
if
(
ret
)
return
ret
;
...
...
@@ -595,7 +596,7 @@ nve0_fifo_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
4096
*
0x200
,
0x1000
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
)
,
NULL
,
4096
*
0x200
,
0x1000
,
NVOBJ_FLAG_ZERO_ALLOC
,
&
priv
->
user
.
mem
);
if
(
ret
)
return
ret
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录