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
9d59e8a1
Commit
9d59e8a1
authored
Aug 27, 2010
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: require explicit unmap of kmapped bos
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
e694438d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
3 deletions
+7
-3
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_bo.c
+2
-3
drivers/gpu/drm/nouveau/nouveau_channel.c
drivers/gpu/drm/nouveau/nouveau_channel.c
+1
-0
drivers/gpu/drm/nouveau/nv04_crtc.c
drivers/gpu/drm/nouveau/nv04_crtc.c
+1
-0
drivers/gpu/drm/nouveau/nv50_crtc.c
drivers/gpu/drm/nouveau/nv50_crtc.c
+2
-0
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_display.c
+1
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_bo.c
View file @
9d59e8a1
...
...
@@ -58,8 +58,6 @@ nouveau_bo_del_ttm(struct ttm_buffer_object *bo)
struct
drm_device
*
dev
=
dev_priv
->
dev
;
struct
nouveau_bo
*
nvbo
=
nouveau_bo
(
bo
);
ttm_bo_kunmap
(
&
nvbo
->
kmap
);
if
(
unlikely
(
nvbo
->
gem
))
DRM_ERROR
(
"bo %p still attached to GEM object
\n
"
,
bo
);
...
...
@@ -305,6 +303,7 @@ nouveau_bo_map(struct nouveau_bo *nvbo)
void
nouveau_bo_unmap
(
struct
nouveau_bo
*
nvbo
)
{
if
(
nvbo
)
ttm_bo_kunmap
(
&
nvbo
->
kmap
);
}
...
...
drivers/gpu/drm/nouveau/nouveau_channel.c
View file @
9d59e8a1
...
...
@@ -310,6 +310,7 @@ nouveau_channel_free(struct nouveau_channel *chan)
/* Release the channel's resources */
nouveau_gpuobj_ref_del
(
dev
,
&
chan
->
pushbuf
);
if
(
chan
->
pushbuf_bo
)
{
nouveau_bo_unmap
(
chan
->
pushbuf_bo
);
nouveau_bo_unpin
(
chan
->
pushbuf_bo
);
nouveau_bo_ref
(
NULL
,
&
chan
->
pushbuf_bo
);
}
...
...
drivers/gpu/drm/nouveau/nv04_crtc.c
View file @
9d59e8a1
...
...
@@ -718,6 +718,7 @@ static void nv_crtc_destroy(struct drm_crtc *crtc)
drm_crtc_cleanup
(
crtc
);
nouveau_bo_unmap
(
nv_crtc
->
cursor
.
nvbo
);
nouveau_bo_ref
(
NULL
,
&
nv_crtc
->
cursor
.
nvbo
);
kfree
(
nv_crtc
);
}
...
...
drivers/gpu/drm/nouveau/nv50_crtc.c
View file @
9d59e8a1
...
...
@@ -338,7 +338,9 @@ nv50_crtc_destroy(struct drm_crtc *crtc)
nv50_cursor_fini
(
nv_crtc
);
nouveau_bo_unmap
(
nv_crtc
->
lut
.
nvbo
);
nouveau_bo_ref
(
NULL
,
&
nv_crtc
->
lut
.
nvbo
);
nouveau_bo_unmap
(
nv_crtc
->
cursor
.
nvbo
);
nouveau_bo_ref
(
NULL
,
&
nv_crtc
->
cursor
.
nvbo
);
kfree
(
nv_crtc
->
mode
);
kfree
(
nv_crtc
);
...
...
drivers/gpu/drm/nouveau/nv50_display.c
View file @
9d59e8a1
...
...
@@ -42,6 +42,7 @@ nv50_evo_channel_del(struct nouveau_channel **pchan)
*
pchan
=
NULL
;
nouveau_gpuobj_channel_takedown
(
chan
);
nouveau_bo_unmap
(
chan
->
pushbuf_bo
);
nouveau_bo_ref
(
NULL
,
&
chan
->
pushbuf_bo
);
if
(
chan
->
user
)
...
...
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