Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
3d8a6ed2
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看板
提交
3d8a6ed2
编写于
5月 07, 2013
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nve0/gr: s/tp/tpc/
NVIDIA's name... Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
8d6f585d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
27 addition
and
26 deletion
+27
-26
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
+27
-26
未找到文件。
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
浏览文件 @
3d8a6ed2
...
...
@@ -121,13 +121,13 @@ static const struct nouveau_enum nve0_sked_error[] = {
};
static
void
nve0_graph_mp_trap
(
struct
nvc0_graph_priv
*
priv
,
int
gpc
,
int
tp
)
nve0_graph_mp_trap
(
struct
nvc0_graph_priv
*
priv
,
int
gpc
,
int
tp
c
)
{
u32
werr
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tpc
,
0x648
));
u32
gerr
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tpc
,
0x650
));
int
i
;
u32
werr
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tp
,
0x648
));
u32
gerr
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tp
,
0x650
));
nv_error
(
priv
,
"GPC%i/TP
%i/MP trap:"
,
gpc
,
tp
);
nv_error
(
priv
,
"GPC%i/TP
C%i/MP trap:"
,
gpc
,
tpc
);
for
(
i
=
0
;
i
<=
31
;
++
i
)
{
if
(
!
(
gerr
&
(
1
<<
i
)))
...
...
@@ -135,6 +135,7 @@ nve0_graph_mp_trap(struct nvc0_graph_priv *priv, int gpc, int tp)
pr_cont
(
" "
);
nouveau_enum_print
(
nve0_mp_global_error
,
i
);
}
if
(
werr
)
{
pr_cont
(
" "
);
nouveau_enum_print
(
nve0_mp_warp_error
,
werr
&
0xffff
);
...
...
@@ -142,51 +143,51 @@ nve0_graph_mp_trap(struct nvc0_graph_priv *priv, int gpc, int tp)
pr_cont
(
"
\n
"
);
/* disable MP trap to avoid spam */
nv_mask
(
priv
,
TPC_UNIT
(
gpc
,
tp
,
0x50c
),
0x2
,
0x0
);
nv_mask
(
priv
,
TPC_UNIT
(
gpc
,
tp
c
,
0x50c
),
0x2
,
0x0
);
/* TODO: figure out how to resume after an MP trap */
}
static
void
nve0_graph_tp
_trap
(
struct
nvc0_graph_priv
*
priv
,
int
gpc
,
int
tp
)
nve0_graph_tp
c_trap
(
struct
nvc0_graph_priv
*
priv
,
int
gpc
,
int
tpc
)
{
u32
stat
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tp
,
0x508
));
u32
stat
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tp
c
,
0x508
));
if
(
stat
&
0x1
)
{
u32
trap
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tp
,
0x224
));
nv_error
(
priv
,
"GPC%i/TP%i/TEX trap: %08x
\n
"
,
gpc
,
tp
,
trap
);
u32
trap
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tp
c
,
0x224
));
nv_error
(
priv
,
"GPC%i/TP
C
%i/TEX trap: %08x
\n
"
,
gpc
,
tp
c
,
trap
);
nv_wr32
(
priv
,
TPC_UNIT
(
gpc
,
tp
,
0x224
),
0xc0000000
);
nv_wr32
(
priv
,
TPC_UNIT
(
gpc
,
tp
c
,
0x224
),
0xc0000000
);
stat
&=
~
0x1
;
}
if
(
stat
&
0x2
)
{
nve0_graph_mp_trap
(
priv
,
gpc
,
tp
);
nve0_graph_mp_trap
(
priv
,
gpc
,
tp
c
);
stat
&=
~
0x2
;
}
if
(
stat
&
0x4
)
{
u32
trap
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tp
,
0x084
));
nv_error
(
priv
,
"GPC%i/TP%i/POLY trap: %08x
\n
"
,
gpc
,
tp
,
trap
);
u32
trap
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tp
c
,
0x084
));
nv_error
(
priv
,
"GPC%i/TP
C
%i/POLY trap: %08x
\n
"
,
gpc
,
tp
c
,
trap
);
nv_wr32
(
priv
,
TPC_UNIT
(
gpc
,
tp
,
0x084
),
0xc0000000
);
nv_wr32
(
priv
,
TPC_UNIT
(
gpc
,
tp
c
,
0x084
),
0xc0000000
);
stat
&=
~
0x4
;
}
if
(
stat
&
0x8
)
{
u32
trap
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tp
,
0x48c
));
nv_error
(
priv
,
"GPC%i/TP%i/L1C trap: %08x
\n
"
,
gpc
,
tp
,
trap
);
u32
trap
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tp
c
,
0x48c
));
nv_error
(
priv
,
"GPC%i/TP
C
%i/L1C trap: %08x
\n
"
,
gpc
,
tp
c
,
trap
);
nv_wr32
(
priv
,
TPC_UNIT
(
gpc
,
tp
,
0x48c
),
0xc0000000
);
nv_wr32
(
priv
,
TPC_UNIT
(
gpc
,
tp
c
,
0x48c
),
0xc0000000
);
stat
&=
~
0x8
;
}
if
(
stat
)
{
nv_error
(
priv
,
"GPC%i/TP%i: unknown stat %08x
\n
"
,
gpc
,
tp
,
stat
);
nv_error
(
priv
,
"GPC%i/TP
C
%i: unknown stat %08x
\n
"
,
gpc
,
tp
c
,
stat
);
}
}
...
...
@@ -198,7 +199,7 @@ nve0_graph_gpc_trap(struct nvc0_graph_priv *priv)
for
(
gpc
=
0
;
gpc
<
4
;
++
gpc
)
{
u32
stat
;
int
tp
;
int
tp
c
;
if
(
!
(
mask
&
(
1
<<
gpc
)))
continue
;
...
...
@@ -257,9 +258,9 @@ nve0_graph_gpc_trap(struct nvc0_graph_priv *priv)
stat
&=
~
0x0008
;
}
for
(
tp
=
0
;
tp
<
8
;
++
tp
)
{
if
(
stat
&
(
1
<<
(
16
+
tp
)))
nve0_graph_tp
_trap
(
priv
,
gpc
,
tp
);
for
(
tp
c
=
0
;
tpc
<
8
;
++
tpc
)
{
if
(
stat
&
(
1
<<
(
16
+
tp
c
)))
nve0_graph_tp
c_trap
(
priv
,
gpc
,
tpc
);
}
stat
&=
~
0xff0000
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录