diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vidmem.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vidmem.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vidmem.c b/drivers/gpu/nvgpu/common/linux/vidmem.c index 92e7e504..03976da3 100644 --- a/drivers/gpu/nvgpu/common/linux/vidmem.c +++ b/drivers/gpu/nvgpu/common/linux/vidmem.c | |||
@@ -77,7 +77,8 @@ static void gk20a_vidbuf_release(struct dma_buf *dmabuf) | |||
77 | struct nvgpu_vidmem_linux *linux_buf = buf->priv; | 77 | struct nvgpu_vidmem_linux *linux_buf = buf->priv; |
78 | struct gk20a *g = buf->g; | 78 | struct gk20a *g = buf->g; |
79 | 79 | ||
80 | gk20a_dbg_fn(""); | 80 | vidmem_dbg(g, "Releasing Linux VIDMEM buf: dmabuf=0x%p size=%zuKB", |
81 | dmabuf, buf->mem->size >> 10); | ||
81 | 82 | ||
82 | if (linux_buf && linux_buf->dmabuf_priv_delete) | 83 | if (linux_buf && linux_buf->dmabuf_priv_delete) |
83 | linux_buf->dmabuf_priv_delete(linux_buf->dmabuf_priv); | 84 | linux_buf->dmabuf_priv_delete(linux_buf->dmabuf_priv); |
@@ -202,6 +203,9 @@ int nvgpu_vidmem_export_linux(struct gk20a *g, size_t bytes) | |||
202 | /* fclose() on this drops one ref, freeing the dma buf */ | 203 | /* fclose() on this drops one ref, freeing the dma buf */ |
203 | fd_install(fd, priv->dmabuf->file); | 204 | fd_install(fd, priv->dmabuf->file); |
204 | 205 | ||
206 | vidmem_dbg(g, "Alloced Linux VIDMEM buf: dmabuf=0x%p size=%zuKB", | ||
207 | priv->dmabuf, buf->mem->size >> 10); | ||
208 | |||
205 | return fd; | 209 | return fd; |
206 | 210 | ||
207 | fail: | 211 | fail: |
@@ -209,6 +213,7 @@ fail: | |||
209 | nvgpu_kfree(g, priv); | 213 | nvgpu_kfree(g, priv); |
210 | gk20a_put(g); | 214 | gk20a_put(g); |
211 | 215 | ||
216 | vidmem_dbg(g, "Failed to alloc Linux VIDMEM buf: %d", err); | ||
212 | return err; | 217 | return err; |
213 | } | 218 | } |
214 | 219 | ||