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
af3082b3
Commit
af3082b3
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/fifo: switch to new-style timer macros
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
3a020b4d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
7 deletions
+21
-7
drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c
+4
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
+4
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
+4
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c
+5
-3
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c
+4
-1
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c
View file @
af3082b3
...
...
@@ -106,7 +106,10 @@ g84_fifo_context_detach(struct nvkm_object *parent, bool suspend,
save
=
nvkm_mask
(
device
,
0x002520
,
0x0000003f
,
1
<<
engn
);
nvkm_wr32
(
device
,
0x0032fc
,
nv_gpuobj
(
base
)
->
addr
>>
12
);
done
=
nv_wait_ne
(
fifo
,
0x0032fc
,
0xffffffff
,
0xffffffff
);
done
=
nvkm_msec
(
device
,
2000
,
if
(
nvkm_rd32
(
device
,
0x0032fc
)
!=
0xffffffff
)
break
;
)
>=
0
;
nvkm_wr32
(
device
,
0x002520
,
save
);
if
(
!
done
)
{
nv_error
(
fifo
,
"channel %d [%s] unload timeout
\n
"
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
View file @
af3082b3
...
...
@@ -166,7 +166,10 @@ gf100_fifo_context_detach(struct nvkm_object *parent, bool suspend,
}
nvkm_wr32
(
device
,
0x002634
,
chan
->
base
.
chid
);
if
(
!
nv_wait
(
fifo
,
0x002634
,
0xffffffff
,
chan
->
base
.
chid
))
{
if
(
nvkm_msec
(
device
,
2000
,
if
(
nvkm_rd32
(
device
,
0x002634
)
==
chan
->
base
.
chid
)
break
;
)
<
0
)
{
nv_error
(
fifo
,
"channel %d [%s] kick timeout
\n
"
,
chan
->
base
.
chid
,
nvkm_client_name
(
chan
));
if
(
suspend
)
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
View file @
af3082b3
...
...
@@ -174,7 +174,10 @@ gk104_fifo_chan_kick(struct gk104_fifo_chan *chan)
struct
nvkm_device
*
device
=
fifo
->
base
.
engine
.
subdev
.
device
;
nvkm_wr32
(
device
,
0x002634
,
chan
->
base
.
chid
);
if
(
!
nv_wait
(
fifo
,
0x002634
,
0x100000
,
0x000000
))
{
if
(
nvkm_msec
(
device
,
2000
,
if
(
!
(
nvkm_rd32
(
device
,
0x002634
)
&
0x00100000
))
break
;
)
<
0
)
{
nv_error
(
fifo
,
"channel %d [%s] kick timeout
\n
"
,
chan
->
base
.
chid
,
nvkm_client_name
(
chan
));
return
-
EBUSY
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c
View file @
af3082b3
...
...
@@ -321,9 +321,11 @@ __acquires(fifo->base.lock)
* to avoid this, we invalidate the most recently calculated
* instance.
*/
if
(
!
nv_wait
(
fifo
,
NV04_PFIFO_CACHE1_PULL0
,
NV04_PFIFO_CACHE1_PULL0_HASH_BUSY
,
0x00000000
))
nv_warn
(
fifo
,
"timeout idling puller
\n
"
);
nvkm_msec
(
device
,
2000
,
u32
tmp
=
nvkm_rd32
(
device
,
NV04_PFIFO_CACHE1_PULL0
);
if
(
!
(
tmp
&
NV04_PFIFO_CACHE1_PULL0_HASH_BUSY
))
break
;
);
if
(
nvkm_rd32
(
device
,
NV04_PFIFO_CACHE1_PULL0
)
&
NV04_PFIFO_CACHE1_PULL0_HASH_FAILED
)
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c
View file @
af3082b3
...
...
@@ -135,7 +135,10 @@ nv50_fifo_context_detach(struct nvkm_object *parent, bool suspend,
/* do the kickoff... */
nvkm_wr32
(
device
,
0x0032fc
,
nv_gpuobj
(
base
)
->
addr
>>
12
);
if
(
!
nv_wait_ne
(
fifo
,
0x0032fc
,
0xffffffff
,
0xffffffff
))
{
if
(
nvkm_msec
(
device
,
2000
,
if
(
nvkm_rd32
(
device
,
0x0032fc
)
!=
0xffffffff
)
break
;
)
<
0
)
{
nv_error
(
fifo
,
"channel %d [%s] unload timeout
\n
"
,
chan
->
base
.
chid
,
nvkm_client_name
(
chan
));
if
(
suspend
)
...
...
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