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
59e1a2f1
Commit
59e1a2f1
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/ltc: switch to subdev printk macros
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
00c55507
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
+5
-4
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
+3
-2
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
View file @
59e1a2f1
...
...
@@ -92,15 +92,16 @@ gf100_ltc_lts_intr_name[] = {
static
void
gf100_ltc_lts_intr
(
struct
nvkm_ltc_priv
*
ltc
,
int
c
,
int
s
)
{
struct
nvkm_device
*
device
=
ltc
->
base
.
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
ltc
->
base
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
base
=
0x141000
+
(
c
*
0x2000
)
+
(
s
*
0x400
);
u32
intr
=
nvkm_rd32
(
device
,
base
+
0x020
);
u32
stat
=
intr
&
0x0000ffff
;
char
msg
[
128
];
if
(
stat
)
{
nv_info
(
ltc
,
"LTC%d_LTS%d:"
,
c
,
s
);
nvkm_bitfield_print
(
gf100_ltc_lts_intr_name
,
stat
);
pr_cont
(
"
\n
"
);
nvkm_snprintbf
(
msg
,
sizeof
(
msg
),
gf100_ltc_lts_intr_name
,
stat
);
nvkm_error
(
subdev
,
"LTC%d_LTS%d: %08x [%s]
\n
"
,
c
,
s
,
stat
,
msg
);
}
nvkm_wr32
(
device
,
base
+
0x020
,
intr
);
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
View file @
59e1a2f1
...
...
@@ -73,12 +73,13 @@ gm107_ltc_zbc_clear_depth(struct nvkm_ltc_priv *ltc, int i, const u32 depth)
static
void
gm107_ltc_lts_isr
(
struct
nvkm_ltc_priv
*
ltc
,
int
c
,
int
s
)
{
struct
nvkm_device
*
device
=
ltc
->
base
.
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
ltc
->
base
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
base
=
0x140000
+
(
c
*
0x2000
)
+
(
s
*
0x400
);
u32
stat
=
nvkm_rd32
(
device
,
base
+
0x00c
);
if
(
stat
)
{
nv
_info
(
ltc
,
"LTC%d_LTS%d: 0x
%08x
\n
"
,
c
,
s
,
stat
);
nv
km_error
(
subdev
,
"LTC%d_LTS%d:
%08x
\n
"
,
c
,
s
,
stat
);
nvkm_wr32
(
device
,
base
+
0x00c
,
stat
);
}
}
...
...
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