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
1302bcbb
Commit
1302bcbb
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/ltc: switch to new-style timer macros
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
63bb5c39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
+8
-2
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
+8
-2
No files found.
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
View file @
1302bcbb
...
...
@@ -39,10 +39,16 @@ gf100_ltc_cbc_clear(struct nvkm_ltc_priv *ltc, u32 start, u32 limit)
void
gf100_ltc_cbc_wait
(
struct
nvkm_ltc_priv
*
ltc
)
{
struct
nvkm_device
*
device
=
ltc
->
base
.
subdev
.
device
;
int
c
,
s
;
for
(
c
=
0
;
c
<
ltc
->
ltc_nr
;
c
++
)
{
for
(
s
=
0
;
s
<
ltc
->
lts_nr
;
s
++
)
nv_wait
(
ltc
,
0x1410c8
+
c
*
0x2000
+
s
*
0x400
,
~
0
,
0
);
for
(
s
=
0
;
s
<
ltc
->
lts_nr
;
s
++
)
{
const
u32
addr
=
0x1410c8
+
(
c
*
0x2000
)
+
(
s
*
0x400
);
nvkm_msec
(
device
,
2000
,
if
(
!
nvkm_rd32
(
device
,
addr
))
break
;
);
}
}
}
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
View file @
1302bcbb
...
...
@@ -38,10 +38,16 @@ gm107_ltc_cbc_clear(struct nvkm_ltc_priv *ltc, u32 start, u32 limit)
static
void
gm107_ltc_cbc_wait
(
struct
nvkm_ltc_priv
*
ltc
)
{
struct
nvkm_device
*
device
=
ltc
->
base
.
subdev
.
device
;
int
c
,
s
;
for
(
c
=
0
;
c
<
ltc
->
ltc_nr
;
c
++
)
{
for
(
s
=
0
;
s
<
ltc
->
lts_nr
;
s
++
)
nv_wait
(
ltc
,
0x14046c
+
c
*
0x2000
+
s
*
0x200
,
~
0
,
0
);
for
(
s
=
0
;
s
<
ltc
->
lts_nr
;
s
++
)
{
const
u32
addr
=
0x14046c
+
(
c
*
0x2000
)
+
(
s
*
0x200
);
nvkm_msec
(
device
,
2000
,
if
(
!
nvkm_rd32
(
device
,
addr
))
break
;
);
}
}
}
...
...
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