Commit graph

27 commits

Author SHA1 Message Date
kfx
d2578e7f3b ion: update ion drivers 2012-05-09 16:16:34 +08:00
黄涛
469ad23578 ion: use list_for_each_entry_safe in ion_vma_close 2012-04-26 16:55:50 +08:00
kfx
303cb72aa4 ion: Fix race condition with import and map_addr_list 2012-04-19 20:07:17 +08:00
kfx
63ce107bd4 ion: modify memory leak 2012-03-30 10:41:03 +08:00
kfx
04ef98d611 Ion module: version1.0 2012-03-26 09:30:42 +08:00
黄涛
e153fabd0b Merge remote-tracking branch 'origin/develop-3.0-rk30' into develop-3.0
Conflicts:
	arch/arm/mach-rk29/Makefile
	arch/arm/mach-rk29/include/mach/rk29_camera.h
	drivers/gpu/ion/ion.c
	drivers/gpu/ion/ion_carveout_heap.c
	drivers/gpu/ion/ion_priv.h
	drivers/media/video/gc0307.c
	drivers/media/video/gc0308.c
	drivers/media/video/gc0309.c
	drivers/media/video/gc2015.c
	drivers/media/video/gt2005.c
	drivers/media/video/mt9d112.c
	drivers/media/video/mt9d113.c
	drivers/media/video/mt9p111.c
	drivers/media/video/mt9t111.c
	drivers/media/video/ov2640_rk.c
	drivers/media/video/ov2655.c
	drivers/media/video/ov2659.c
	drivers/media/video/ov5640.c
	drivers/media/video/ov5642.c
	drivers/media/video/ov7675.c
	drivers/media/video/rk29_camera.c
	drivers/media/video/sid130B.c
	drivers/media/video/siv120b.c
	drivers/mmc/host/rk29_sdmmc.c
	include/linux/ion.h
2012-03-25 15:16:37 +08:00
kfx
bbe02462c1 ion drivers: add 'query client infomation' interface for vpu 2012-03-19 16:02:18 +08:00
kfx
df6aedd2e7 Ion drivers: Compatible with older versions about flush cache 2012-03-19 12:19:10 +08:00
kfx
88d552b3bb rk30:add ion support 2012-03-12 18:48:03 +08:00
kfx
aa2d99e76e ion: invalide cache, L1 first 2012-03-09 09:11:20 +08:00
kfx
cd625606e0 ion: add debug info and modify to support libion 2012-03-07 18:23:43 +08:00
kfx
e1fcd840d7 gpu: ion: Take handle reference in ion_vma_open
When ion_vma_open is called, a reference to the handle in
the vma must be taken. Otherwise, if forking occurs,
ion_vma_close will be called twice which will leave one of
the calls with an invalid reference.
2011-12-22 20:18:46 +08:00
kfx
acee9b6457 ion mmap: set page_protection 'cached' 2011-12-22 12:43:02 +08:00
黄涛
50d910ace6 gpu: ion: fix printk when alloc failed 2011-12-19 10:07:34 +08:00
kfx
7932f134b8 ion: flush cache 2011-12-16 10:32:41 +08:00
kfx
ad773bac07 add ion(kernel allocator) for gralloc 2011-12-14 12:58:55 +08:00
Iliyan Malchev
3fe24366a4 ion: minor clean up
-- 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>
2011-08-09 14:49:21 -07:00
Rebecca Schultz Zavin
c72866db6b gpu: ion: Validate handles passed via the kernel api
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>
2011-07-08 15:41:32 -07:00
Choi, Jong-Hwan
42c5a0740e gpu: ion: Fix deferencing ERR_PTR
Change-Id: I986c380d75591571890f1a2cba1405e66789b25c
Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
2011-07-06 18:16:57 -07:00
Choi, Jong-Hwan
5a3e147d52 gpu: ion: Fix possible memory leak
Change-Id: I66f5ad2c95513dfab9f4fc5ae2fcb1316f486d34
Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
2011-07-06 18:15:04 -07:00
Rebecca Schultz Zavin
6d3b958d70 gpu: ion: Remove redunant code from ion_open
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>
2011-07-06 18:13:19 -07:00
Rebecca Schultz Zavin
0b7e8ae7e4 gpu: ion: Fix bug in ion client destroy
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>
2011-07-06 18:13:17 -07:00
Rebecca Schultz Zavin
83e3dab069 gpu: ion: Fix bug in ion_client_create
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>
2011-07-01 20:57:27 -07:00
Rebecca Schultz Zavin
0db1fec422 gpu: ion: Remove incorrect error message
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>
2011-06-30 19:42:36 -07:00
Rebecca Schultz Zavin
f9fb95ebc7 gpu: ion: Fix bug in ion_buffer_add
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2011-06-30 18:09:38 -07:00
Rebecca Schultz Zavin
e6ee124528 gpu: ion: Several fixes
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
2011-06-30 15:15:14 -07:00
Rebecca Schultz Zavin
c80005ae9e gpu: ion: Add ION Memory Manager
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2011-06-29 19:44:29 -07:00