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
nexedi
linux
Commits
0a7760e0
Commit
0a7760e0
authored
Feb 23, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nve0/fifo: single printk for sched error data
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
885f3ced
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
+10
-4
No files found.
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
View file @
0a7760e0
...
...
@@ -404,7 +404,8 @@ nve0_fifo_swmthd(struct nve0_fifo_priv *priv, u32 chid, u32 mthd, u32 data)
return
ret
;
}
static
const
struct
nouveau_enum
nve0_fifo_sched_reason
[]
=
{
static
const
struct
nouveau_enum
nve0_fifo_sched_reason
[]
=
{
{
0x0a
,
"CTXSW_TIMEOUT"
},
{}
};
...
...
@@ -414,9 +415,14 @@ nve0_fifo_intr_sched(struct nve0_fifo_priv *priv)
{
u32
intr
=
nv_rd32
(
priv
,
0x00254c
);
u32
code
=
intr
&
0x000000ff
;
nv_error
(
priv
,
"SCHED_ERROR ["
);
nouveau_enum_print
(
nve0_fifo_sched_reason
,
code
);
pr_cont
(
"]
\n
"
);
const
struct
nouveau_enum
*
en
;
char
enunk
[
6
]
=
""
;
en
=
nouveau_enum_find
(
nve0_fifo_sched_reason
,
code
);
if
(
!
en
)
snprintf
(
enunk
,
sizeof
(
enunk
),
"UNK%02x"
,
code
);
nv_error
(
priv
,
"SCHED_ERROR [ %s ]
\n
"
,
en
?
en
->
name
:
enunk
);
}
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