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
cb1567c2
Commit
cb1567c2
authored
Jan 09, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nve0/fifo: recover from mmu faults on bar1/bar3
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
649ec925
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
12 deletions
+22
-12
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
+20
-11
drivers/gpu/drm/nouveau/core/include/core/device.h
drivers/gpu/drm/nouveau/core/include/core/device.h
+2
-1
No files found.
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
View file @
cb1567c2
...
@@ -384,8 +384,8 @@ static const struct nouveau_enum nve0_fifo_sched_reason[] = {
...
@@ -384,8 +384,8 @@ static const struct nouveau_enum nve0_fifo_sched_reason[] = {
static
const
struct
nouveau_enum
nve0_fifo_fault_engine
[]
=
{
static
const
struct
nouveau_enum
nve0_fifo_fault_engine
[]
=
{
{
0x00
,
"GR"
,
NULL
,
NVDEV_ENGINE_GR
},
{
0x00
,
"GR"
,
NULL
,
NVDEV_ENGINE_GR
},
{
0x03
,
"IFB"
},
{
0x03
,
"IFB"
},
{
0x04
,
"BAR1"
},
{
0x04
,
"BAR1"
,
NULL
,
NVDEV_SUBDEV_BAR
},
{
0x05
,
"BAR3"
},
{
0x05
,
"BAR3"
,
NULL
,
NVDEV_SUBDEV_INSTMEM
},
{
0x07
,
"PBDMA0"
,
NULL
,
NVDEV_ENGINE_FIFO
},
{
0x07
,
"PBDMA0"
,
NULL
,
NVDEV_ENGINE_FIFO
},
{
0x08
,
"PBDMA1"
,
NULL
,
NVDEV_ENGINE_FIFO
},
{
0x08
,
"PBDMA1"
,
NULL
,
NVDEV_ENGINE_FIFO
},
{
0x09
,
"PBDMA2"
,
NULL
,
NVDEV_ENGINE_FIFO
},
{
0x09
,
"PBDMA2"
,
NULL
,
NVDEV_ENGINE_FIFO
},
...
@@ -549,9 +549,10 @@ nve0_fifo_intr_fault(struct nve0_fifo_priv *priv, int unit)
...
@@ -549,9 +549,10 @@ nve0_fifo_intr_fault(struct nve0_fifo_priv *priv, int unit)
u32
vahi
=
nv_rd32
(
priv
,
0x2808
+
(
unit
*
0x10
));
u32
vahi
=
nv_rd32
(
priv
,
0x2808
+
(
unit
*
0x10
));
u32
stat
=
nv_rd32
(
priv
,
0x280c
+
(
unit
*
0x10
));
u32
stat
=
nv_rd32
(
priv
,
0x280c
+
(
unit
*
0x10
));
u32
client
=
(
stat
&
0x00001f00
)
>>
8
;
u32
client
=
(
stat
&
0x00001f00
)
>>
8
;
const
struct
nouveau_enum
*
en
;
struct
nouveau_engine
*
engine
=
NULL
;
struct
nouveau_engine
*
engine
;
struct
nouveau_object
*
engctx
=
NULL
;
struct
nouveau_object
*
engctx
=
NULL
;
const
struct
nouveau_enum
*
en
;
const
char
*
name
=
"unknown"
;
nv_error
(
priv
,
"PFIFO: %s fault at 0x%010llx ["
,
(
stat
&
0x00000080
)
?
nv_error
(
priv
,
"PFIFO: %s fault at 0x%010llx ["
,
(
stat
&
0x00000080
)
?
"write"
:
"read"
,
(
u64
)
vahi
<<
32
|
valo
);
"write"
:
"read"
,
(
u64
)
vahi
<<
32
|
valo
);
...
@@ -567,14 +568,22 @@ nve0_fifo_intr_fault(struct nve0_fifo_priv *priv, int unit)
...
@@ -567,14 +568,22 @@ nve0_fifo_intr_fault(struct nve0_fifo_priv *priv, int unit)
}
}
if
(
en
&&
en
->
data2
)
{
if
(
en
&&
en
->
data2
)
{
engine
=
nouveau_engine
(
priv
,
en
->
data2
);
if
(
en
->
data2
==
NVDEV_SUBDEV_BAR
)
{
if
(
engine
)
nv_mask
(
priv
,
0x001704
,
0x00000000
,
0x00000000
);
engctx
=
nouveau_engctx_get
(
engine
,
inst
);
name
=
"BAR1"
;
}
else
if
(
en
->
data2
==
NVDEV_SUBDEV_INSTMEM
)
{
nv_mask
(
priv
,
0x001714
,
0x00000000
,
0x00000000
);
name
=
"BAR3"
;
}
else
{
engine
=
nouveau_engine
(
priv
,
en
->
data2
);
if
(
engine
)
{
engctx
=
nouveau_engctx_get
(
engine
,
inst
);
name
=
nouveau_client_name
(
engctx
);
}
}
}
}
pr_cont
(
" on channel 0x%010llx [%s]
\n
"
,
(
u64
)
inst
<<
12
,
name
);
pr_cont
(
" on channel 0x%010llx [%s]
\n
"
,
(
u64
)
inst
<<
12
,
nouveau_client_name
(
engctx
));
nouveau_engctx_put
(
engctx
);
nouveau_engctx_put
(
engctx
);
}
}
...
...
drivers/gpu/drm/nouveau/core/include/core/device.h
View file @
cb1567c2
...
@@ -38,7 +38,8 @@ enum nv_subdev_type {
...
@@ -38,7 +38,8 @@ enum nv_subdev_type {
NVDEV_SUBDEV_THERM
,
NVDEV_SUBDEV_THERM
,
NVDEV_SUBDEV_CLOCK
,
NVDEV_SUBDEV_CLOCK
,
NVDEV_ENGINE_DMAOBJ
,
NVDEV_ENGINE_FIRST
,
NVDEV_ENGINE_DMAOBJ
=
NVDEV_ENGINE_FIRST
,
NVDEV_ENGINE_FIFO
,
NVDEV_ENGINE_FIFO
,
NVDEV_ENGINE_SW
,
NVDEV_ENGINE_SW
,
NVDEV_ENGINE_GR
,
NVDEV_ENGINE_GR
,
...
...
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