]> git.baikalelectronics.ru Git - kernel.git/commit
drm: share address space for dma bufs
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 27 Nov 2019 09:25:23 +0000 (10:25 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 6 Dec 2019 10:18:11 +0000 (11:18 +0100)
commit2c1bbfe313da9c1d3c46109ad3d34d47d9ca9ede
tree5dbb350cd271011779dc07eab3aec93a22a4fad3
parenta87fd772edc0682413acc6e1110112e831893e5f
drm: share address space for dma bufs

Use the shared address space of the drm device (see drm_open() in
drm_file.c) for dma-bufs too.  That removes a difference betweem drm
device mmap vmas and dma-buf mmap vmas and fixes corner cases like
dropping ptes (using madvise(DONTNEED) for example) not working
properly.

Also remove amdgpu driver's private dmabuf update.  It is not needed
any more now that we are doing this for everybody.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20191127092523.5620-3-kraxel@redhat.com
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
drivers/gpu/drm/drm_prime.c