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
6fdb383e
Commit
6fdb383e
authored
Mar 08, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50: check for vm traps on every gr irq
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
312d1d5f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
6 deletions
+5
-6
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+1
-1
drivers/gpu/drm/nouveau/nv04_fifo.c
drivers/gpu/drm/nouveau/nv04_fifo.c
+1
-1
drivers/gpu/drm/nouveau/nv50_fb.c
drivers/gpu/drm/nouveau/nv50_fb.c
+1
-1
drivers/gpu/drm/nouveau/nv50_graph.c
drivers/gpu/drm/nouveau/nv50_graph.c
+1
-2
drivers/gpu/drm/nouveau/nv84_crypt.c
drivers/gpu/drm/nouveau/nv84_crypt.c
+1
-1
No files found.
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
6fdb383e
...
@@ -1076,7 +1076,7 @@ extern void nv40_fb_set_tile_region(struct drm_device *dev, int i);
...
@@ -1076,7 +1076,7 @@ extern void nv40_fb_set_tile_region(struct drm_device *dev, int i);
/* nv50_fb.c */
/* nv50_fb.c */
extern
int
nv50_fb_init
(
struct
drm_device
*
);
extern
int
nv50_fb_init
(
struct
drm_device
*
);
extern
void
nv50_fb_takedown
(
struct
drm_device
*
);
extern
void
nv50_fb_takedown
(
struct
drm_device
*
);
extern
void
nv50_fb_vm_trap
(
struct
drm_device
*
,
int
display
,
const
char
*
);
extern
void
nv50_fb_vm_trap
(
struct
drm_device
*
,
int
display
);
/* nvc0_fb.c */
/* nvc0_fb.c */
extern
int
nvc0_fb_init
(
struct
drm_device
*
);
extern
int
nvc0_fb_init
(
struct
drm_device
*
);
...
...
drivers/gpu/drm/nouveau/nv04_fifo.c
View file @
6fdb383e
...
@@ -516,7 +516,7 @@ nv04_fifo_isr(struct drm_device *dev)
...
@@ -516,7 +516,7 @@ nv04_fifo_isr(struct drm_device *dev)
if
(
dev_priv
->
card_type
==
NV_50
)
{
if
(
dev_priv
->
card_type
==
NV_50
)
{
if
(
status
&
0x00000010
)
{
if
(
status
&
0x00000010
)
{
nv50_fb_vm_trap
(
dev
,
1
,
"PFIFO_BAR_FAULT"
);
nv50_fb_vm_trap
(
dev
,
nouveau_ratelimit
()
);
status
&=
~
0x00000010
;
status
&=
~
0x00000010
;
nv_wr32
(
dev
,
0x002100
,
0x00000010
);
nv_wr32
(
dev
,
0x002100
,
0x00000010
);
}
}
...
...
drivers/gpu/drm/nouveau/nv50_fb.c
View file @
6fdb383e
...
@@ -210,7 +210,7 @@ static struct nouveau_enum vm_fault[] = {
...
@@ -210,7 +210,7 @@ static struct nouveau_enum vm_fault[] = {
};
};
void
void
nv50_fb_vm_trap
(
struct
drm_device
*
dev
,
int
display
,
const
char
*
name
)
nv50_fb_vm_trap
(
struct
drm_device
*
dev
,
int
display
)
{
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
const
struct
nouveau_enum
*
en
,
*
cl
;
const
struct
nouveau_enum
*
en
,
*
cl
;
...
...
drivers/gpu/drm/nouveau/nv50_graph.c
View file @
6fdb383e
...
@@ -702,7 +702,6 @@ nv50_pgraph_tp_trap(struct drm_device *dev, int type, uint32_t ustatus_old,
...
@@ -702,7 +702,6 @@ nv50_pgraph_tp_trap(struct drm_device *dev, int type, uint32_t ustatus_old,
tps
++
;
tps
++
;
switch
(
type
)
{
switch
(
type
)
{
case
6
:
/* texture error... unknown for now */
case
6
:
/* texture error... unknown for now */
nv50_fb_vm_trap
(
dev
,
display
,
name
);
if
(
display
)
{
if
(
display
)
{
NV_ERROR
(
dev
,
"magic set %d:
\n
"
,
i
);
NV_ERROR
(
dev
,
"magic set %d:
\n
"
,
i
);
for
(
r
=
ustatus_addr
+
4
;
r
<=
ustatus_addr
+
0x10
;
r
+=
4
)
for
(
r
=
ustatus_addr
+
4
;
r
<=
ustatus_addr
+
0x10
;
r
+=
4
)
...
@@ -725,7 +724,6 @@ nv50_pgraph_tp_trap(struct drm_device *dev, int type, uint32_t ustatus_old,
...
@@ -725,7 +724,6 @@ nv50_pgraph_tp_trap(struct drm_device *dev, int type, uint32_t ustatus_old,
uint32_t
e1c
=
nv_rd32
(
dev
,
ustatus_addr
+
0x14
);
uint32_t
e1c
=
nv_rd32
(
dev
,
ustatus_addr
+
0x14
);
uint32_t
e20
=
nv_rd32
(
dev
,
ustatus_addr
+
0x18
);
uint32_t
e20
=
nv_rd32
(
dev
,
ustatus_addr
+
0x18
);
uint32_t
e24
=
nv_rd32
(
dev
,
ustatus_addr
+
0x1c
);
uint32_t
e24
=
nv_rd32
(
dev
,
ustatus_addr
+
0x1c
);
nv50_fb_vm_trap
(
dev
,
display
,
name
);
/* 2d engine destination */
/* 2d engine destination */
if
(
ustatus
&
0x00000010
)
{
if
(
ustatus
&
0x00000010
)
{
if
(
display
)
{
if
(
display
)
{
...
@@ -1068,6 +1066,7 @@ nv50_graph_isr(struct drm_device *dev)
...
@@ -1068,6 +1066,7 @@ nv50_graph_isr(struct drm_device *dev)
NV_INFO
(
dev
,
"PGRAPH - ch %d (0x%010llx) subc %d "
NV_INFO
(
dev
,
"PGRAPH - ch %d (0x%010llx) subc %d "
"class 0x%04x mthd 0x%04x data 0x%08x
\n
"
,
"class 0x%04x mthd 0x%04x data 0x%08x
\n
"
,
chid
,
inst
,
subc
,
class
,
mthd
,
data
);
chid
,
inst
,
subc
,
class
,
mthd
,
data
);
nv50_fb_vm_trap
(
dev
,
1
);
}
}
}
}
...
...
drivers/gpu/drm/nouveau/nv84_crypt.c
View file @
6fdb383e
...
@@ -136,5 +136,5 @@ nv84_crypt_isr(struct drm_device *dev)
...
@@ -136,5 +136,5 @@ nv84_crypt_isr(struct drm_device *dev)
nv_wr32
(
dev
,
0x102130
,
stat
);
nv_wr32
(
dev
,
0x102130
,
stat
);
nv_wr32
(
dev
,
0x10200c
,
0x10
);
nv_wr32
(
dev
,
0x10200c
,
0x10
);
nv50_fb_vm_trap
(
dev
,
show
,
"PCRYPT"
);
nv50_fb_vm_trap
(
dev
,
show
);
}
}
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