summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-06-02TILER: Fix klocwork defects in tiler_reservex() and tiler_exit()Lajos Molnar
Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Fixed issue with tiler_alloc_packed for 16/32-bit buffers.Lajos Molnar
Fixed size calculation for the allocated buffer into which the packing takes place. Tested using V4L2 unit tests and debug prints as only V4L2 uses this function. Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Enable media supportDavid Sin
Since Kconfig entries have been moved to drivers/media/Kconfig, we need to enable media support in order for dmm/tiler to build. Signed-off-by: David Sin <davidsin@ti.com>
2010-06-02TILER: Relocate entries to the media Kconfig fileDavid Sin
Signed-off-by: David Sin <davidsin@ti.com>
2010-06-02TILER: Added reference counting and cleanup. Fixed query bugs.Lajos Molnar
The reference count of blocks increases on alloc, and by registered buffers that contain that block. When all tiler drivers of a process are closed: - blocks allocated by it are marked "freed" - buffers registered by it are unregistered All blocks that are no longer marked "allocated" and are not referenced by registered buffers are actually freed. Blocks allocated by the kernel API are tracked separately, and are not release when tiler drivers are closed. They are only freed using tiler_free, or when the kernel driver closes. Fixed a bug with querying buffers by address, which did not account for the new TCM support for 1D buffers and block management. Added support for clearing PAT for freed blocks. Added extended tiler kernel API-s for specifying group ids, pids, alignment and offset. tiler_allocx tiler_reserve tiler_reservex tiler_map tiler_mapx Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Cleaned up SiTA container manager algorithm codeLajos Molnar
Removed unnecessary true/false identical macro values Changed tcm_area.type field to is2d Shortened variable names Renamed functions based on what they do Simplified some of the logic Removed most of the debug messages and unused/duplicate variables Removed duplicate parameter checks and made fuctions that always succeed void. Moved tcm_dbg.h macros into tcm_utils.h Tested using memmgr_1.0 tests. Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Added support for auto-packing of tiler blocks.Lajos Molnar
Changed the way tiler blocks are maintained. 1D blocks are maintained similarly as before, but 2D blocks now reside on "reserved areas" that are maintained in area_info structs. Note, that even though auto-packing is supported, there is no open API to specify alignment other than kernel page size. Therefore, there is no expected allocation efficiency gain. Reference counts are also introduced although they are not yet used. Tested using memmgr_1.0 test as well as select allocation/freeing kernel calls to verify logic of maintaining blocks in the reserved area. Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Renamed dmm_mem.c to tmm_pat.c to reflect what it is.Lajos Molnar
Also fixed a compiler warning. Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Added support for multiple containers and PAT instances.Lajos Molnar
Added instance support for DMM PAT programming (dmm.c) Created TMM interface for flexible tiler memory management (PAT or not). Added instance support to DMM PAT memory pages management (dmm_mem.c) Removed unused get_page/free_page methods. Fixed TILER_GET_ACC_MODE macro to return correct tiler_fmt values. Fixed a few sizeof style errors, and simplified dmm_mem.c Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Renamed SiTA tcm files to *tcm_sita*Lajos Molnar
Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Separated SiTA TCM implementation from TCM definitionLajos Molnar
Moved SiTA specific util function into tcm_sita.c Added copyright headers Adjusted TCM_INIT definition macro as attribute type can be known. Prepared for renames in next commit. Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Consolidated PAT programmingLajos Molnar
Also removed unnecessary fields in mem_info struct Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Use TCM features for tiler space allocations.Lajos Molnar
TCM sita allocator bug fix: set area type Allow flexible tiler-allocation bands vs. hardoded 64-slot bands. Allow 1D area allocation/mapping at slot granularity. Use kernel macros for rounding and aligning. Remove duplicate checks in TCM. Minor formatting. Added tcm_sizeof macro. Fixed tcm_for_each_slice macro. Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Update to Linux sizeof conventions and formatting.Lajos Molnar
Fixe sizeof constructs to use the target variable's type instead of hardcoded type. Removed multi-line strings, extra empty lines. Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Initial TCM code cleanupLajos Molnar
Fixed spacing and most comments according to kernel coding style. Fixed multi-line strings. Made all function signatures static. Replaced memset initialization with "= {0}". Replaced AREA_STR macro with cleaner print macro. Removed unnecessary mutex macros. Removed unnecessary parentheses. There is a checkpatch warning for the AREA macro, which is expected. Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02TILER: Initial reorganization of TCM files.Lajos Molnar
Moved TCM files to their correct location to be able to see future diffs. Signed-off-by: Lajos Molnar <molnar@ti.com>
2010-06-02Fixed Bugs, Added memset to sita_pvt in sita_init, updated utils to copy new ↵R Ramachandra
fields in insert_element
2010-06-02Fixed bugs in sita_initR Ramachandra
2010-06-02Moved to New Tiler APIs defined in tcm.h, add multi-continer support ↵R Ramachandra
Signed-off-by: R Ramachandra <r.ramachandra@ti.com>
2010-06-02Export latest dmm header to mach directory Signed-off-by: David Sin ↵David Sin
<davidsin@ti.com>
2010-06-02Renamed files with shorter namesa0866614
2010-06-02free buf info struct if copy_to/copy_from check failsDavid Sin
2010-06-02add NULL checks before returning from dmm_get_page(s) functionDavid Sin
2010-06-02TILER: Corrected parameter checking in tiler_alloc_packed_nv12.Lajos Molnar
Signed-off-by: Lajos Molnad <molnar@ti.com>
2010-06-02new APIs to optimize the freeing of used dmm pagesDavid Sin
we introduce two new dmm APIs --dmm_get_pages/dmm_free_pages -- to the tiler driver, which allocate and free a set of dmm pages. previously, we allocated/freed single pages using dmm_get_page()/dmm_free_page. we observed that moving single pages from the used page stack to the free page stack caused excessive delays because of linear/unsorted searches.
2010-06-02don't dereference sysptr in tiler_alloc_packed functionDavid Sin
2010-06-02correct rot/pack API mismatches; add missing API prototypesDavid Sin
2010-06-02create separate module for tiler area manager (tam)David Sin
2010-06-02enable find buffer logic with new algoDavid Sin
2010-06-02tiler driver support for new tiler container algoDavid Sin
2010-06-02add dmm/tiler headers to omap include dirDavid Sin
2010-06-02move error code enums into 2d alloc headerDavid Sin
2010-06-02remove unused dmm function declarationsDavid Sin
2010-06-02Relocate TILER macro defDavid Sin
2010-06-02Remove unused dmm status and error structuresDavid Sin
2010-06-02enable query blockDavid Sin
2010-06-02add d2c logic to tiler drv; rework dmm pat refill functionDavid Sin
2010-06-02add support to map existing user buffer into tilerDavid Sin
2010-06-02add rotation, packing, and map 1d codeDavid Sin
pull in old dmm_ll_drv code into dmm.c
2010-06-02replace page stack logic with new one using kernel listsDavid Sin
add wrapper structure to house buf_info struct to fix copy to/from issues
2010-06-02additional code corrections to pass next series of mem mgr testsDavid Sin
2010-06-02enable tiler_alloc, mmap, and tiler_free to pass initial testsDavid Sin
2010-06-02add logic to setup PAT and TILER orientationDavid Sin
2010-06-02basic tiler driverDavid Sin
2010-06-02re-format function spacingDavid Sin
2010-06-02replace types with kernel macrosDavid Sin
2010-06-02basic dmm driverDavid Sin
2010-06-02omap: hsmmc funtionality breaks when CONFIG_PM not defineSukumar Ghorai
Issue if power_saving option passed from board file and CONFIG_PM not define. This is because hosts refer to wrong operation table and that try to power save. Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
2010-06-01OMAP: serial: Disable serial 8250 suspend/resumeRajendra Nayak
8250 suspend/resume with no_console_suspend enabled is broken in mainline. Hence disable it for now. Signed-off-by: Rajendra Nayak <rnayak@ti.com>
2010-06-01OMAP: hwmod: if IDLEST fields are not set, use module defaultsKevin Hilman
In the _setup() hook, check for valid IDLEST fields. If not set, use the module defaults since they are the same as the module defaults for most hwmods. Problem found because _wait_target_ready() will fail if IDLEST fields are not valid. Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>