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
86b40432
Commit
86b40432
authored
Jun 21, 2016
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/ltc/gm107-: decode interrupt status to human-readable strings
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
b1687b3e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
+1
-2
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
+7
-3
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/priv.h
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/priv.h
+2
-0
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
View file @
86b40432
...
...
@@ -23,7 +23,6 @@
*/
#include "priv.h"
#include <core/enum.h>
#include <subdev/fb.h>
#include <subdev/timer.h>
...
...
@@ -71,7 +70,7 @@ gf100_ltc_zbc_clear_depth(struct nvkm_ltc *ltc, int i, const u32 depth)
nvkm_wr32
(
device
,
0x17ea58
,
depth
);
}
static
const
struct
nvkm_bitfield
const
struct
nvkm_bitfield
gf100_ltc_lts_intr_name
[]
=
{
{
0x00000001
,
"IDLE_ERROR_IQ"
},
{
0x00000002
,
"IDLE_ERROR_CBC"
},
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
View file @
86b40432
...
...
@@ -74,12 +74,16 @@ gm107_ltc_intr_lts(struct nvkm_ltc *ltc, int c, int s)
struct
nvkm_subdev
*
subdev
=
&
ltc
->
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
base
=
0x140400
+
(
c
*
0x2000
)
+
(
s
*
0x200
);
u32
stat
=
nvkm_rd32
(
device
,
base
+
0x00c
);
u32
intr
=
nvkm_rd32
(
device
,
base
+
0x00c
);
u16
stat
=
intr
&
0x0000ffff
;
char
msg
[
128
];
if
(
stat
)
{
nvkm_
error
(
subdev
,
"LTC%d_LTS%d: %08x
\n
"
,
c
,
s
,
stat
);
nvkm_
wr32
(
device
,
base
+
0x00c
,
stat
);
nvkm_
snprintbf
(
msg
,
sizeof
(
msg
),
gf100_ltc_lts_intr_name
,
stat
);
nvkm_
error
(
subdev
,
"LTC%d_LTS%d: %08x [%s]
\n
"
,
c
,
s
,
intr
,
msg
);
}
nvkm_wr32
(
device
,
base
+
0x00c
,
intr
);
}
void
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/priv.h
View file @
86b40432
...
...
@@ -2,6 +2,7 @@
#define __NVKM_LTC_PRIV_H__
#define nvkm_ltc(p) container_of((p), struct nvkm_ltc, subdev)
#include <subdev/ltc.h>
#include <core/enum.h>
int
nvkm_ltc_new_
(
const
struct
nvkm_ltc_func
*
,
struct
nvkm_device
*
,
int
index
,
struct
nvkm_ltc
**
);
...
...
@@ -31,6 +32,7 @@ void gf100_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
void
gf100_ltc_zbc_clear_depth
(
struct
nvkm_ltc
*
,
int
,
const
u32
);
void
gf100_ltc_invalidate
(
struct
nvkm_ltc
*
);
void
gf100_ltc_flush
(
struct
nvkm_ltc
*
);
extern
const
struct
nvkm_bitfield
gf100_ltc_lts_intr_name
[];
void
gm107_ltc_intr
(
struct
nvkm_ltc
*
);
void
gm107_ltc_cbc_clear
(
struct
nvkm_ltc
*
,
u32
,
u32
);
...
...
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