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
7795bee0
Commit
7795bee0
authored
Mar 29, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvc0: decode gpc/hubclient on vm fault
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
e2966632
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
drivers/gpu/drm/nouveau/nvc0_fifo.c
drivers/gpu/drm/nouveau/nvc0_fifo.c
+34
-0
No files found.
drivers/gpu/drm/nouveau/nvc0_fifo.c
View file @
7795bee0
...
...
@@ -383,6 +383,32 @@ struct nouveau_enum nvc0_fifo_fault_reason[] = {
{}
};
struct
nouveau_enum
nvc0_fifo_fault_hubclient
[]
=
{
{
0x01
,
"PCOPY0"
},
{
0x02
,
"PCOPY1"
},
{
0x04
,
"DISPATCH"
},
{
0x05
,
"CTXCTL"
},
{
0x06
,
"PFIFO"
},
{
0x07
,
"BAR_READ"
},
{
0x08
,
"BAR_WRITE"
},
{
0x0b
,
"PVP"
},
{
0x0c
,
"PPPP"
},
{
0x0d
,
"PBSP"
},
{
0x11
,
"PCOUNTER"
},
{
0x12
,
"PDAEMON"
},
{
0x14
,
"CCACHE"
},
{
0x15
,
"CCACHE_POST"
},
{}
};
struct
nouveau_enum
nvc0_fifo_fault_gpcclient
[]
=
{
{
0x01
,
"TEX"
},
{
0x0c
,
"ESETUP"
},
{
0x0e
,
"CTXCTL"
},
{
0x0f
,
"PROP"
},
{}
};
struct
nouveau_bitfield
nvc0_fifo_subfifo_intr
[]
=
{
/* { 0x00008000, "" } seen with null ib push */
{
0x00200000
,
"ILLEGAL_MTHD"
},
...
...
@@ -397,12 +423,20 @@ nvc0_fifo_isr_vm_fault(struct drm_device *dev, int unit)
u32
valo
=
nv_rd32
(
dev
,
0x2804
+
(
unit
*
0x10
));
u32
vahi
=
nv_rd32
(
dev
,
0x2808
+
(
unit
*
0x10
));
u32
stat
=
nv_rd32
(
dev
,
0x280c
+
(
unit
*
0x10
));
u32
client
=
(
stat
&
0x00001f00
)
>>
8
;
NV_INFO
(
dev
,
"PFIFO: %s fault at 0x%010llx ["
,
(
stat
&
0x00000080
)
?
"write"
:
"read"
,
(
u64
)
vahi
<<
32
|
valo
);
nouveau_enum_print
(
nvc0_fifo_fault_reason
,
stat
&
0x0000000f
);
printk
(
"] from "
);
nouveau_enum_print
(
nvc0_fifo_fault_unit
,
unit
);
if
(
stat
&
0x00000040
)
{
printk
(
"/"
);
nouveau_enum_print
(
nvc0_fifo_fault_hubclient
,
client
);
}
else
{
printk
(
"/GPC%d/"
,
(
stat
&
0x1f000000
)
>>
24
);
nouveau_enum_print
(
nvc0_fifo_fault_gpcclient
,
client
);
}
printk
(
" on channel 0x%010llx
\n
"
,
(
u64
)
inst
<<
12
);
}
...
...
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