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
138b873f
Commit
138b873f
authored
Feb 23, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nve0/fifo: runlist intr
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
c074bdbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
+17
-10
No files found.
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
View file @
138b873f
...
...
@@ -60,6 +60,7 @@ static const struct {
struct
nve0_fifo_engn
{
struct
nouveau_gpuobj
*
runlist
[
2
];
int
cur_runlist
;
wait_queue_head_t
wait
;
};
struct
nve0_fifo_priv
{
...
...
@@ -646,6 +647,18 @@ nve0_fifo_intr_pbdma(struct nve0_fifo_priv *priv, int unit)
nv_wr32
(
priv
,
0x040108
+
(
unit
*
0x2000
),
stat
);
}
static
void
nve0_fifo_intr_runlist
(
struct
nve0_fifo_priv
*
priv
)
{
u32
mask
=
nv_rd32
(
priv
,
0x002a00
);
while
(
mask
)
{
u32
engn
=
__ffs
(
mask
);
wake_up
(
&
priv
->
engine
[
engn
].
wait
);
nv_wr32
(
priv
,
0x002a00
,
1
<<
engn
);
mask
&=
~
(
1
<<
engn
);
}
}
static
void
nve0_fifo_intr_engine
(
struct
nve0_fifo_priv
*
priv
)
{
...
...
@@ -731,14 +744,7 @@ nve0_fifo_intr(struct nouveau_subdev *subdev)
}
if
(
stat
&
0x40000000
)
{
u32
mask
=
nv_mask
(
priv
,
0x002a00
,
0x00000000
,
0x00000000
);
while
(
mask
)
{
u32
engn
=
ffs
(
mask
)
-
1
;
/* runlist event, not currently used */
mask
&=
~
(
1
<<
engn
);
}
nve0_fifo_intr_runlist
(
priv
);
stat
&=
~
0x40000000
;
}
...
...
@@ -808,9 +814,8 @@ nve0_fifo_init(struct nouveau_object *object)
nv_wr32
(
priv
,
0x002254
,
0x10000000
|
priv
->
user
.
bar
.
offset
>>
12
);
nv_wr32
(
priv
,
0x002a00
,
0xffffffff
);
nv_wr32
(
priv
,
0x002100
,
0xffffffff
);
nv_wr32
(
priv
,
0x002140
,
0x
3
fffffff
);
nv_wr32
(
priv
,
0x002140
,
0x
7
fffffff
);
return
0
;
}
...
...
@@ -856,6 +861,8 @@ nve0_fifo_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
0
,
&
priv
->
engine
[
i
].
runlist
[
1
]);
if
(
ret
)
return
ret
;
init_waitqueue_head
(
&
priv
->
engine
[
i
].
wait
);
}
ret
=
nouveau_gpuobj_new
(
nv_object
(
priv
),
NULL
,
impl
->
channels
*
0x200
,
...
...
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