Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
16b133df
Commit
16b133df
authored
May 07, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nve0/gr: attempt to resume after sm traps
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
3d8a6ed2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
+6
-16
No files found.
drivers/gpu/drm/nouveau/core/engine/graph/nve0.c
View file @
16b133df
...
@@ -89,9 +89,9 @@ static const struct nouveau_enum nve0_mp_warp_error[] = {
...
@@ -89,9 +89,9 @@ static const struct nouveau_enum nve0_mp_warp_error[] = {
{}
{}
};
};
static
const
struct
nouveau_
enum
nve0_mp_global_error
[]
=
{
static
const
struct
nouveau_
bitfield
nve0_mp_global_error
[]
=
{
{
2
,
"MULTIPLE_WARP_ERRORS"
},
{
0x00000004
,
"MULTIPLE_WARP_ERRORS"
},
{
3
,
"OUT_OF_STACK_SPACE"
},
{
0x00000008
,
"OUT_OF_STACK_SPACE"
},
{}
{}
};
};
...
@@ -125,27 +125,17 @@ nve0_graph_mp_trap(struct nvc0_graph_priv *priv, int gpc, int tpc)
...
@@ -125,27 +125,17 @@ nve0_graph_mp_trap(struct nvc0_graph_priv *priv, int gpc, int tpc)
{
{
u32
werr
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tpc
,
0x648
));
u32
werr
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tpc
,
0x648
));
u32
gerr
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tpc
,
0x650
));
u32
gerr
=
nv_rd32
(
priv
,
TPC_UNIT
(
gpc
,
tpc
,
0x650
));
int
i
;
nv_error
(
priv
,
"GPC%i/TPC%i/MP trap:"
,
gpc
,
tpc
);
nv_error
(
priv
,
"GPC%i/TPC%i/MP trap:"
,
gpc
,
tpc
);
nouveau_bitfield_print
(
nve0_mp_global_error
,
gerr
);
for
(
i
=
0
;
i
<=
31
;
++
i
)
{
if
(
!
(
gerr
&
(
1
<<
i
)))
continue
;
pr_cont
(
" "
);
nouveau_enum_print
(
nve0_mp_global_error
,
i
);
}
if
(
werr
)
{
if
(
werr
)
{
pr_cont
(
" "
);
pr_cont
(
" "
);
nouveau_enum_print
(
nve0_mp_warp_error
,
werr
&
0xffff
);
nouveau_enum_print
(
nve0_mp_warp_error
,
werr
&
0xffff
);
}
}
pr_cont
(
"
\n
"
);
pr_cont
(
"
\n
"
);
/* disable MP trap to avoid spam */
nv_wr32
(
priv
,
TPC_UNIT
(
gpc
,
tpc
,
0x648
),
0x00000000
);
nv_mask
(
priv
,
TPC_UNIT
(
gpc
,
tpc
,
0x50c
),
0x2
,
0x0
);
nv_wr32
(
priv
,
TPC_UNIT
(
gpc
,
tpc
,
0x650
),
gerr
);
/* TODO: figure out how to resume after an MP trap */
}
}
static
void
static
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment