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
91b9d659
Commit
91b9d659
authored
Jan 18, 2017
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/fifo/gk104-: directly use new recovery code for ctxsw timeout
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
3534821d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
24 deletions
+6
-24
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
+6
-24
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
View file @
91b9d659
...
...
@@ -305,20 +305,6 @@ gk104_fifo_recover_engn(struct gk104_fifo *fifo, int engn)
schedule_work
(
&
fifo
->
recover
.
work
);
}
static
void
gk104_fifo_recover
(
struct
gk104_fifo
*
fifo
,
struct
nvkm_engine
*
engine
,
struct
gk104_fifo_chan
*
chan
)
{
int
engn
;
for
(
engn
=
0
;
engn
<
fifo
->
engine_nr
;
engn
++
)
{
if
(
fifo
->
engine
[
engn
].
engine
==
engine
)
{
gk104_fifo_recover_engn
(
fifo
,
engn
);
break
;
}
}
gk104_fifo_recover_chan
(
&
fifo
->
base
,
chan
->
base
.
chid
);
}
static
const
struct
nvkm_enum
gk104_fifo_bind_reason
[]
=
{
{
0x01
,
"BIND_NOT_UNBOUND"
},
...
...
@@ -352,27 +338,23 @@ gk104_fifo_sched_reason[] = {
static
void
gk104_fifo_intr_sched_ctxsw
(
struct
gk104_fifo
*
fifo
)
{
struct
gk104_fifo_chan
*
chan
;
unsigned
long
flags
;
unsigned
long
flags
,
engm
=
0
;
u32
engn
;
spin_lock_irqsave
(
&
fifo
->
base
.
lock
,
flags
);
for
(
engn
=
0
;
engn
<
fifo
->
engine_nr
;
engn
++
)
{
struct
nvkm_engine
*
engine
=
fifo
->
engine
[
engn
].
engine
;
int
runl
=
fifo
->
engine
[
engn
].
runl
;
struct
gk104_fifo_engine_status
status
;
gk104_fifo_engine_status
(
fifo
,
engn
,
&
status
);
if
(
!
status
.
busy
||
!
status
.
chsw
)
continue
;
list_for_each_entry
(
chan
,
&
fifo
->
runlist
[
runl
].
chan
,
head
)
{
if
(
chan
->
base
.
chid
==
status
.
chan
->
id
&&
engine
)
{
gk104_fifo_recover
(
fifo
,
engine
,
chan
);
break
;
}
}
engm
|=
BIT
(
engn
);
}
for_each_set_bit
(
engn
,
&
engm
,
fifo
->
engine_nr
)
gk104_fifo_recover_engn
(
fifo
,
engn
);
spin_unlock_irqrestore
(
&
fifo
->
base
.
lock
,
flags
);
}
...
...
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