Commits
Erik Rainey committed b4cd56276a7
HACK: drm/omap: flush the mapped page in kmap/kunmap A kernel driver can access a omapdrm/gem backed buffer page through a cycle of dma_buf_begin_cpu_access, dma_buf_kmap & dma_buf_kunmap, dma_buf_end_cpu_access function invocations. Any changes to the buffer by the kernel driver are not reflected properly in RAM, so flush the cache deliberately in the kmap/kunmap dma_buf ops implementations of the omapdrm/gem buffers. NOTE: This is a HACK patch and is being added to enable hardware accelerated MultiMedia usecases leveraging libdce in userspace and rpmsg-rpc kernel driver to run successfully. It will be reverted once a proper solution is arrived at. Signed-off-by: Erik Rainey <erik.rainey@ti.com> [s-anna@ti.com: add proper comments, commit description & checkpatch fixes] Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>