Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
70f824ac
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看板
提交
70f824ac
编写于
7月 01, 2013
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nvc0-/gr: tpc regs a subset of gpc, add separate list for gpc/unk regs
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
5ee86c41
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
52 addition
and
34 deletion
+52
-34
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
+6
-7
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc1.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc1.c
+3
-3
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc3.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc3.c
+10
-3
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc8.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc8.c
+10
-3
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd9.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd9.c
+3
-3
drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c
+10
-7
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvf0.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvf0.c
+8
-4
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.h
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.h
+2
-4
未找到文件。
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
浏览文件 @
70f824ac
...
...
@@ -1047,11 +1047,10 @@ nvc0_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info)
nv_mask
(
priv
,
0x000260
,
0x00000001
,
0x00000000
);
for
(
i
=
0
;
oclass
->
mmio
[
i
];
i
++
)
nvc0_graph_mmio
(
priv
,
oclass
->
mmio
[
i
]);
for
(
i
=
0
;
oclass
->
hub
[
i
];
i
++
)
nvc0_graph_mmio
(
priv
,
oclass
->
hub
[
i
]);
for
(
i
=
0
;
oclass
->
gpc
[
i
];
i
++
)
nvc0_graph_mmio
(
priv
,
oclass
->
gpc
[
i
]);
nvc0_graph_mmio
(
priv
,
oclass
->
tpc
);
nv_wr32
(
priv
,
0x404154
,
0x00000000
);
...
...
@@ -1179,7 +1178,7 @@ nvc0_grctx_generate(struct nvc0_graph_priv *priv)
}
struct
nvc0_graph_init
*
nvc0_grctx_init_
mmio
[]
=
{
nvc0_grctx_init_
hub
[]
=
{
nvc0_grctx_init_base
,
nvc0_grctx_init_unk40xx
,
nvc0_grctx_init_unk44xx
,
...
...
@@ -1194,10 +1193,11 @@ nvc0_grctx_init_mmio[] = {
NULL
};
struct
nvc0_graph_init
*
st
atic
st
ruct
nvc0_graph_init
*
nvc0_grctx_init_gpc
[]
=
{
nvc0_grctx_init_gpc_0
,
nvc0_grctx_init_gpc_1
,
nvc0_grctx_init_tpc
,
NULL
};
...
...
@@ -1230,9 +1230,8 @@ nvc0_grctx_oclass = &(struct nvc0_grctx_oclass) {
},
.
main
=
nvc0_grctx_generate_main
,
.
mods
=
nvc0_grctx_generate_mods
,
.
mmio
=
nvc0_grctx_init_mmio
,
.
hub
=
nvc0_grctx_init_hub
,
.
gpc
=
nvc0_grctx_init_gpc
,
.
tpc
=
nvc0_grctx_init_tpc
,
.
icmd
=
nvc0_grctx_init_icmd
,
.
mthd
=
nvc0_grctx_init_mthd
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc1.c
浏览文件 @
70f824ac
...
...
@@ -757,7 +757,7 @@ nvc1_grctx_generate_mods(struct nvc0_graph_priv *priv, struct nvc0_grctx *info)
}
static
struct
nvc0_graph_init
*
nvc1_grctx_init_
mmio
[]
=
{
nvc1_grctx_init_
hub
[]
=
{
nvc0_grctx_init_base
,
nvc0_grctx_init_unk40xx
,
nvc0_grctx_init_unk44xx
,
...
...
@@ -776,6 +776,7 @@ struct nvc0_graph_init *
nvc1_grctx_init_gpc
[]
=
{
nvc1_grctx_init_gpc_0
,
nvc0_grctx_init_gpc_1
,
nvc1_grctx_init_tpc
,
NULL
};
...
...
@@ -803,9 +804,8 @@ nvc1_grctx_oclass = &(struct nvc0_grctx_oclass) {
},
.
main
=
nvc0_grctx_generate_main
,
.
mods
=
nvc1_grctx_generate_mods
,
.
mmio
=
nvc1_grctx_init_mmio
,
.
hub
=
nvc1_grctx_init_hub
,
.
gpc
=
nvc1_grctx_init_gpc
,
.
tpc
=
nvc1_grctx_init_tpc
,
.
icmd
=
nvc1_grctx_init_icmd
,
.
mthd
=
nvc1_grctx_init_mthd
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc3.c
浏览文件 @
70f824ac
...
...
@@ -70,6 +70,14 @@ nvc3_grctx_init_tpc[] = {
{}
};
struct
nvc0_graph_init
*
nvc3_grctx_init_gpc
[]
=
{
nvc0_grctx_init_gpc_0
,
nvc0_grctx_init_gpc_1
,
nvc3_grctx_init_tpc
,
NULL
};
struct
nouveau_oclass
*
nvc3_grctx_oclass
=
&
(
struct
nvc0_grctx_oclass
)
{
.
base
.
handle
=
NV_ENGCTX
(
GR
,
0xc3
),
...
...
@@ -83,9 +91,8 @@ nvc3_grctx_oclass = &(struct nvc0_grctx_oclass) {
},
.
main
=
nvc0_grctx_generate_main
,
.
mods
=
nvc0_grctx_generate_mods
,
.
mmio
=
nvc0_grctx_init_mmio
,
.
gpc
=
nvc0_grctx_init_gpc
,
.
tpc
=
nvc3_grctx_init_tpc
,
.
hub
=
nvc0_grctx_init_hub
,
.
gpc
=
nvc3_grctx_init_gpc
,
.
icmd
=
nvc0_grctx_init_icmd
,
.
mthd
=
nvc0_grctx_init_mthd
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc8.c
浏览文件 @
70f824ac
...
...
@@ -341,6 +341,14 @@ nvc8_grctx_init_mthd[] = {
{}
};
static
struct
nvc0_graph_init
*
nvc8_grctx_init_gpc
[]
=
{
nvc0_grctx_init_gpc_0
,
nvc0_grctx_init_gpc_1
,
nvc8_grctx_init_tpc
,
NULL
};
struct
nouveau_oclass
*
nvc8_grctx_oclass
=
&
(
struct
nvc0_grctx_oclass
)
{
.
base
.
handle
=
NV_ENGCTX
(
GR
,
0xc8
),
...
...
@@ -354,9 +362,8 @@ nvc8_grctx_oclass = &(struct nvc0_grctx_oclass) {
},
.
main
=
nvc0_grctx_generate_main
,
.
mods
=
nvc0_grctx_generate_mods
,
.
mmio
=
nvc0_grctx_init_mmio
,
.
gpc
=
nvc0_grctx_init_gpc
,
.
tpc
=
nvc8_grctx_init_tpc
,
.
hub
=
nvc0_grctx_init_hub
,
.
gpc
=
nvc8_grctx_init_gpc
,
.
icmd
=
nvc8_grctx_init_icmd
,
.
mthd
=
nvc8_grctx_init_mthd
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd9.c
浏览文件 @
70f824ac
...
...
@@ -454,7 +454,7 @@ nvd9_grctx_init_tpc[] = {
};
static
struct
nvc0_graph_init
*
nvd9_grctx_init_
mmio
[]
=
{
nvd9_grctx_init_
hub
[]
=
{
nvc0_grctx_init_base
,
nvd9_grctx_init_unk40xx
,
nvc0_grctx_init_unk44xx
,
...
...
@@ -472,6 +472,7 @@ struct nvc0_graph_init *
nvd9_grctx_init_gpc
[]
=
{
nvd9_grctx_init_gpc_0
,
nvc0_grctx_init_gpc_1
,
nvd9_grctx_init_tpc
,
NULL
};
...
...
@@ -506,9 +507,8 @@ nvd9_grctx_oclass = &(struct nvc0_grctx_oclass) {
},
.
main
=
nvc0_grctx_generate_main
,
.
mods
=
nvc1_grctx_generate_mods
,
.
mmio
=
nvd9_grctx_init_mmio
,
.
hub
=
nvd9_grctx_init_hub
,
.
gpc
=
nvd9_grctx_init_gpc
,
.
tpc
=
nvd9_grctx_init_tpc
,
.
icmd
=
nvd9_grctx_init_icmd
,
.
mthd
=
nvd9_grctx_init_mthd
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c
浏览文件 @
70f824ac
...
...
@@ -783,7 +783,11 @@ nve4_grctx_init_tpc[] = {
{
0x419f70
,
1
,
0x04
,
0x00000000
},
{
0x419f78
,
1
,
0x04
,
0x0000000b
},
{
0x419f7c
,
1
,
0x04
,
0x0000027a
},
{}
};
static
struct
nvc0_graph_init
nve4_grctx_init_unk
[]
=
{
{
0x41be24
,
1
,
0x04
,
0x00000006
},
{
0x41bec0
,
1
,
0x04
,
0x12180000
},
{
0x41bec4
,
1
,
0x04
,
0x00037f7f
},
...
...
@@ -797,7 +801,6 @@ nve4_grctx_init_tpc[] = {
{
0x41bfd0
,
1
,
0x04
,
0x00900103
},
{
0x41bfe0
,
1
,
0x04
,
0x00400001
},
{
0x41bfe4
,
1
,
0x04
,
0x00000000
},
{}
};
...
...
@@ -911,11 +914,10 @@ nve4_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info)
nv_mask
(
priv
,
0x000260
,
0x00000001
,
0x00000000
);
for
(
i
=
0
;
oclass
->
mmio
[
i
];
i
++
)
nvc0_graph_mmio
(
priv
,
oclass
->
mmio
[
i
]);
for
(
i
=
0
;
oclass
->
hub
[
i
];
i
++
)
nvc0_graph_mmio
(
priv
,
oclass
->
hub
[
i
]);
for
(
i
=
0
;
oclass
->
gpc
[
i
];
i
++
)
nvc0_graph_mmio
(
priv
,
oclass
->
gpc
[
i
]);
nvc0_graph_mmio
(
priv
,
oclass
->
tpc
);
nv_wr32
(
priv
,
0x404154
,
0x00000000
);
...
...
@@ -964,7 +966,7 @@ nve4_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info)
}
static
struct
nvc0_graph_init
*
nve4_grctx_init_
mmio
[]
=
{
nve4_grctx_init_
hub
[]
=
{
nvc0_grctx_init_base
,
nve4_grctx_init_unk40xx
,
nvc0_grctx_init_unk44xx
,
...
...
@@ -985,6 +987,8 @@ struct nvc0_graph_init *
nve4_grctx_init_gpc
[]
=
{
nve4_grctx_init_gpc_0
,
nvc0_grctx_init_gpc_1
,
nve4_grctx_init_tpc
,
nve4_grctx_init_unk
,
NULL
};
...
...
@@ -1009,9 +1013,8 @@ nve4_grctx_oclass = &(struct nvc0_grctx_oclass) {
},
.
main
=
nve4_grctx_generate_main
,
.
mods
=
nve4_grctx_generate_mods
,
.
mmio
=
nve4_grctx_init_mmio
,
.
hub
=
nve4_grctx_init_hub
,
.
gpc
=
nve4_grctx_init_gpc
,
.
tpc
=
nve4_grctx_init_tpc
,
.
icmd
=
nve4_grctx_init_icmd
,
.
mthd
=
nve4_grctx_init_mthd
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvf0.c
浏览文件 @
70f824ac
...
...
@@ -200,7 +200,11 @@ nvf0_grctx_init_tpc[] = {
{
0x419f70
,
1
,
0x04
,
0x00007300
},
{
0x419f78
,
1
,
0x04
,
0x000000eb
},
{
0x419f7c
,
1
,
0x04
,
0x00000404
},
{}
};
static
struct
nvc0_graph_init
nvf0_grctx_init_unk
[]
=
{
{
0x41be24
,
1
,
0x04
,
0x00000006
},
{
0x41bec0
,
1
,
0x04
,
0x10000000
},
{
0x41bec4
,
1
,
0x04
,
0x00037f7f
},
...
...
@@ -214,12 +218,11 @@ nvf0_grctx_init_tpc[] = {
{
0x41bfd0
,
1
,
0x04
,
0x00900103
},
{
0x41bfe0
,
1
,
0x04
,
0x00400001
},
{
0x41bfe4
,
1
,
0x04
,
0x00000000
},
{}
};
static
struct
nvc0_graph_init
*
nvf0_grctx_init_
mmio
[]
=
{
nvf0_grctx_init_
hub
[]
=
{
nvc0_grctx_init_base
,
nvf0_grctx_init_unk40xx
,
nvf0_grctx_init_unk44xx
,
...
...
@@ -239,6 +242,8 @@ struct nvc0_graph_init *
nvf0_grctx_init_gpc
[]
=
{
nvf0_grctx_init_gpc_0
,
nvc0_grctx_init_gpc_1
,
nvf0_grctx_init_tpc
,
nvf0_grctx_init_unk
,
NULL
};
...
...
@@ -263,9 +268,8 @@ nvf0_grctx_oclass = &(struct nvc0_grctx_oclass) {
},
.
main
=
nve4_grctx_generate_main
,
.
mods
=
nve4_grctx_generate_mods
,
.
mmio
=
nvf0_grctx_init_mmio
,
.
hub
=
nvf0_grctx_init_hub
,
.
gpc
=
nvf0_grctx_init_gpc
,
.
tpc
=
nvf0_grctx_init_tpc
,
.
icmd
=
nvc0_grctx_init_icmd
,
.
mthd
=
nvf0_grctx_init_mthd
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.h
浏览文件 @
70f824ac
...
...
@@ -151,9 +151,8 @@ struct nvc0_grctx_oclass {
/* context-specific modify-on-first-load list generation function */
void
(
*
mods
)(
struct
nvc0_graph_priv
*
,
struct
nvc0_grctx
*
);
/* mmio context data */
struct
nvc0_graph_init
**
mmio
;
struct
nvc0_graph_init
**
hub
;
struct
nvc0_graph_init
**
gpc
;
struct
nvc0_graph_init
*
tpc
;
/* indirect context data, generated with icmds/mthds */
struct
nvc0_graph_init
*
icmd
;
struct
nvc0_graph_mthd
*
mthd
;
...
...
@@ -213,7 +212,7 @@ void nvc0_grctx_generate_r418bb8(struct nvc0_graph_priv *);
void
nvc0_grctx_generate_r406800
(
struct
nvc0_graph_priv
*
);
extern
struct
nouveau_oclass
*
nvc0_grctx_oclass
;
extern
struct
nvc0_graph_init
*
nvc0_grctx_init_
mmio
[];
extern
struct
nvc0_graph_init
*
nvc0_grctx_init_
hub
[];
extern
struct
nvc0_graph_init
nvc0_grctx_init_base
[];
extern
struct
nvc0_graph_init
nvc0_grctx_init_unk40xx
[];
extern
struct
nvc0_graph_init
nvc0_grctx_init_unk44xx
[];
...
...
@@ -225,7 +224,6 @@ extern struct nvc0_graph_init nvc0_grctx_init_unk78xx[];
extern
struct
nvc0_graph_init
nvc0_grctx_init_unk80xx
[];
extern
struct
nvc0_graph_init
nvc0_grctx_init_gpc_0
[];
extern
struct
nvc0_graph_init
nvc0_grctx_init_gpc_1
[];
extern
struct
nvc0_graph_init
*
nvc0_grctx_init_gpc
[];
extern
struct
nvc0_graph_init
nvc0_grctx_init_tpc
[];
extern
struct
nvc0_graph_init
nvc0_grctx_init_icmd
[];
extern
struct
nvc0_graph_init
nvd9_grctx_init_icmd
[];
//
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录