OSDN Git Service

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)
commit8e4ff9b569572880b65d58976bb701a40ef1d9c4
tree914eda35fd9a24e7709856db81cadfea08c1d7d2
parentea36ec8623f56791c6ff6738d0509b7920f85220
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