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
eaa5ed65
Commit
eaa5ed65
authored
Jan 18, 2017
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/fifo/gk104-: reset all engines a killed channel is still active on
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
0faaa47d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
+13
-0
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
View file @
eaa5ed65
...
@@ -243,6 +243,7 @@ gk104_fifo_recover_chan(struct nvkm_fifo *base, int chid)
...
@@ -243,6 +243,7 @@ gk104_fifo_recover_chan(struct nvkm_fifo *base, int chid)
const
u32
stat
=
nvkm_rd32
(
device
,
0x800004
+
(
chid
*
0x08
));
const
u32
stat
=
nvkm_rd32
(
device
,
0x800004
+
(
chid
*
0x08
));
const
u32
runl
=
(
stat
&
0x000f0000
)
>>
16
;
const
u32
runl
=
(
stat
&
0x000f0000
)
>>
16
;
const
bool
used
=
(
stat
&
0x00000001
);
const
bool
used
=
(
stat
&
0x00000001
);
unsigned
long
engn
,
engm
=
fifo
->
runlist
[
runl
].
engm
;
struct
gk104_fifo_chan
*
chan
;
struct
gk104_fifo_chan
*
chan
;
assert_spin_locked
(
&
fifo
->
base
.
lock
);
assert_spin_locked
(
&
fifo
->
base
.
lock
);
...
@@ -262,6 +263,18 @@ gk104_fifo_recover_chan(struct nvkm_fifo *base, int chid)
...
@@ -262,6 +263,18 @@ gk104_fifo_recover_chan(struct nvkm_fifo *base, int chid)
/* Disable channel. */
/* Disable channel. */
nvkm_wr32
(
device
,
0x800004
+
(
chid
*
0x08
),
stat
|
0x00000800
);
nvkm_wr32
(
device
,
0x800004
+
(
chid
*
0x08
),
stat
|
0x00000800
);
nvkm_warn
(
subdev
,
"channel %d: killed
\n
"
,
chid
);
nvkm_warn
(
subdev
,
"channel %d: killed
\n
"
,
chid
);
/* Block channel assignments from changing during recovery. */
gk104_fifo_recover_runl
(
fifo
,
runl
);
/* Schedule recovery for any engines the channel is on. */
for_each_set_bit
(
engn
,
&
engm
,
fifo
->
engine_nr
)
{
struct
gk104_fifo_engine_status
status
;
gk104_fifo_engine_status
(
fifo
,
engn
,
&
status
);
if
(
!
status
.
chan
||
status
.
chan
->
id
!=
chid
)
continue
;
gk104_fifo_recover_engn
(
fifo
,
engn
);
}
}
}
static
void
static
void
...
...
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