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
9cf6ba20
Commit
9cf6ba20
authored
Feb 20, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50-/disp: dump channel state when update method fails
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
b62b9ec2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
12 deletions
+81
-12
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c
+32
-0
drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c
drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c
+49
-12
No files found.
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c
View file @
9cf6ba20
...
...
@@ -1058,6 +1058,7 @@ nv50_disp_intr_error_code[] = {
static
void
nv50_disp_intr_error
(
struct
nv50_disp_priv
*
priv
,
int
chid
)
{
struct
nv50_disp_impl
*
impl
=
(
void
*
)
nv_object
(
priv
)
->
oclass
;
u32
data
=
nv_rd32
(
priv
,
0x610084
+
(
chid
*
0x08
));
u32
addr
=
nv_rd32
(
priv
,
0x610080
+
(
chid
*
0x08
));
u32
code
=
(
addr
&
0x00ff0000
)
>>
16
;
...
...
@@ -1078,6 +1079,37 @@ nv50_disp_intr_error(struct nv50_disp_priv *priv, int chid)
et
?
et
->
name
:
etunk
,
ec
?
ec
->
name
:
ecunk
,
chid
,
mthd
,
data
);
if
(
chid
==
0
)
{
switch
(
mthd
)
{
case
0x0080
:
nv50_disp_mthd_chan
(
priv
,
NV_DBG_ERROR
,
chid
-
0
,
impl
->
mthd
.
core
);
break
;
default:
break
;
}
}
else
if
(
chid
<=
2
)
{
switch
(
mthd
)
{
case
0x0080
:
nv50_disp_mthd_chan
(
priv
,
NV_DBG_ERROR
,
chid
-
1
,
impl
->
mthd
.
base
);
break
;
default:
break
;
}
}
else
if
(
chid
<=
4
)
{
switch
(
mthd
)
{
case
0x0080
:
nv50_disp_mthd_chan
(
priv
,
NV_DBG_ERROR
,
chid
-
3
,
impl
->
mthd
.
ovly
);
break
;
default:
break
;
}
}
nv_wr32
(
priv
,
0x610020
,
0x00010000
<<
chid
);
nv_wr32
(
priv
,
0x610080
+
(
chid
*
0x08
),
0x90000000
);
}
...
...
drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c
View file @
9cf6ba20
...
...
@@ -1222,6 +1222,53 @@ nvd0_disp_intr_supervisor(struct work_struct *work)
nv_wr32
(
priv
,
0x6101d0
,
0x80000000
);
}
static
void
nvd0_disp_intr_error
(
struct
nv50_disp_priv
*
priv
,
int
chid
)
{
const
struct
nv50_disp_impl
*
impl
=
(
void
*
)
nv_object
(
priv
)
->
oclass
;
u32
mthd
=
nv_rd32
(
priv
,
0x6101f0
+
(
chid
*
12
));
u32
data
=
nv_rd32
(
priv
,
0x6101f4
+
(
chid
*
12
));
u32
unkn
=
nv_rd32
(
priv
,
0x6101f8
+
(
chid
*
12
));
nv_error
(
priv
,
"chid %d mthd 0x%04x data 0x%08x "
"0x%08x 0x%08x
\n
"
,
chid
,
(
mthd
&
0x0000ffc
),
data
,
mthd
,
unkn
);
if
(
chid
==
0
)
{
switch
(
mthd
)
{
case
0x0080
:
nv50_disp_mthd_chan
(
priv
,
NV_DBG_ERROR
,
chid
-
0
,
impl
->
mthd
.
core
);
break
;
default:
break
;
}
}
else
if
(
chid
<=
4
)
{
switch
(
mthd
)
{
case
0x0080
:
nv50_disp_mthd_chan
(
priv
,
NV_DBG_ERROR
,
chid
-
1
,
impl
->
mthd
.
base
);
break
;
default:
break
;
}
}
else
if
(
chid
<=
8
)
{
switch
(
mthd
)
{
case
0x0080
:
nv50_disp_mthd_chan
(
priv
,
NV_DBG_ERROR
,
chid
-
5
,
impl
->
mthd
.
ovly
);
break
;
default:
break
;
}
}
nv_wr32
(
priv
,
0x61009c
,
(
1
<<
chid
));
nv_wr32
(
priv
,
0x6101f0
+
(
chid
*
12
),
0x90000000
);
}
void
nvd0_disp_intr
(
struct
nouveau_subdev
*
subdev
)
{
...
...
@@ -1238,18 +1285,8 @@ nvd0_disp_intr(struct nouveau_subdev *subdev)
if
(
intr
&
0x00000002
)
{
u32
stat
=
nv_rd32
(
priv
,
0x61009c
);
int
chid
=
ffs
(
stat
)
-
1
;
if
(
chid
>=
0
)
{
u32
mthd
=
nv_rd32
(
priv
,
0x6101f0
+
(
chid
*
12
));
u32
data
=
nv_rd32
(
priv
,
0x6101f4
+
(
chid
*
12
));
u32
unkn
=
nv_rd32
(
priv
,
0x6101f8
+
(
chid
*
12
));
nv_error
(
priv
,
"chid %d mthd 0x%04x data 0x%08x "
"0x%08x 0x%08x
\n
"
,
chid
,
(
mthd
&
0x0000ffc
),
data
,
mthd
,
unkn
);
nv_wr32
(
priv
,
0x61009c
,
(
1
<<
chid
));
nv_wr32
(
priv
,
0x6101f0
+
(
chid
*
12
),
0x90000000
);
}
if
(
chid
>=
0
)
nvd0_disp_intr_error
(
priv
,
chid
);
intr
&=
~
0x00000002
;
}
...
...
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