Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
617a6cbd
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看板
提交
617a6cbd
编写于
4月 24, 2013
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nvc0-/gr: use self as parent for subobjects
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
1409d90f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
9 deletion
+13
-9
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
+1
-2
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
+8
-5
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
+4
-2
未找到文件。
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
浏览文件 @
617a6cbd
...
...
@@ -36,7 +36,6 @@ int
nvc0_grctx_init
(
struct
nvc0_graph_priv
*
priv
,
struct
nvc0_grctx
*
info
)
{
struct
nouveau_bar
*
bar
=
nouveau_bar
(
priv
);
struct
nouveau_object
*
parent
=
nv_object
(
priv
);
struct
nouveau_gpuobj
*
chan
;
u32
size
=
(
0x80000
+
priv
->
size
+
4095
)
&
~
4095
;
int
ret
,
i
;
...
...
@@ -44,7 +43,7 @@ nvc0_grctx_init(struct nvc0_graph_priv *priv, struct nvc0_grctx *info)
/* allocate memory to for a "channel", which we'll use to generate
* the default context values
*/
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
size
,
0x1000
,
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
)
,
NULL
,
size
,
0x1000
,
NVOBJ_FLAG_ZERO_ALLOC
,
&
info
->
chan
);
chan
=
info
->
chan
;
if
(
ret
)
{
...
...
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
浏览文件 @
617a6cbd
...
...
@@ -102,7 +102,8 @@ nvc0_graph_context_ctor(struct nouveau_object *parent,
* fuc to modify some per-context register settings on first load
* of the context.
*/
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
0x1000
,
0x100
,
0
,
&
chan
->
mmio
);
ret
=
nouveau_gpuobj_new
(
nv_object
(
chan
),
NULL
,
0x1000
,
0x100
,
0
,
&
chan
->
mmio
);
if
(
ret
)
return
ret
;
...
...
@@ -114,8 +115,8 @@ nvc0_graph_context_ctor(struct nouveau_object *parent,
/* allocate buffers referenced by mmio list */
for
(
i
=
0
;
data
->
size
&&
i
<
ARRAY_SIZE
(
priv
->
mmio_data
);
i
++
)
{
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
data
->
size
,
data
->
align
,
0
,
&
chan
->
data
[
i
].
mem
);
ret
=
nouveau_gpuobj_new
(
nv_object
(
chan
),
NULL
,
data
->
size
,
data
->
align
,
0
,
&
chan
->
data
[
i
].
mem
);
if
(
ret
)
return
ret
;
...
...
@@ -567,11 +568,13 @@ nvc0_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
break
;
}
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
0x1000
,
256
,
0
,
&
priv
->
unk4188b4
);
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
),
NULL
,
0x1000
,
256
,
0
,
&
priv
->
unk4188b4
);
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
0x1000
,
256
,
0
,
&
priv
->
unk4188b8
);
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
),
NULL
,
0x1000
,
256
,
0
,
&
priv
->
unk4188b8
);
if
(
ret
)
return
ret
;
...
...
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
浏览文件 @
617a6cbd
...
...
@@ -451,11 +451,13 @@ nve0_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
firmware
=
true
;
}
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
0x1000
,
256
,
0
,
&
priv
->
unk4188b4
);
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
),
NULL
,
0x1000
,
256
,
0
,
&
priv
->
unk4188b4
);
if
(
ret
)
return
ret
;
ret
=
nouveau_gpuobj_new
(
parent
,
NULL
,
0x1000
,
256
,
0
,
&
priv
->
unk4188b8
);
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
),
NULL
,
0x1000
,
256
,
0
,
&
priv
->
unk4188b8
);
if
(
ret
)
return
ret
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录