]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Remove the dma_alloc_coherent wrapper for internal usage
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 2 Feb 2020 17:16:32 +0000 (17:16 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 4 Feb 2020 23:57:26 +0000 (23:57 +0000)
commitda76a643f1a61f5ad8b9c887874492f400d8f144
tree914eda35fd9a24e7709856db81cadfea08c1d7d2
parenteb44da4338c8a2df8a07bcd851464b7c835053b6
drm: Remove the dma_alloc_coherent wrapper for internal usage

Internally for "consistent" maps, we create a temporary struct
drm_dma_handle in order to use our own dma_alloc_coherent wrapper then
destroy the temporary wrap. Simplify our logic by removing the temporary
wrapper!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200202171635.4039044-2-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_bufs.c
drivers/gpu/drm/drm_pci.c
drivers/gpu/drm/drm_vm.c
include/drm/drm_legacy.h