aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_mm.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-06-07 02:18:19 -0400
committerBen Skeggs <bskeggs@redhat.com>2011-06-23 02:00:55 -0400
commitad9ac437a500f8c0822bd5fe139af8ee2c132e15 (patch)
tree820687baecf86e639d9d25217338281d06cb1039 /drivers/gpu/drm/nouveau/nouveau_mm.c
parente41f26e7d18951086611bc78cc35e244bd01d1ca (diff)
drm/nouveau: add some debug output if nouveau_mm busy at destroy time
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_mm.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_mm.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_mm.c b/drivers/gpu/drm/nouveau/nouveau_mm.c
index 7609756b6faf..1640dec3b823 100644
--- a/drivers/gpu/drm/nouveau/nouveau_mm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_mm.c
@@ -158,11 +158,18 @@ int
158nouveau_mm_fini(struct nouveau_mm **prmm) 158nouveau_mm_fini(struct nouveau_mm **prmm)
159{ 159{
160 struct nouveau_mm *rmm = *prmm; 160 struct nouveau_mm *rmm = *prmm;
161 struct nouveau_mm_node *heap = 161 struct nouveau_mm_node *node, *heap =
162 list_first_entry(&rmm->nodes, struct nouveau_mm_node, nl_entry); 162 list_first_entry(&rmm->nodes, struct nouveau_mm_node, nl_entry);
163 163
164 if (!list_is_singular(&rmm->nodes)) 164 if (!list_is_singular(&rmm->nodes)) {
165 printk(KERN_ERR "nouveau_mm not empty at destroy time!\n");
166 list_for_each_entry(node, &rmm->nodes, nl_entry) {
167 printk(KERN_ERR "0x%02x: 0x%08x 0x%08x\n",
168 node->type, node->offset, node->length);
169 }
170 WARN_ON(1);
165 return -EBUSY; 171 return -EBUSY;
172 }
166 173
167 kfree(heap); 174 kfree(heap);
168 kfree(rmm); 175 kfree(rmm);