Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
64cb5a31
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看板
提交
64cb5a31
编写于
4月 14, 2016
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/gr/gf100-: abstract fetching rop count
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
5ec3def7
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
25 addition
and
2 deletion
+25
-2
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
+10
-2
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
+2
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf104.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf110.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf110.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf119.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf119.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
+1
-0
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
浏览文件 @
64cb5a31
...
@@ -702,6 +702,13 @@ gf100_gr_pack_mmio[] = {
...
@@ -702,6 +702,13 @@ gf100_gr_pack_mmio[] = {
* PGRAPH engine/subdev functions
* PGRAPH engine/subdev functions
******************************************************************************/
******************************************************************************/
int
gf100_gr_rops
(
struct
gf100_gr
*
gr
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
return
(
nvkm_rd32
(
device
,
0x409604
)
&
0x001f0000
)
>>
16
;
}
void
void
gf100_gr_zbc_init
(
struct
gf100_gr
*
gr
)
gf100_gr_zbc_init
(
struct
gf100_gr
*
gr
)
{
{
...
@@ -1633,8 +1640,8 @@ gf100_gr_oneinit(struct nvkm_gr *base)
...
@@ -1633,8 +1640,8 @@ gf100_gr_oneinit(struct nvkm_gr *base)
nvkm_wo32
(
gr
->
unk4188b8
,
i
,
0x00000010
);
nvkm_wo32
(
gr
->
unk4188b8
,
i
,
0x00000010
);
nvkm_done
(
gr
->
unk4188b8
);
nvkm_done
(
gr
->
unk4188b8
);
gr
->
rop_nr
=
(
nvkm_rd32
(
device
,
0x409604
)
&
0x001f0000
)
>>
16
;
gr
->
rop_nr
=
gr
->
func
->
rops
(
gr
)
;
gr
->
gpc_nr
=
nvkm_rd32
(
device
,
0x409604
)
&
0x0000001f
;
gr
->
gpc_nr
=
nvkm_rd32
(
device
,
0x409604
)
&
0x0000001f
;
for
(
i
=
0
;
i
<
gr
->
gpc_nr
;
i
++
)
{
for
(
i
=
0
;
i
<
gr
->
gpc_nr
;
i
++
)
{
gr
->
tpc_nr
[
i
]
=
nvkm_rd32
(
device
,
GPC_UNIT
(
i
,
0x2608
));
gr
->
tpc_nr
[
i
]
=
nvkm_rd32
(
device
,
GPC_UNIT
(
i
,
0x2608
));
gr
->
tpc_total
+=
gr
->
tpc_nr
[
i
];
gr
->
tpc_total
+=
gr
->
tpc_nr
[
i
];
...
@@ -1946,6 +1953,7 @@ gf100_gr = {
...
@@ -1946,6 +1953,7 @@ gf100_gr = {
.
mmio
=
gf100_gr_pack_mmio
,
.
mmio
=
gf100_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
rops
=
gf100_gr_rops
,
.
grctx
=
&
gf100_grctx
,
.
grctx
=
&
gf100_grctx
,
.
sclass
=
{
.
sclass
=
{
{
-
1
,
-
1
,
FERMI_TWOD_A
},
{
-
1
,
-
1
,
FERMI_TWOD_A
},
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
浏览文件 @
64cb5a31
...
@@ -129,12 +129,14 @@ struct gf100_gr_func {
...
@@ -129,12 +129,14 @@ struct gf100_gr_func {
struct
{
struct
{
struct
gf100_gr_ucode
*
ucode
;
struct
gf100_gr_ucode
*
ucode
;
}
gpccs
;
}
gpccs
;
int
(
*
rops
)(
struct
gf100_gr
*
);
int
ppc_nr
;
int
ppc_nr
;
const
struct
gf100_grctx_func
*
grctx
;
const
struct
gf100_grctx_func
*
grctx
;
struct
nvkm_sclass
sclass
[];
struct
nvkm_sclass
sclass
[];
};
};
int
gf100_gr_init
(
struct
gf100_gr
*
);
int
gf100_gr_init
(
struct
gf100_gr
*
);
int
gf100_gr_rops
(
struct
gf100_gr
*
);
int
gk104_gr_init
(
struct
gf100_gr
*
);
int
gk104_gr_init
(
struct
gf100_gr
*
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf104.c
浏览文件 @
64cb5a31
...
@@ -118,6 +118,7 @@ gf104_gr = {
...
@@ -118,6 +118,7 @@ gf104_gr = {
.
mmio
=
gf104_gr_pack_mmio
,
.
mmio
=
gf104_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
rops
=
gf100_gr_rops
,
.
grctx
=
&
gf104_grctx
,
.
grctx
=
&
gf104_grctx
,
.
sclass
=
{
.
sclass
=
{
{
-
1
,
-
1
,
FERMI_TWOD_A
},
{
-
1
,
-
1
,
FERMI_TWOD_A
},
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
浏览文件 @
64cb5a31
...
@@ -109,6 +109,7 @@ gf108_gr = {
...
@@ -109,6 +109,7 @@ gf108_gr = {
.
mmio
=
gf108_gr_pack_mmio
,
.
mmio
=
gf108_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
rops
=
gf100_gr_rops
,
.
grctx
=
&
gf108_grctx
,
.
grctx
=
&
gf108_grctx
,
.
sclass
=
{
.
sclass
=
{
{
-
1
,
-
1
,
FERMI_TWOD_A
},
{
-
1
,
-
1
,
FERMI_TWOD_A
},
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf110.c
浏览文件 @
64cb5a31
...
@@ -90,6 +90,7 @@ gf110_gr = {
...
@@ -90,6 +90,7 @@ gf110_gr = {
.
mmio
=
gf110_gr_pack_mmio
,
.
mmio
=
gf110_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
rops
=
gf100_gr_rops
,
.
grctx
=
&
gf110_grctx
,
.
grctx
=
&
gf110_grctx
,
.
sclass
=
{
.
sclass
=
{
{
-
1
,
-
1
,
FERMI_TWOD_A
},
{
-
1
,
-
1
,
FERMI_TWOD_A
},
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c
浏览文件 @
64cb5a31
...
@@ -126,6 +126,7 @@ gf117_gr = {
...
@@ -126,6 +126,7 @@ gf117_gr = {
.
mmio
=
gf117_gr_pack_mmio
,
.
mmio
=
gf117_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf117_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf117_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf117_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf117_gr_gpccs_ucode
,
.
rops
=
gf100_gr_rops
,
.
ppc_nr
=
1
,
.
ppc_nr
=
1
,
.
grctx
=
&
gf117_grctx
,
.
grctx
=
&
gf117_grctx
,
.
sclass
=
{
.
sclass
=
{
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf119.c
浏览文件 @
64cb5a31
...
@@ -181,6 +181,7 @@ gf119_gr = {
...
@@ -181,6 +181,7 @@ gf119_gr = {
.
mmio
=
gf119_gr_pack_mmio
,
.
mmio
=
gf119_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
.
rops
=
gf100_gr_rops
,
.
grctx
=
&
gf119_grctx
,
.
grctx
=
&
gf119_grctx
,
.
sclass
=
{
.
sclass
=
{
{
-
1
,
-
1
,
FERMI_TWOD_A
},
{
-
1
,
-
1
,
FERMI_TWOD_A
},
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
浏览文件 @
64cb5a31
...
@@ -312,6 +312,7 @@ gk104_gr = {
...
@@ -312,6 +312,7 @@ gk104_gr = {
.
mmio
=
gk104_gr_pack_mmio
,
.
mmio
=
gk104_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk104_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gk104_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk104_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gk104_gr_gpccs_ucode
,
.
rops
=
gf100_gr_rops
,
.
ppc_nr
=
1
,
.
ppc_nr
=
1
,
.
grctx
=
&
gk104_grctx
,
.
grctx
=
&
gk104_grctx
,
.
sclass
=
{
.
sclass
=
{
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
浏览文件 @
64cb5a31
...
@@ -186,6 +186,7 @@ gk110_gr = {
...
@@ -186,6 +186,7 @@ gk110_gr = {
.
mmio
=
gk110_gr_pack_mmio
,
.
mmio
=
gk110_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk110_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gk110_gr_gpccs_ucode
,
.
rops
=
gf100_gr_rops
,
.
ppc_nr
=
2
,
.
ppc_nr
=
2
,
.
grctx
=
&
gk110_grctx
,
.
grctx
=
&
gk110_grctx
,
.
sclass
=
{
.
sclass
=
{
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
浏览文件 @
64cb5a31
...
@@ -106,6 +106,7 @@ gk110b_gr = {
...
@@ -106,6 +106,7 @@ gk110b_gr = {
.
mmio
=
gk110b_gr_pack_mmio
,
.
mmio
=
gk110b_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk110_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gk110_gr_gpccs_ucode
,
.
rops
=
gf100_gr_rops
,
.
ppc_nr
=
2
,
.
ppc_nr
=
2
,
.
grctx
=
&
gk110b_grctx
,
.
grctx
=
&
gk110b_grctx
,
.
sclass
=
{
.
sclass
=
{
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c
浏览文件 @
64cb5a31
...
@@ -165,6 +165,7 @@ gk208_gr = {
...
@@ -165,6 +165,7 @@ gk208_gr = {
.
mmio
=
gk208_gr_pack_mmio
,
.
mmio
=
gk208_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk208_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gk208_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk208_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gk208_gr_gpccs_ucode
,
.
rops
=
gf100_gr_rops
,
.
ppc_nr
=
1
,
.
ppc_nr
=
1
,
.
grctx
=
&
gk208_grctx
,
.
grctx
=
&
gk208_grctx
,
.
sclass
=
{
.
sclass
=
{
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
浏览文件 @
64cb5a31
...
@@ -313,6 +313,7 @@ static const struct gf100_gr_func
...
@@ -313,6 +313,7 @@ static const struct gf100_gr_func
gk20a_gr
=
{
gk20a_gr
=
{
.
init
=
gk20a_gr_init
,
.
init
=
gk20a_gr_init
,
.
set_hww_esr_report_mask
=
gk20a_gr_set_hww_esr_report_mask
,
.
set_hww_esr_report_mask
=
gk20a_gr_set_hww_esr_report_mask
,
.
rops
=
gf100_gr_rops
,
.
ppc_nr
=
1
,
.
ppc_nr
=
1
,
.
grctx
=
&
gk20a_grctx
,
.
grctx
=
&
gk20a_grctx
,
.
sclass
=
{
.
sclass
=
{
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
浏览文件 @
64cb5a31
...
@@ -441,6 +441,7 @@ gm107_gr = {
...
@@ -441,6 +441,7 @@ gm107_gr = {
.
mmio
=
gm107_gr_pack_mmio
,
.
mmio
=
gm107_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gm107_gr_fecs_ucode
,
.
fecs
.
ucode
=
&
gm107_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gm107_gr_gpccs_ucode
,
.
gpccs
.
ucode
=
&
gm107_gr_gpccs_ucode
,
.
rops
=
gf100_gr_rops
,
.
ppc_nr
=
2
,
.
ppc_nr
=
2
,
.
grctx
=
&
gm107_grctx
,
.
grctx
=
&
gm107_grctx
,
.
sclass
=
{
.
sclass
=
{
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
浏览文件 @
64cb5a31
...
@@ -189,6 +189,7 @@ gm200_gr_new_(const struct gf100_gr_func *func, struct nvkm_device *device,
...
@@ -189,6 +189,7 @@ gm200_gr_new_(const struct gf100_gr_func *func, struct nvkm_device *device,
static
const
struct
gf100_gr_func
static
const
struct
gf100_gr_func
gm200_gr
=
{
gm200_gr
=
{
.
init
=
gm200_gr_init
,
.
init
=
gm200_gr_init
,
.
rops
=
gf100_gr_rops
,
.
ppc_nr
=
2
,
.
ppc_nr
=
2
,
.
grctx
=
&
gm200_grctx
,
.
grctx
=
&
gm200_grctx
,
.
sclass
=
{
.
sclass
=
{
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
浏览文件 @
64cb5a31
...
@@ -67,6 +67,7 @@ gm20b_gr = {
...
@@ -67,6 +67,7 @@ gm20b_gr = {
.
init
=
gk20a_gr_init
,
.
init
=
gk20a_gr_init
,
.
init_gpc_mmu
=
gm20b_gr_init_gpc_mmu
,
.
init_gpc_mmu
=
gm20b_gr_init_gpc_mmu
,
.
set_hww_esr_report_mask
=
gm20b_gr_set_hww_esr_report_mask
,
.
set_hww_esr_report_mask
=
gm20b_gr_set_hww_esr_report_mask
,
.
rops
=
gf100_gr_rops
,
.
ppc_nr
=
1
,
.
ppc_nr
=
1
,
.
grctx
=
&
gm20b_grctx
,
.
grctx
=
&
gm20b_grctx
,
.
sclass
=
{
.
sclass
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录