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
82d23aea
Commit
82d23aea
authored
Oct 08, 2012
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvc0/dmaobj: stub bind function for now so we can call unconditionally
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
6c1689a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
drivers/gpu/drm/nouveau/core/engine/dmaobj/nvc0.c
drivers/gpu/drm/nouveau/core/engine/dmaobj/nvc0.c
+23
-0
drivers/gpu/drm/nouveau/core/engine/fifo/base.c
drivers/gpu/drm/nouveau/core/engine/fifo/base.c
+3
-6
No files found.
drivers/gpu/drm/nouveau/core/engine/dmaobj/nvc0.c
View file @
82d23aea
...
...
@@ -23,13 +23,35 @@
*/
#include <core/device.h>
#include <core/gpuobj.h>
#include <core/class.h>
#include <subdev/fb.h>
#include <engine/dmaobj.h>
struct
nvc0_dmaeng_priv
{
struct
nouveau_dmaeng
base
;
};
static
int
nvc0_dmaobj_bind
(
struct
nouveau_dmaeng
*
dmaeng
,
struct
nouveau_object
*
parent
,
struct
nouveau_dmaobj
*
dmaobj
,
struct
nouveau_gpuobj
**
pgpuobj
)
{
int
ret
=
0
;
if
(
!
nv_iclass
(
parent
,
NV_ENGCTX_CLASS
))
{
switch
(
nv_mclass
(
parent
->
parent
))
{
default:
return
-
EINVAL
;
}
}
else
return
0
;
return
ret
;
}
static
int
nvc0_dmaeng_ctor
(
struct
nouveau_object
*
parent
,
struct
nouveau_object
*
engine
,
struct
nouveau_oclass
*
oclass
,
void
*
data
,
u32
size
,
...
...
@@ -44,6 +66,7 @@ nvc0_dmaeng_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
ret
;
nv_engine
(
priv
)
->
sclass
=
nouveau_dmaobj_sclass
;
priv
->
base
.
bind
=
nvc0_dmaobj_bind
;
return
0
;
}
...
...
drivers/gpu/drm/nouveau/core/engine/fifo/base.c
View file @
82d23aea
...
...
@@ -64,12 +64,9 @@ nouveau_fifo_channel_create_(struct nouveau_object *parent,
return
-
EINVAL
;
}
if
(
dmaeng
->
bind
)
{
ret
=
dmaeng
->
bind
(
dmaeng
,
parent
,
chan
->
pushdma
,
&
chan
->
pushgpu
);
ret
=
dmaeng
->
bind
(
dmaeng
,
parent
,
chan
->
pushdma
,
&
chan
->
pushgpu
);
if
(
ret
)
return
ret
;
}
/* find a free fifo channel */
spin_lock_irqsave
(
&
priv
->
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