va: allocator: dma: Fail when mapping the non-linear buffer.
authorHe Junyan <junyan.he@intel.com>
Tue, 29 Jun 2021 15:21:24 +0000 (23:21 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 2 Jul 2021 08:15:49 +0000 (08:15 +0000)
commitfb4aeb6636026519a842d24bcbd9ca9b8a6ffd69
tree2d91ac6f93160641d002283cc17accd123be9a82
parent8fd2c68968ae922bcf52c628575afc212da35d3e
va: allocator: dma: Fail when mapping the non-linear buffer.

The current way of DMA buffer mapping is simply forwarding the job
to parent's map function, which is a mmap(). That can not handle the
non-linear buffers, such as tiling, compressed, etc. The incorrect
mapping of such buffers causes broken images, which are recognized
as bugs. We should directly block this kind of mapping to avoid the
misunderstanding.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2353>
sys/va/gstvaallocator.c