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
fe32b16e
Commit
fe32b16e
authored
13 years ago
by
Ben Skeggs
Browse files
Options
Downloads
Patches
Plain Diff
drm/nv50-nvc0/vm: take client reference on shared channel vm
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
b79181cb
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/nouveau_drv.h
+1
-0
1 addition, 0 deletions
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_state.c
+5
-0
5 additions, 0 deletions
drivers/gpu/drm/nouveau/nouveau_state.c
with
6 additions
and
0 deletions
drivers/gpu/drm/nouveau/nouveau_drv.h
+
1
−
0
View file @
fe32b16e
...
...
@@ -48,6 +48,7 @@
struct
nouveau_fpriv
{
spinlock_t
lock
;
struct
list_head
channels
;
struct
nouveau_vm
*
vm
;
};
static
inline
struct
nouveau_fpriv
*
...
...
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nouveau_state.c
+
5
−
0
View file @
fe32b16e
...
...
@@ -767,6 +767,7 @@ static void nouveau_card_takedown(struct drm_device *dev)
int
nouveau_open
(
struct
drm_device
*
dev
,
struct
drm_file
*
file_priv
)
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
nouveau_fpriv
*
fpriv
;
fpriv
=
kzalloc
(
sizeof
(
*
fpriv
),
GFP_KERNEL
);
...
...
@@ -776,6 +777,9 @@ nouveau_open(struct drm_device *dev, struct drm_file *file_priv)
spin_lock_init
(
&
fpriv
->
lock
);
INIT_LIST_HEAD
(
&
fpriv
->
channels
);
if
(
dev_priv
->
card_type
>=
NV_50
)
nouveau_vm_ref
(
dev_priv
->
chan_vm
,
&
fpriv
->
vm
,
NULL
);
file_priv
->
driver_priv
=
fpriv
;
return
0
;
}
...
...
@@ -791,6 +795,7 @@ void
nouveau_postclose
(
struct
drm_device
*
dev
,
struct
drm_file
*
file_priv
)
{
struct
nouveau_fpriv
*
fpriv
=
nouveau_fpriv
(
file_priv
);
nouveau_vm_ref
(
NULL
,
&
fpriv
->
vm
,
NULL
);
kfree
(
fpriv
);
}
...
...
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