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
13416077
Commit
13416077
authored
Jan 18, 2017
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/top: add function to translate subdev index to mmu fault id
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
6845c313
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
drivers/gpu/drm/nouveau/include/nvkm/subdev/top.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/top.h
+1
-0
drivers/gpu/drm/nouveau/nvkm/subdev/top/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/top/base.c
+14
-0
No files found.
drivers/gpu/drm/nouveau/include/nvkm/subdev/top.h
View file @
13416077
...
...
@@ -11,6 +11,7 @@ struct nvkm_top {
u32
nvkm_top_reset
(
struct
nvkm_device
*
,
enum
nvkm_devidx
);
u32
nvkm_top_intr
(
struct
nvkm_device
*
,
u32
intr
,
u64
*
subdevs
);
u32
nvkm_top_intr_mask
(
struct
nvkm_device
*
,
enum
nvkm_devidx
);
int
nvkm_top_fault_id
(
struct
nvkm_device
*
,
enum
nvkm_devidx
);
enum
nvkm_devidx
nvkm_top_fault
(
struct
nvkm_device
*
,
int
fault
);
enum
nvkm_devidx
nvkm_top_engine
(
struct
nvkm_device
*
,
int
,
int
*
runl
,
int
*
engn
);
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/top/base.c
View file @
13416077
...
...
@@ -95,6 +95,20 @@ nvkm_top_intr(struct nvkm_device *device, u32 intr, u64 *psubdevs)
return
intr
&
~
handled
;
}
int
nvkm_top_fault_id
(
struct
nvkm_device
*
device
,
enum
nvkm_devidx
devidx
)
{
struct
nvkm_top
*
top
=
device
->
top
;
struct
nvkm_top_device
*
info
;
list_for_each_entry
(
info
,
&
top
->
device
,
head
)
{
if
(
info
->
index
==
devidx
&&
info
->
fault
>=
0
)
return
info
->
fault
;
}
return
-
ENOENT
;
}
enum
nvkm_devidx
nvkm_top_fault
(
struct
nvkm_device
*
device
,
int
fault
)
{
...
...
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