summaryrefslogtreecommitdiff
path: root/drivers/gpu/ion
AgeCommit message (Collapse)Author
2012-05-18gpu: ion: tegra: Use nvmap.h include file from kernel/includeKrishna Reddy
Use nvmap.h include file from kernel/include instead of mach-tegra/include. Bug 854182 Change-Id: I9b2899c6170f1867043804ec756f37da93161242 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/102725 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Jon Mayo <jmayo@nvidia.com>
2012-03-20arm: tegra: nvmap: Update nvmap_alloc api.Krishna Reddy
Update nvmap_alloc api to take heap_mask as arg. This is to let clients specify the specific heap needed. Change-Id: I9950b3e60e6dac0301b6dc66be3e9d0bab8e0fee Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/90471 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2012-02-03gpu: ion: Fix with mainline IOMMU API changeHiroshi DOYU
The mainline IOMMU API v3.3-rc1 has been changed so that bytes are used in mapping size instead of page order and page-by-page iteration is taken care of by iommu core. Change-Id: Ib331b6f3f7075385499eb13dd040c80444d706a8 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/78139 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-30HACK: gpu: ion: tegra: Implement nvmap_alloc_iovm.Krishna Reddy
Change-Id: Ida720a6b27f2df11e6381dc0eb5306df3b768f22 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/76785 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
2012-01-30HACK: gpu: ion: Add api to remap dma address.Krishna Reddy
Change-Id: Ib68612c6a1e003938fa6df009df85e9cb4599b11 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/76784 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
2012-01-30HACK: gpu: ion: Add support to remap dma address.Krishna Reddy
Change-Id: Ica835fad10677ce61d812e00bb489034a8b06a36 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/76783 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
2012-01-23gpu: ion: Remove unnecessary error handlingHiroshi DOYU
Ion core takes care of the case failing allocaion. Remove unnecessary code and obsolete comment. Change-Id: I0a27f6697beb1b3e802275eb01bfdc4fc0ae3ae2 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/75533 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-23gpu: ion: Replace vmalloc() with vzalloc()Hiroshi DOYU
Use vzalloc() instead of vmalloc() + memset(,0,). Change-Id: I24a10114a325bf94c4cb0131eaf3dcd2f901e023 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/75532 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-23gpu: ion: Remove residual empty lineHiroshi DOYU
Remove unnecessary empty line. Change-Id: I475b711205d58ac220199b9875840c5300cef81c Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/75531 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-23gpu: ion: Fix incorrect BUG_ON()Hiroshi DOYU
ALIGN() -> IS_ALIGN(). Change-Id: I4451142932c5b33e83a8296c654226c41db73611 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/75530 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-23gpu: ion: Add one empty line for readabilityHiroshi DOYU
For readability. Change-Id: I3f197e584f81b748c04d4eb7711bb4082492c441 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/75529 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-23gpu: ion: Remove unnecessary header inclusionsHiroshi DOYU
This should be independent of any SoCs. Remove tegra specific header inclusion and other unnecessary ones too. Change-Id: I2fcc7481b535f7c9348d36a1974e2b8b8883046d Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/75528 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-19gpu: ion: tegra: Fixes to tegra ion.Krishna Reddy
Fix print format issues. Fix NULL pointer handling during unpin. Change-Id: I2f537928819093d6c50dc7add734136c7078717e Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/74469 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
2012-01-16gpu: ion: Update print format in Ion.Krishna Reddy
Update print format and use WARN for some of errors. Change-Id: Ie594eb09fdbefb332d6fc7460b64ce35153fa584 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/74470 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-12gpu: ion: tegra: Ignore unsupported heap with printing warningHiroshi DOYU
Instead of rewinding and returning error for unsupported heap, continuie to next heap with printing warning. If some kind of heap isn't supported, it doesn't have to cancel Ion memory manager itself. Change-Id: I0d2c8dc1b9fc69318309f90dc657b10a3bd866bb Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/73607 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
2012-01-12gpu: ion: Add IOMMU heap allocator with IOMMU APIHiroshi DOYU
Implemented IOMMU heap allocator("ion_iommu_heap_ops") with IOMMU API. This implementation is independenf of SoC because the standard IOMMU API is used in the backend implementation of this heap_ops. [Krishna Reddy: Refactored the original version heavily, especially making "allocation" and "mapping" features independent with "struct page" based mapping functions.] Change-Id: Ia692d9a0dc00424fa3e95a830f557808351b1ad7 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/72217 Reviewed-by: Automatic_Commit_Validation_User
2011-12-29gpu: ion: tegra: add tegra custom ioctl handling.Krishna Reddy
Add tegra specific custom ioctl handling. Change-Id: If87b47f969fe0b3fdbb3bee965c370f6610fd4be Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/71113 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com> Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
2011-12-29gpu: ion: Add api to get client from file id.Krishna Reddy
Change-Id: Ifb3bc3d7fa54cddda7e3f0acd34dbcc4b1ed39d3 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/72644 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
2011-12-29gpu: ion: move ion priv data structs and methods to ion_priv.hKrishna Reddy
Move ion priv data structs and methods to ion_priv.h. This is needed to allow vendor spcific code dereferencing ion data structs and accessing methods. Change-Id: I4f863e0f4a59a80ec6b4468ca27ed7b96a78772b Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/71111 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
2011-12-29gpu: ion: Fix ion handle and buffer ref counting issue.Krishna Reddy
Handle and buffer are not ref counted correct during fork from a process, which has mmap'ed ion memory. Change-Id: Ida98f4639f29fef8397abd07bbf317c1baa0130e Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/72643 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Scott Williams <scwilliams@nvidia.com>
2011-11-30ion: minor clean upIliyan Malchev
-- 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-11-30gpu: ion: Validate handles passed via the kernel apiRebecca Schultz Zavin
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-11-30gpu: ion: Fix deferencing ERR_PTRChoi, Jong-Hwan
Change-Id: I986c380d75591571890f1a2cba1405e66789b25c Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
2011-11-30gpu: ion: Fix possible memory leakChoi, Jong-Hwan
Change-Id: I66f5ad2c95513dfab9f4fc5ae2fcb1316f486d34 Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
2011-11-30gpu: ion: Remove redunant code from ion_openRebecca Schultz Zavin
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-11-30gpu: ion: Fix bug in ion client destroyRebecca Schultz Zavin
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-11-30gpu: ion: Fix bug in ion_client_createRebecca Schultz Zavin
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-11-30gpu: ion: Remove incorrect error messageRebecca Schultz Zavin
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-11-30gpu: ion: Fix bug in ion_buffer_addRebecca Schultz Zavin
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2011-11-30gpu: ion: Several fixesRebecca Schultz Zavin
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-11-30gpu: ion: Add ION Memory ManagerRebecca Schultz Zavin
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>