ANDROID: staging: ion: Add support for heap-specific dma_buf_ops
All dma_buf ops are registered by ion core. However, if a given heap
provides a specific dmabuf operation, that will be preferred over the
default ion core implementation
Some dma_buf_ops like get_flags, begin_cpu_access_partial etc are
entirely not supported by ion core and will return -EOPNOTSUPP if the
heap implementation doesn't provided the necessary overrides.
Tested with ion unit test with default system heap.
Bug: 133508579
Bug: 140290587
Test: ion-unit-test
Change-Id: Id13c5c280064b6f47de327223733c2c393f1a41a
Signed-off-by:
Sandeep Patil <sspatil@google.com>
Loading
Please register or sign in to comment