Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b81146b0
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 1 年 前同步成功
通知
152
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b81146b0
编写于
8月 10, 2014
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/gf100-/gr: fetch tpcs-per-ppc info on startup
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
f331a15f
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
16 addition
and
1 deletion
+16
-1
drivers/gpu/drm/nouveau/core/engine/graph/gk110b.c
drivers/gpu/drm/nouveau/core/engine/graph/gk110b.c
+1
-0
drivers/gpu/drm/nouveau/core/engine/graph/gk20a.c
drivers/gpu/drm/nouveau/core/engine/graph/gk20a.c
+1
-0
drivers/gpu/drm/nouveau/core/engine/graph/gm107.c
drivers/gpu/drm/nouveau/core/engine/graph/gm107.c
+1
-0
drivers/gpu/drm/nouveau/core/engine/graph/nv108.c
drivers/gpu/drm/nouveau/core/engine/graph/nv108.c
+1
-0
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
+6
-1
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.h
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.h
+3
-0
drivers/gpu/drm/nouveau/core/engine/graph/nvd7.c
drivers/gpu/drm/nouveau/core/engine/graph/nvd7.c
+1
-0
drivers/gpu/drm/nouveau/core/engine/graph/nve4.c
drivers/gpu/drm/nouveau/core/engine/graph/nve4.c
+1
-0
drivers/gpu/drm/nouveau/core/engine/graph/nvf0.c
drivers/gpu/drm/nouveau/core/engine/graph/nvf0.c
+1
-0
未找到文件。
drivers/gpu/drm/nouveau/core/engine/graph/gk110b.c
浏览文件 @
b81146b0
...
...
@@ -113,4 +113,5 @@ gk110b_graph_oclass = &(struct nvc0_graph_oclass) {
.
mmio
=
gk110b_graph_pack_mmio
,
.
fecs
.
ucode
=
&
nvf0_graph_fecs_ucode
,
.
gpccs
.
ucode
=
&
nvf0_graph_gpccs_ucode
,
.
ppc_nr
=
2
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/gk20a.c
浏览文件 @
b81146b0
...
...
@@ -44,4 +44,5 @@ gk20a_graph_oclass = &(struct nvc0_graph_oclass) {
.
cclass
=
&
gk20a_grctx_oclass
,
.
sclass
=
gk20a_graph_sclass
,
.
mmio
=
nve4_graph_pack_mmio
,
.
ppc_nr
=
1
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/gm107.c
浏览文件 @
b81146b0
...
...
@@ -465,4 +465,5 @@ gm107_graph_oclass = &(struct nvc0_graph_oclass) {
.
mmio
=
gm107_graph_pack_mmio
,
.
fecs
.
ucode
=
0
?
&
gm107_graph_fecs_ucode
:
NULL
,
.
gpccs
.
ucode
=
&
gm107_graph_gpccs_ucode
,
.
ppc_nr
=
2
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/nv108.c
浏览文件 @
b81146b0
...
...
@@ -220,4 +220,5 @@ nv108_graph_oclass = &(struct nvc0_graph_oclass) {
.
mmio
=
nv108_graph_pack_mmio
,
.
fecs
.
ucode
=
&
nv108_graph_fecs_ucode
,
.
gpccs
.
ucode
=
&
nv108_graph_gpccs_ucode
,
.
ppc_nr
=
1
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
浏览文件 @
b81146b0
...
...
@@ -1503,7 +1503,7 @@ nvc0_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
struct
nouveau_device
*
device
=
nv_device
(
parent
);
struct
nvc0_graph_priv
*
priv
;
bool
use_ext_fw
,
enable
;
int
ret
,
i
;
int
ret
,
i
,
j
;
use_ext_fw
=
nouveau_boolopt
(
device
->
cfgopt
,
"NvGrUseFW"
,
oclass
->
fecs
.
ucode
==
NULL
);
...
...
@@ -1549,6 +1549,11 @@ nvc0_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
for
(
i
=
0
;
i
<
priv
->
gpc_nr
;
i
++
)
{
priv
->
tpc_nr
[
i
]
=
nv_rd32
(
priv
,
GPC_UNIT
(
i
,
0x2608
));
priv
->
tpc_total
+=
priv
->
tpc_nr
[
i
];
priv
->
ppc_nr
[
i
]
=
oclass
->
ppc_nr
;
for
(
j
=
0
;
j
<
priv
->
ppc_nr
[
i
];
j
++
)
{
u8
mask
=
nv_rd32
(
priv
,
GPC_UNIT
(
i
,
0x0c30
+
(
j
*
4
)));
priv
->
ppc_tpc_nr
[
i
][
j
]
=
hweight8
(
mask
);
}
}
/*XXX: these need figuring out... though it might not even matter */
...
...
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.h
浏览文件 @
b81146b0
...
...
@@ -101,6 +101,8 @@ struct nvc0_graph_priv {
u8
gpc_nr
;
u8
tpc_nr
[
GPC_MAX
];
u8
tpc_total
;
u8
ppc_nr
[
GPC_MAX
];
u8
ppc_tpc_nr
[
GPC_MAX
][
4
];
struct
nouveau_gpuobj
*
unk4188b4
;
struct
nouveau_gpuobj
*
unk4188b8
;
...
...
@@ -189,6 +191,7 @@ struct nvc0_graph_oclass {
struct
{
struct
nvc0_graph_ucode
*
ucode
;
}
gpccs
;
int
ppc_nr
;
};
void
nvc0_graph_mmio
(
struct
nvc0_graph_priv
*
,
const
struct
nvc0_graph_pack
*
);
...
...
drivers/gpu/drm/nouveau/core/engine/graph/nvd7.c
浏览文件 @
b81146b0
...
...
@@ -133,4 +133,5 @@ nvd7_graph_oclass = &(struct nvc0_graph_oclass) {
.
mmio
=
nvd7_graph_pack_mmio
,
.
fecs
.
ucode
=
&
nvd7_graph_fecs_ucode
,
.
gpccs
.
ucode
=
&
nvd7_graph_gpccs_ucode
,
.
ppc_nr
=
1
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/nve4.c
浏览文件 @
b81146b0
...
...
@@ -343,4 +343,5 @@ nve4_graph_oclass = &(struct nvc0_graph_oclass) {
.
mmio
=
nve4_graph_pack_mmio
,
.
fecs
.
ucode
=
&
nve4_graph_fecs_ucode
,
.
gpccs
.
ucode
=
&
nve4_graph_gpccs_ucode
,
.
ppc_nr
=
1
,
}.
base
;
drivers/gpu/drm/nouveau/core/engine/graph/nvf0.c
浏览文件 @
b81146b0
...
...
@@ -241,4 +241,5 @@ nvf0_graph_oclass = &(struct nvc0_graph_oclass) {
.
mmio
=
nvf0_graph_pack_mmio
,
.
fecs
.
ucode
=
&
nvf0_graph_fecs_ucode
,
.
gpccs
.
ucode
=
&
nvf0_graph_gpccs_ucode
,
.
ppc_nr
=
2
,
}.
base
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录