@@ -155,10 +155,10 @@ static void drm_gem_map_detach(struct dma_buf
*dma_buf,
if (prime_attach->dir != DMA_NONE)
dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents,
prime_attach->dir);
- sg_free_table(sgt);
+/* sg_free_table(sgt);*/
}
- kfree(sgt);
+/* kfree(sgt);*/
kfree(prime_attach);
attach->priv = NULL;
}
@@ -116,9 +116,10 @@ static void put_pages(struct drm_gem_object *obj)
/* For non-cached buffers, ensure the new pages are clean
* because display controller, GPU, etc. are not coherent:
*/
- if (msm_obj->flags & (MSM_BO_WC|MSM_BO_UNCACHED))
+/* if (msm_obj->flags & (MSM_BO_WC|MSM_BO_UNCACHED))
dma_unmap_sg(obj->dev->dev, msm_obj->sgt->sgl,
msm_obj->sgt->nents,
DMA_BIDIRECTIONAL);
+*/
sg_free_table(msm_obj->sgt);
kfree(msm_obj->sgt);