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
Kirill Smelkov
linux
Commits
ad9ac437
Commit
ad9ac437
authored
Jun 07, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: add some debug output if nouveau_mm busy at destroy time
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
e41f26e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
drivers/gpu/drm/nouveau/nouveau_mm.c
drivers/gpu/drm/nouveau/nouveau_mm.c
+9
-2
drivers/gpu/drm/nouveau/nouveau_vm.c
drivers/gpu/drm/nouveau/nouveau_vm.c
+1
-1
No files found.
drivers/gpu/drm/nouveau/nouveau_mm.c
View file @
ad9ac437
...
@@ -158,11 +158,18 @@ int
...
@@ -158,11 +158,18 @@ int
nouveau_mm_fini
(
struct
nouveau_mm
**
prmm
)
nouveau_mm_fini
(
struct
nouveau_mm
**
prmm
)
{
{
struct
nouveau_mm
*
rmm
=
*
prmm
;
struct
nouveau_mm
*
rmm
=
*
prmm
;
struct
nouveau_mm_node
*
heap
=
struct
nouveau_mm_node
*
node
,
*
heap
=
list_first_entry
(
&
rmm
->
nodes
,
struct
nouveau_mm_node
,
nl_entry
);
list_first_entry
(
&
rmm
->
nodes
,
struct
nouveau_mm_node
,
nl_entry
);
if
(
!
list_is_singular
(
&
rmm
->
nodes
))
if
(
!
list_is_singular
(
&
rmm
->
nodes
))
{
printk
(
KERN_ERR
"nouveau_mm not empty at destroy time!
\n
"
);
list_for_each_entry
(
node
,
&
rmm
->
nodes
,
nl_entry
)
{
printk
(
KERN_ERR
"0x%02x: 0x%08x 0x%08x
\n
"
,
node
->
type
,
node
->
offset
,
node
->
length
);
}
WARN_ON
(
1
);
return
-
EBUSY
;
return
-
EBUSY
;
}
kfree
(
heap
);
kfree
(
heap
);
kfree
(
rmm
);
kfree
(
rmm
);
...
...
drivers/gpu/drm/nouveau/nouveau_vm.c
View file @
ad9ac437
...
@@ -396,8 +396,8 @@ nouveau_vm_del(struct nouveau_vm *vm)
...
@@ -396,8 +396,8 @@ nouveau_vm_del(struct nouveau_vm *vm)
list_for_each_entry_safe
(
vpgd
,
tmp
,
&
vm
->
pgd_list
,
head
)
{
list_for_each_entry_safe
(
vpgd
,
tmp
,
&
vm
->
pgd_list
,
head
)
{
nouveau_vm_unlink
(
vm
,
vpgd
->
obj
);
nouveau_vm_unlink
(
vm
,
vpgd
->
obj
);
}
}
WARN_ON
(
nouveau_mm_fini
(
&
vm
->
mm
)
!=
0
);
nouveau_mm_fini
(
&
vm
->
mm
);
kfree
(
vm
->
pgt
);
kfree
(
vm
->
pgt
);
kfree
(
vm
);
kfree
(
vm
);
}
}
...
...
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