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
750087f1
Commit
750087f1
authored
Jan 31, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/fifo/nv84: support user event trigger
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
9bd2ddba
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
drivers/gpu/drm/nouveau/core/engine/fifo/nv04.c
drivers/gpu/drm/nouveau/core/engine/fifo/nv04.c
+7
-0
drivers/gpu/drm/nouveau/core/engine/fifo/nv50.c
drivers/gpu/drm/nouveau/core/engine/fifo/nv50.c
+1
-1
drivers/gpu/drm/nouveau/core/engine/fifo/nv84.c
drivers/gpu/drm/nouveau/core/engine/fifo/nv84.c
+19
-0
No files found.
drivers/gpu/drm/nouveau/core/engine/fifo/nv04.c
View file @
750087f1
...
...
@@ -28,6 +28,7 @@
#include <core/namedb.h>
#include <core/handle.h>
#include <core/ramht.h>
#include <core/event.h>
#include <subdev/instmem.h>
#include <subdev/instmem/nv04.h>
...
...
@@ -536,6 +537,12 @@ nv04_fifo_intr(struct nouveau_subdev *subdev)
status
&=
~
0x00000010
;
nv_wr32
(
priv
,
0x002100
,
0x00000010
);
}
if
(
status
&
0x40000000
)
{
nouveau_event_trigger
(
priv
->
base
.
uevent
,
0
);
nv_wr32
(
priv
,
0x002100
,
0x40000000
);
status
&=
~
0x40000000
;
}
}
if
(
status
)
{
...
...
drivers/gpu/drm/nouveau/core/engine/fifo/nv50.c
View file @
750087f1
...
...
@@ -481,7 +481,7 @@ nv50_fifo_init(struct nouveau_object *object)
nv_wr32
(
priv
,
0x002044
,
0x01003fff
);
nv_wr32
(
priv
,
0x002100
,
0xffffffff
);
nv_wr32
(
priv
,
0x002140
,
0x
f
fffffff
);
nv_wr32
(
priv
,
0x002140
,
0x
b
fffffff
);
for
(
i
=
0
;
i
<
128
;
i
++
)
nv_wr32
(
priv
,
0x002600
+
(
i
*
4
),
0x00000000
);
...
...
drivers/gpu/drm/nouveau/core/engine/fifo/nv84.c
View file @
750087f1
...
...
@@ -26,6 +26,7 @@
#include <core/client.h>
#include <core/engctx.h>
#include <core/ramht.h>
#include <core/event.h>
#include <core/class.h>
#include <core/math.h>
...
...
@@ -379,6 +380,20 @@ nv84_fifo_cclass = {
* PFIFO engine
******************************************************************************/
static
void
nv84_fifo_uevent_enable
(
struct
nouveau_event
*
event
,
int
index
)
{
struct
nv84_fifo_priv
*
priv
=
event
->
priv
;
nv_mask
(
priv
,
0x002140
,
0x40000000
,
0x40000000
);
}
static
void
nv84_fifo_uevent_disable
(
struct
nouveau_event
*
event
,
int
index
)
{
struct
nv84_fifo_priv
*
priv
=
event
->
priv
;
nv_mask
(
priv
,
0x002140
,
0x40000000
,
0x00000000
);
}
static
int
nv84_fifo_ctor
(
struct
nouveau_object
*
parent
,
struct
nouveau_object
*
engine
,
struct
nouveau_oclass
*
oclass
,
void
*
data
,
u32
size
,
...
...
@@ -402,6 +417,10 @@ nv84_fifo_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if
(
ret
)
return
ret
;
priv
->
base
.
uevent
->
enable
=
nv84_fifo_uevent_enable
;
priv
->
base
.
uevent
->
disable
=
nv84_fifo_uevent_disable
;
priv
->
base
.
uevent
->
priv
=
priv
;
nv_subdev
(
priv
)
->
unit
=
0x00000100
;
nv_subdev
(
priv
)
->
intr
=
nv04_fifo_intr
;
nv_engine
(
priv
)
->
cclass
=
&
nv84_fifo_cclass
;
...
...
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