Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
R128
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ermine
R128
Commits
30d81817
Commit
30d81817
authored
14 years ago
by
Ben Skeggs
Browse files
Options
Downloads
Patches
Plain Diff
drm/nv50-nvc0: disp channels have fixed purposes, don't "allocate" them
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
59c0f578
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/gpu/drm/nouveau/nv50_display.h
+0
-1
0 additions, 1 deletion
drivers/gpu/drm/nouveau/nv50_display.h
drivers/gpu/drm/nouveau/nv50_evo.c
+4
-19
4 additions, 19 deletions
drivers/gpu/drm/nouveau/nv50_evo.c
with
4 additions
and
20 deletions
drivers/gpu/drm/nouveau/nv50_display.h
+
0
−
1
View file @
30d81817
...
...
@@ -37,7 +37,6 @@
struct
nv50_display
{
struct
nouveau_channel
*
master
;
u32
evo_alloc
;
struct
{
struct
dcb_entry
*
dcb
;
...
...
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nv50_evo.c
+
4
−
19
View file @
30d81817
...
...
@@ -33,15 +33,11 @@ static void
nv50_evo_channel_del
(
struct
nouveau_channel
**
pevo
)
{
struct
nouveau_channel
*
evo
=
*
pevo
;
struct
nv50_display
*
disp
;
if
(
!
evo
)
return
;
*
pevo
=
NULL
;
disp
=
nv50_display
(
evo
->
dev
);
disp
->
evo_alloc
&=
~
(
1
<<
evo
->
id
);
nouveau_gpuobj_channel_takedown
(
evo
);
nouveau_bo_unmap
(
evo
->
pushbuf_bo
);
nouveau_bo_ref
(
NULL
,
&
evo
->
pushbuf_bo
);
...
...
@@ -85,7 +81,8 @@ nv50_evo_dmaobj_new(struct nouveau_channel *evo, u32 class, u32 name,
}
static
int
nv50_evo_channel_new
(
struct
drm_device
*
dev
,
struct
nouveau_channel
**
pevo
)
nv50_evo_channel_new
(
struct
drm_device
*
dev
,
int
chid
,
struct
nouveau_channel
**
pevo
)
{
struct
nv50_display
*
disp
=
nv50_display
(
dev
);
struct
nouveau_channel
*
evo
;
...
...
@@ -96,19 +93,7 @@ nv50_evo_channel_new(struct drm_device *dev, struct nouveau_channel **pevo)
return
-
ENOMEM
;
*
pevo
=
evo
;
for
(
evo
->
id
=
0
;
evo
->
id
<
5
;
evo
->
id
++
)
{
if
(
disp
->
evo_alloc
&
(
1
<<
evo
->
id
))
continue
;
disp
->
evo_alloc
|=
(
1
<<
evo
->
id
);
break
;
}
if
(
evo
->
id
==
5
)
{
kfree
(
evo
);
return
-
ENODEV
;
}
evo
->
id
=
chid
;
evo
->
dev
=
dev
;
evo
->
user_get
=
4
;
evo
->
user_put
=
0
;
...
...
@@ -225,7 +210,7 @@ nv50_evo_create(struct drm_device *dev)
/* create primary evo channel, the one we use for modesetting
* purporses
*/
ret
=
nv50_evo_channel_new
(
dev
,
&
disp
->
master
);
ret
=
nv50_evo_channel_new
(
dev
,
0
,
&
disp
->
master
);
if
(
ret
)
return
ret
;
evo
=
disp
->
master
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment