summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* libion: cleanup loggingMark Salyzyn2018-03-071-5/+5
| | | | | | | | | Get rid of trailing newlines as they just take wasted space. Added a missing strerror(error) expansion for failure to open. Test: compile Bug: 74258013 Change-Id: I04c0038e1ca53d2ffe0a78386744f12874215c19
* libion: Adapt to new ION interfaceLaura Abbott2017-08-091-58/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | 4.12+ kernels have substantially different ION interface. Adapt libion to the new one. In doing so, for sake of clarity, rename ION_IOC_ALLOC to ION_IOC_NEW_ALLOC the to denote new mechanism. An ion_is_legacy() is provided to check whether the kernel supports old ION interface or new. Userspace has the responsibility to use it accordingly. Devices using kernels without the 4.12 ION updates, can continue to use libion as before, and will have no impact. Only devices using libion with 4.12+ kernels (or kernels with backported ION updates) will need to update their users of libion, including gralloc. Test: validated with hikey gralloc, with both old and new kernels Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> [sumits: keep old abi compatibility] Change-Id: I7899af9e812d0cf5e73b443a3f0248118b42a382
* liblog: use log/log.h when utilizing ALOG macrosMark Salyzyn2017-01-111-1/+1
| | | | | | Test: compile Bug: 30465923 Change-Id: Id6d76510819ebd88c3f5003d00d73a0dbe85e943
* ion.c: add O_CLOEXEC to /dev/ion openNick Kralevich2016-11-291-1/+1
| | | | | Test: device boots and no obvious problems. Change-Id: I0845b79de49b77878adaf6cd14cc506f7586cccb
* libion: open /dev/ion read-onlyJeff Vander Stoep2016-10-211-1/+1
| | | | | | | | | | | /dev/ion driver does not recognize the write operation [1] so open it read-only. [1] http://lxr.free-electrons.com/source/drivers/staging/android/ion/ion.c?v=4.5#L1369 Test: Angler builds and boots Bug: 32120194 Change-Id: I9b26d43ea32cb24426404668701df1f1648d336c
* system/core: preparation to pull back interfaces from android/log.hMark Salyzyn2016-10-201-0/+1
| | | | | | | | | | | | | | | | Point to log/log.h where necessary, define LOG_TAG where necessary. Accept that private/android_logger.h is suitable replacement for log/logger.h and android/log.h. Correct liblog/README Effectively a cleanup and controlled select revert of 'system/core: drop or replace log/logger.h' and 'system/core: Replace log/log.h with android/log.h'. Test: compile Bug: 30465923 Change-Id: Ic2ad157bad6f5efe2c6af293a73bb753300b17a2
* system/core Replace cutils/log.h with android/log.hMark Salyzyn2016-09-301-2/+2
| | | | | | | | | | | Should use android/log.h instead of cutils/log.h as a good example to all others. Adjust header order to comply with Android Coding standards. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I2c9cbbbd64d8dccf2d44356361d9742e4a9b9031
* am 2e14f617: am 06b4e982: Merge "Add missing <malloc.h> and <string.h> ↵Elliott Hughes2015-01-281-0/+1
|\ | | | | | | | | | | | | includes." * commit '2e14f61731adbb1f0d0d54bab82bc2f0ecee6a11': Add missing <malloc.h> and <string.h> includes.
| * Add missing <malloc.h> and <string.h> includes.Elliott Hughes2015-01-281-0/+1
| | | | | | | | Change-Id: Ia41756e607663d056e7d2fdd7ecbec7e5841a913
* | am fcb2f0ab: am 0b7e6516: Merge "Libion: Remove unused variables"Andreas Gampe2014-11-251-1/+0
|\| | | | | | | | | * commit 'fcb2f0abe07ffd1c7a87bdcd7878a556ce0049fb': Libion: Remove unused variables
| * Libion: Remove unused variablesAndreas Gampe2014-11-251-1/+0
| | | | | | | | | | | | | | | | For build-system CFLAGS clean-up, fix unused variables. Fix missing close of file descriptors. Explicitly exit after a fork. Change-Id: I76affbc8647c3a760ed3cacc7f3ada3f59e283b1
* | libion: only modify parameters on successRom Lemarchand2014-10-281-6/+8
|/ | | | | | | Wait until a call is successful before modifying the value of pointers passed Change-Id: Iaeb2517c8cefeca2f60ebf610d38f264b48e59a0
* libion: return -errno from ion_closeColin Cross2013-12-181-1/+4
| | | | | | Return -errno from ion_close instead of -1 on error. Change-Id: Idb828aa4b4d1a660b79d2dba8be32f306eac959d
* libion: add NULL checksColin Cross2013-12-181-3/+20
| | | | | | Check for NULL in any library function that takes a pointer. Change-Id: I9ae8887b5ae0f231583173ee6a9dfd2f8c4611ec
* libion: clean up whitespaceColin Cross2013-12-181-77/+77
| | | | | | Convert everything to 4 space indents, no tabs. Change-Id: I376fad866864f0579b91ffad406e872fcce566ad
* ion: update struct and type definitions to match kernel headerRom Lemarchand2013-12-181-7/+7
| | | | | | | - Replacing struct ion_handle * with ion_user_handle_t - Replacing heap_mask field name with heap_id_mask Change-Id: Iaba1ccc62b9398a7b37c5a734bc21a9ecbbc8277
* Add explicit sync call to ion libraryRebecca Schultz Zavin2012-09-201-0/+8
| | | | | | Bug: 6854979 Change-Id: I535d55af897eeb4ed707b5da54f3fbf36afa452c Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
* Modify ion to use new definition of ALLOC ioctl argumentRebecca Schultz Zavin2012-06-281-2/+16
| | | | | | | | | Also add ion_alloc_fd helper for when you only want a filedescriptor and know you won't need to access this handle again by its ion_handle Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> Change-Id: Ia4bae22946b0078084b62f5447fecbf261dfaa83
* Add ion helper libraryRebecca Schultz Zavin2012-02-231-0/+134
This library contains helper functions for using ion Change-Id: I7d7f76d6d3f36cd94d67797a38099a94214392b1 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>