Skip to contentSkip to conversation

drm/nouveau: Free nv04 instmem ramin heap at card takedown

PATCH In review Jimmy Rentz 2 participants 2 messages Apr 17, 2011 1 message not in the archive

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau: Free nv04 instmem ramin heap at card takedown

Add a missing nv04 instmem ramin heap shutdown call.

(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/nv04_instmem.c index b8e3edb..b8611b9 100644

drivers/gpu/drm/nouveau/nv04_instmem.c +3 -0
@@ -95,6 +95,9 @@ nv04_instmem_takedown(struct drm_device *dev)
 	nouveau_ramht_ref(NULL, &dev_priv->ramht, NULL);
 	nouveau_gpuobj_ref(NULL, &dev_priv->ramro);
 	nouveau_gpuobj_ref(NULL, &dev_priv->ramfc);
+
+	if (drm_mm_initialized(&dev_priv->ramin_heap))
+		drm_mm_takedown(&dev_priv->ramin_heap);
 }
 
 int

A message that is not in the archive (sent off-list or not yet received): 20110417161503.1769f9d0-bEIzoA7YQWm4miubQJdzGGS2/mPcPMSI/[email protected]

#2 lore raw
Quoted 1 line · Jimmy Rentz

Add a missing nv04 instmem ramin heap shutdown call.

Thank you, pushed this and the vga_ram patch.

Ben.

Quoted 21 lines
(quoted diff) +0 -0

b/drivers/gpu/drm/nouveau/nv04_instmem.c index b8e3edb..b8611b9 100644

drivers/gpu/drm/nouveau/nv04_instmem.c +3 -0
@@ -95,6 +95,9 @@ nv04_instmem_takedown(struct drm_device *dev)
 	nouveau_ramht_ref(NULL, &dev_priv->ramht, NULL);
 	nouveau_gpuobj_ref(NULL, &dev_priv->ramro);
 	nouveau_gpuobj_ref(NULL, &dev_priv->ramfc);
+
+	if (drm_mm_initialized(&dev_priv->ramin_heap))
+		drm_mm_takedown(&dev_priv->ramin_heap);
 }
 
 int

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau