Commit Graph

23 Commits

Author SHA1 Message Date
Shalaj Jain
13cdf813ab gralloc: Allow non-contiguous allocations for secure buffers
Pass a flag to ion to allow non-contiguous allocations with a sg
(scatter gather) list of 1MB chunks for all secure buffers except
secure display.

Change-Id: Ife2709e94571ab7603b29da17805a857ba73fd72
2014-12-11 10:54:35 -08:00
Naseer Ahmed
9eb5e09577 display: Fix warnings
Treat warnings as errors again

Change-Id: Ibd7f484d31ad420b85e82fd5183d70bf7dce4bfa
2014-09-25 16:11:15 -04:00
Saurabh Shah
d4749de34b gralloc\memalloc: Add traces
Add traces to gralloc (mapper) and memalloc (ionalloc) functions

Change-Id: Ia980b8fce92659a8b72a37ef129f20eb01fe2b43
2014-09-10 18:07:35 -07:00
Shalaj Jain
a70b435d10 display: remove compiler warnings
Use correct typecasts and format specifiers and resolve
compiler warnings

Change-Id: I51b12ecb78a9a496cf1f76c3d32892a203f70c43
2014-06-19 15:44:51 -07:00
Mitchel Humpherys
8a06dbc53a rename heap_mask -> heap_id_mask
The Ion API is changing yet again. heap_mask has been renamed in Ion to
heap_id_mask. Rename ours.

Change-Id: I70154b7166ce66b27ae37e31345f32480d2b9b2d
2014-05-27 15:38:19 -07:00
Saurabh Shah
8f0ea6ff81 gralloc: Remove opaque types
Remove opaque types like size_t, uintptr_t, intptr_t to support
32bit and 64bit processes together.

When a 64bit process creates a handle and a 32bit process validates
the incoming ints against expected ints, opaque types lead to
different and mismatching values.

Always use unit64_t for base address for 32bit and 64bit SF.
Use unsigned int for offset and size, since ION uses that.

Change-Id: I7db5544556a8924f98010b965f837592e9f0b4ca
2014-05-22 12:14:30 -07:00
Naseer Ahmed
68ee7c0e3e gralloc: Fix heap_id_mask
heap_mask has changed to heap_id_mask in newer ion headers.

Change-Id: I605ea81a59660e1aaae2e688dca5fa27c74e79a8
2014-04-14 10:51:47 -04:00
Arun Kumar K.R
6c85f050b2 libgralloc: use proper types and type casts
- Use proper types for pointers
- Resolve compiler errors
- handle proper type casts
- remove unused variables

Change-Id: I628ebe174485d30abadea4ca40b67f9aab1a0652
2014-03-28 15:14:58 -07:00
Arun Kumar K.R
a6f9187ca4 libgralloc: include <sys/ioctl.h>
- In ionalloc.cpp, include <sys/ioctl.h> instead of <linux/ioctl.h>, in
  the similar way as other HAL libraries are including.
- Helps in resolving compilation warnings

Change-Id: I9068e1e2dd97ce580aeecc25f611900127502fc7
2014-03-21 10:40:37 -07:00
Mitchel Humpherys
e4b539c3b5 gralloc: use new API for Ion handles
The userspace API for Ion handles has changed slightly. Update to match
the new API.

Change-Id: I55e3ef4329f96eb6e368dbab493687b9fbc4ff49
2013-12-10 12:10:55 -08:00
Naseer Ahmed
74e4567e35 gralloc: Remove memset.
The ion driver now guarantees that it will give us a zero'd out
buffer at allocation.

Change-Id: I7ec2b7d6dd94cdc394de12b69249ac9e1baa6708
2013-07-02 11:48:43 -07:00
Naseer Ahmed
b5b904c9b0 gralloc: Cleanup usage of old API
All builds have now moved to the new ION API.

Change-Id: Ic5ed7aa40231be64c715d6bb0d00a022db3fb863
2013-04-16 13:00:17 -04:00
Naseer Ahmed
aeab91f977 display: Use cache invalidate and clean correctly
Make sure cache is invalidated before reading in software and
cleaned after writing in software.

Change-Id: I91c471c47a5f1ff11f9960f08091a17ffe575534
2013-03-25 20:58:54 -04:00
Naseer Ahmed
eb2e105188 gralloc: Fix incorrect flag usage on old ion API
The secure flag gets sent only with the new ION API

Change-Id: Ia649500474b0c8384f4b45d599fcff54644005aa
2013-03-13 09:32:05 -04:00
Linux Build Service Account
961407fe41 Merge "display: Reconcile display HALs" 2013-02-13 10:16:51 -08:00
Duy Truong
73d36df685 Update copyright to The Linux Foundation
Change-Id: I145b66896159ff9886ed73507f17b3165ba0266d
2013-02-09 20:33:23 -08:00
Naseer Ahmed
7421472e5c display: Reconcile display HALs
Make the display HALs compile with/without the Qualcomm BSP
specific features so they can work with pure AOSP.
Change-Id: I1ad7282c4fe1fe7e3309afb530a07735f165ffbe
2013-02-09 08:29:49 -05:00
Amara Venkata Mastan Manoj Kumar
c180c4eba4 gralloc: set ION_SECURE to flags instead of heap_mask during
ion alloc.

  This is required for Secure Playback usecase.

Change-Id: I590bf126a35465286a9487490a114af82732e262
2012-12-11 17:46:57 -08:00
Saurabh Shah
d95c4083cc libgralloc: Change ion_allocation_data fields.
Change ioc_allocation_data structure fields as per changes in kernel.
The 'heap_mask' feild will hold what the older flags field held.
The 'flags' field will hold the caching information.

Change-Id: Id3b2e8a4d1ba370e0f982860fdb32b56227e2e43
2012-12-10 14:53:41 -08:00
Saurabh Shah
ece296ec98 libgralloc: Use ION_IOC_CUSTOM instead of MSM-specific ioctls
Use ION_IOC_CUSTOM instead of ION_IOC_CLEAN_INV_CACHES.
ION_IOC_CLEAN_INV_CACHES is now specified as a command argument of the
ION_IOC_CUSTOM ioctl.

Change-Id: I5b59ba1032364dfb884a90abf2ee2b35f3c09dd6
2012-12-10 14:53:40 -08:00
Naseer Ahmed
01d3fd3318 display: Clean up gralloc
* Remove pmem and ashmem implementations
* Remove usage of RefBase
* Reduce log verbosity

Change-Id: If8ef543d236e5305bd5430f4f9c62c51b3a13787
2012-07-23 12:39:29 -07:00
Naseer Ahmed
29a26818d7 qcom/display: Update HALs
- Update the display HAL from Code Aurora Forum
- Add updated overlay library
- Enable HWC with basic video going through overlay
- Cleanup some files

Change-Id: I65c687c51be458cee71213c79e03eeda962d9086
2012-06-21 11:52:07 -07:00
Iliyan Malchev
202a77d28a initial GL libraries for msm8960
Change-Id: I16451c70a079894ac326d3564d96f1fbafcd4f1b
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-06-11 23:50:46 -07:00