aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/ion
Commit message (Collapse)AuthorAgeFilesLines
* ion: minor clean upIliyan Malchev2011-08-091-8/+10
| | | | | | | | | | | -- init rb nodes in ion_handle_create -- in ion_handle_destroy, check that a node belongs to a tree before removing it (safety check, does not happen right now) -- mark as static functions used only inside ion.c -- update comments to ion_share() with a relevant blurb from the implementation -- other minor updates/typo fixes to comments Signed-off-by: Iliyan Malchev <malchev@google.com>
* gpu: ion: Validate handles passed via the kernel apiRebecca Schultz Zavin2011-07-081-0/+22
| | | | | | | | Before freeing or sharing handles, confirm that they are valid in the provided client Change-Id: I06ec599c0b277fcb5417325a12ecbf8b2d248a7b Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
* gpu: ion: Fix deferencing ERR_PTRChoi, Jong-Hwan2011-07-061-1/+4
| | | | | Change-Id: I986c380d75591571890f1a2cba1405e66789b25c Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
* gpu: ion: Fix possible memory leakChoi, Jong-Hwan2011-07-061-1/+3
| | | | | Change-Id: I66f5ad2c95513dfab9f4fc5ae2fcb1316f486d34 Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
* gpu: ion: Remove redunant code from ion_openRebecca Schultz Zavin2011-07-061-7/+3
| | | | | | | | ion_client_create now does a lookup, so this need not also be done from ion_open Change-Id: Icb101bbf514bf2e40b4b5d9b320130bf185349aa Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
* gpu: ion: Fix bug in ion client destroyRebecca Schultz Zavin2011-07-061-7/+7
| | | | | | | | ion_client_destroy kernel api should only delete the client if it's refcount has gone to zero. Change-Id: Iaa662bd82d67279a9807e01f9a24aebe3d21c17d Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
* gpu: ion: Fix bug in ion_client_createRebecca Schultz Zavin2011-07-011-32/+48
| | | | | | | | If a process already had a client, ion_client_create would loop forever. Change-Id: I723207b5872dfc11be04ca27d38a3cf39c4a1426 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
* gpu: ion: Remove incorrect error messageRebecca Schultz Zavin2011-06-301-2/+0
| | | | | | | | | | The function name is wrong here, and this function may sometimes be called to see if a value passed from userspace is an ion handle. Since it's not really an error when it fails, remove the log message. Change-Id: I7bee0e7ffb72b4c4768774a3586f97e306700c21 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
* gpu: ion: Fix bug in ion_buffer_addRebecca Schultz Zavin2011-06-301-3/+4
| | | | Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
* gpu: ion: Several fixesRebecca Schultz Zavin2011-06-305-38/+66
| | | | | | Fix some cases where locks were not released on error paths Change heap->prio to heap->id to make meaning clearer Fix kernel doc to match sources
* gpu: ion: Add ION Memory ManagerRebecca Schultz Zavin2011-06-2910-0/+1959
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>