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
a1fc50b4
Commit
a1fc50b4
authored
Aug 12, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/gf100/ltc: translate interrupt status into more meaningful names
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
9ea97ff8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
5 deletions
+29
-5
drivers/gpu/drm/nouveau/core/subdev/ltc/gf100.c
drivers/gpu/drm/nouveau/core/subdev/ltc/gf100.c
+27
-5
drivers/gpu/drm/nouveau/core/subdev/ltc/priv.h
drivers/gpu/drm/nouveau/core/subdev/ltc/priv.h
+2
-0
No files found.
drivers/gpu/drm/nouveau/core/subdev/ltc/gf100.c
View file @
a1fc50b4
...
@@ -62,16 +62,38 @@ gf100_ltc_zbc_clear_depth(struct nvkm_ltc_priv *priv, int i, const u32 depth)
...
@@ -62,16 +62,38 @@ gf100_ltc_zbc_clear_depth(struct nvkm_ltc_priv *priv, int i, const u32 depth)
nv_wr32
(
priv
,
0x17ea58
,
depth
);
nv_wr32
(
priv
,
0x17ea58
,
depth
);
}
}
static
const
struct
nouveau_bitfield
gf100_ltc_lts_intr_name
[]
=
{
{
0x00000001
,
"IDLE_ERROR_IQ"
},
{
0x00000002
,
"IDLE_ERROR_CBC"
},
{
0x00000004
,
"IDLE_ERROR_TSTG"
},
{
0x00000008
,
"IDLE_ERROR_DSTG"
},
{
0x00000010
,
"EVICTED_CB"
},
{
0x00000020
,
"ILLEGAL_COMPSTAT"
},
{
0x00000040
,
"BLOCKLINEAR_CB"
},
{
0x00000100
,
"ECC_SEC_ERROR"
},
{
0x00000200
,
"ECC_DED_ERROR"
},
{
0x00000400
,
"DEBUG"
},
{
0x00000800
,
"ATOMIC_TO_Z"
},
{
0x00001000
,
"ILLEGAL_ATOMIC"
},
{
0x00002000
,
"BLKACTIVITY_ERR"
},
{}
};
static
void
static
void
gf100_ltc_lts_i
s
r
(
struct
nvkm_ltc_priv
*
priv
,
int
ltc
,
int
lts
)
gf100_ltc_lts_i
nt
r
(
struct
nvkm_ltc_priv
*
priv
,
int
ltc
,
int
lts
)
{
{
u32
base
=
0x141000
+
(
ltc
*
0x2000
)
+
(
lts
*
0x400
);
u32
base
=
0x141000
+
(
ltc
*
0x2000
)
+
(
lts
*
0x400
);
u32
stat
=
nv_rd32
(
priv
,
base
+
0x020
);
u32
intr
=
nv_rd32
(
priv
,
base
+
0x020
);
u32
stat
=
intr
&
0x0000ffff
;
if
(
stat
)
{
if
(
stat
)
{
nv_info
(
priv
,
"LTC%d_LTS%d: 0x%08x
\n
"
,
ltc
,
lts
,
stat
);
nv_info
(
priv
,
"LTC%d_LTS%d:"
,
ltc
,
lts
);
nv_wr32
(
priv
,
base
+
0x020
,
stat
);
nouveau_bitfield_print
(
gf100_ltc_lts_intr_name
,
stat
);
pr_cont
(
"
\n
"
);
}
}
nv_wr32
(
priv
,
base
+
0x020
,
intr
);
}
}
void
void
...
@@ -84,7 +106,7 @@ gf100_ltc_intr(struct nouveau_subdev *subdev)
...
@@ -84,7 +106,7 @@ gf100_ltc_intr(struct nouveau_subdev *subdev)
while
(
mask
)
{
while
(
mask
)
{
u32
lts
,
ltc
=
__ffs
(
mask
);
u32
lts
,
ltc
=
__ffs
(
mask
);
for
(
lts
=
0
;
lts
<
priv
->
lts_nr
;
lts
++
)
for
(
lts
=
0
;
lts
<
priv
->
lts_nr
;
lts
++
)
gf100_ltc_lts_i
s
r
(
priv
,
ltc
,
lts
);
gf100_ltc_lts_i
nt
r
(
priv
,
ltc
,
lts
);
mask
&=
~
(
1
<<
ltc
);
mask
&=
~
(
1
<<
ltc
);
}
}
}
}
...
...
drivers/gpu/drm/nouveau/core/subdev/ltc/priv.h
View file @
a1fc50b4
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
#include <subdev/ltc.h>
#include <subdev/ltc.h>
#include <subdev/fb.h>
#include <subdev/fb.h>
#include <core/enum.h>
struct
nvkm_ltc_priv
{
struct
nvkm_ltc_priv
{
struct
nouveau_ltc
base
;
struct
nouveau_ltc
base
;
u32
ltc_nr
;
u32
ltc_nr
;
...
...
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