linux/drivers/gpu/drm/omapdrm
Tomi Valkeinen d9c148cfaf drm/omap: fix dma_addr refcounting
cec4fa7511 ("drm/omap: use refcount API to
track the number of users of dma_addr") changed omap_gem.c to use
refcounting API to track dma_addr uses.  However, the driver only tracks
the refcounts for non-contiguous buffers, and the patch didn't fully
take this in account.

After the patch, the driver always decreased refcount in omap_gem_unpin,
instead of decreasing the refcount only for non-contiguous buffers. This
leads to refcounting mismatch.

As for the contiguous cases the refcount is never increased, fix this
issue by returning from omap_gem_unpin if the buffer being unpinned is
contiguous.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191114080343.30704-1-tomi.valkeinen@ti.com
Fixes: cec4fa7511 ("drm/omap: use refcount API to track the number of users of dma_addr")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-12-04 19:11:28 +02:00
..
displays drm/omap: displays: Remove unused panel drivers 2019-08-16 21:10:21 +02:00
dss Merge drm/drm-next into drm-misc-next 2019-10-23 11:14:11 -04:00
Kconfig
Makefile
omap_connector.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
omap_connector.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
omap_crtc.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
omap_crtc.h drm main pull request for v5.3-rc1 (sans mm changes) 2019-07-15 19:04:27 -07:00
omap_debugfs.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
omap_dmm_priv.h
omap_dmm_tiler.c
omap_dmm_tiler.h drm/omap: remove OMAP_BO_TILED define 2019-10-11 17:02:32 +03:00
omap_drv.c Merge drm/drm-next into drm-misc-next 2019-10-03 16:38:50 +02:00
omap_drv.h Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
omap_encoder.c drm: Stop including drm_bridge.h from drm_crtc.h 2019-08-28 22:11:03 +02:00
omap_encoder.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
omap_fb.c drm/omap: Remove set but not used variable 'plane' 2019-10-14 14:20:22 +03:00
omap_fb.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
omap_fbdev.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
omap_fbdev.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
omap_gem_dmabuf.c drm/omap: remove OMAP_BO_TILED define 2019-10-11 17:02:32 +03:00
omap_gem.c drm/omap: fix dma_addr refcounting 2019-12-04 19:11:28 +02:00
omap_gem.h Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
omap_irq.c Linus 5.3-rc1 2019-07-22 21:24:10 +02:00
omap_irq.h drm main pull request for v5.3-rc1 (sans mm changes) 2019-07-15 19:04:27 -07:00
omap_plane.c drm/omap: Add 'alpha' and 'pixel blend mode' plane properties 2019-08-23 10:15:11 +03:00
omap_plane.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
tcm-sita.c
tcm.h
TODO