summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update project for latest Androidd-pie-core-releaseAndrew F. Davis2019-07-221-0/+7
| | | | | | | Convert the Android.mk file to .bp. Also fixup various build warnings detected by newer compiler tools. Signed-off-by: Andrew F. Davis <afd@ti.com>
* memplugin android: Add SCANOUT flag to allocationsGowtham Tammana2017-01-191-2/+4
| | | | | | | | Add OMAP_BO_SCANOUT flags to `omap_bo` buffer allocations to explicitly request from contiguous region. Change-Id: Ifb6f8780608183cf9f5b636f885d408b01146d31 Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
* libdce[Android]: Add dce_ipc_recover APIAngela Stegmaier2017-01-171-2/+4
| | | | | | | | | | | | | | | | | In case of remote core recovery due to remote core crash, the rpmsg-dce handle needs to be closed and re-opened since any handles that were open when the crash happened are marked as stale in the driver. This patch adds a new API that the user can call to close the rpmsg-dce handle so that recovery can happen. In case the user receives notification of a remote core crash, it can call the dce_ipc_recover() API to make sure that the rpmsg-dce handle that is opened during dce_buf_lock is closed so that a new one can be opened the next time. Change-Id: I8ebc19e308ffe7431b57c31cfecd469e171777f6 Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
* memplugin android: Fix h->ptr offset in memplugin_allocGowtham Tammana2016-11-011-1/+3
| | | | | | | | | | | In memplugin_alloc(), the buffer pointer is meant to start at the end of the MemHeader structure. h->ptr which holds this offset is calculated incorrectly, but this has not caused any errors as the h->ptr is not referenced directly. This offset is acquired through `H2P` macroin the code. Nevertheless fixing the pointer arithmetic. Change-Id: I075455860fbeb54001a9f2fde1de544c39fe3ed0 Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
* libdce [Android]: avoid crash in memplugin_closeVishal Mahaveer2016-10-191-3/+6
| | | | | | | Add more checks to prevent crash scenarios in memplugin_close. Change-Id: Ieafc2bbd7a6876059926f37619b017d9cbb5a21d Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* libdce[Android]: Defer rpmsg_dce device open till buffer lock phaseSunita Nadampalli2016-08-291-8/+9
| | | | | | | | | | | | In the current architecture, rpmsg_dce device is opened during memplugin_open(), which can be called from any process context. With Android system configured in SE Linux Enforcement mode, it is not allowed to open rpmsg_dce in any process other than mediaserver. Hence the device open logic is deferred till dce buffer lock API where the actual device ioctls are needed. Change-Id: Iedacfd3327e0ee975a8a492b057aac576d7f7c10 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
* libdce[ANDROID]: Fix bug in omap buffer object free logicSunita Nadampalli2015-02-191-1/+1
| | | | | | | | For the omap_bo_del function call, we need to pass the bo object rather than the mmaped pointer. Change-Id: I3b011594b0210ec6f95f3f4644835594a80ace28 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
* libdce: Add mutex protection for dce_buf_lock/dce_buf_unlockSunita Nadampalli2015-01-301-1/+6
| | | | | | | | | | | | The dce_buf_lock and dce_buf_unlock are meant for any video buffer locking and unlocking with the GEM allocator. Currently, these methods are being called from libdce apis with ipc mutex held. In order to enable other media components to make use of these buffer lock/unlock apis, explicit ipc mutex protection is added. Change-Id: I6d63a4cdcffec62a346341ff515a7ebb03dea8c0 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
* libdce[Android] - Use drm render node instead of card0Hemant Hariyani2014-12-031-1/+1
| | | | | | | | | | | | | | Render nodes allow a limited set of ioctls without restrictions. libdce only needs to access drm to get buffers and render node should be sufficient. Note that this is new feature in the kernel. Also, need a better way to open render node than to use hard coded path name. Change-Id: I8178414185dcaf6c70edc756eefb0a00b7e3c332 Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
* Revert "libdce[ANDROID] - add drmsetmaster/dropmaster calls"Hemant Hariyani2014-12-031-12/+0
| | | | | | | | | Not needed as dce will use drm render node. This reverts commit 4715ea56d8a266e66bc6cef982410c602a19be43. Change-Id: I1dc14249ffe2dbbfdfd970cea3bf4a378274db6d Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
* libdce[ANDROID] - add drmsetmaster/dropmaster callsSunita Nadampalli2014-11-251-0/+12
| | | | | | | | Added setdrmmaster and dropdrmmaster calls for every drm ioctl. Change-Id: I9319e5927374e677480a18f937d2bbd12e561462 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
* libdce[Android]: Added support for DRM based Android mempluginSunita Nadampalli2014-11-171-0/+203
This patch adds memplugin implementation for GEM allocator and dce buffer locking via MmRPC for Android builds. Android memplugin implement memplugin interface for buffers with and without memheaders. This implementation is for DRM/GEM buffer allocations. And libdce_android implements GEM buffer registration and unregistration with MmRPC. Change-Id: Ie72c988a37f987446f7d7c1d97225295de73d305 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>