]> git.baikalelectronics.ru Git - kernel.git/commit
drm/cma-helper: Release non-coherent memory with dma_free_noncoherent()
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 8 Jul 2021 17:51:46 +0000 (19:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 15 Nov 2021 09:26:53 +0000 (10:26 +0100)
commit79110e6603099569c7c5dc4d070814adca0bda67
tree58c0f4677f093a6003ae1d3d60a742920091c7ae
parent91e89664e513860e74d075b2dcd3bf8cbb5de362
drm/cma-helper: Release non-coherent memory with dma_free_noncoherent()

The GEM CMA helpers allocate non-coherent (i.e., cached) backing storage
with dma_alloc_noncoherent(), but release it with dma_free_wc(). Fix this
with a call to dma_free_noncoherent(). Writecombining storage is still
released with dma_free_wc().

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: f01c96abb735 ("drm: Add support for GEM buffers backed by non-coherent memory")
Acked-by: Paul Cercueil <paul@crapouillou.net>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v5.14+
Link: https://patchwork.freedesktop.org/patch/msgid/20210708175146.10618-1-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_cma_helper.c