- 16 Oct, 2009 40 commits
-
-
Jayan John authored
This patch fixes the issues found in.. <1> notify_ducati.c: we were not unmapping "driver_obj->ctrl_ptr". This is done using unmap_ducati_virt_mem() implemented now in ducatienabler. <2> ducatienabler.c: implemented unmap_ducati_virt_mem() to iounmap() the "shm_virt_addr" we get calling ioremap() in get_ducati_virt_mem(). <3> ducatienabler.h: added unmap_ducati_virt_mem(). <4> notify_ducatidriver.h: added unmap_ducati_virt_mem(). Signed-off-by: Jayan John <x00jayan@ti.com>
-
Jayan John authored
This patch fixes an issue found in notify_dispatcher.c where we were not calling iounmap() on "mailbx_hw_config.mbox_linear_addr" which we had obtained using ioremap() earlier in ntfy_disp_init(). Signed-off-by: Jayan John <x00jayan@ti.com>
-
Jayan John authored
This patch fixes an issue found in platform.c where we were not unlocking "platform_mem_state.gate" in case of a ioremap() failure. Signed-off-by: Jayan John <x00jayan@ti.com>
-
Jayan John authored
This patch fixes the issues found in.. <1> platform.c: - calling platform_mem_unmap() on all addreses on which we have called platform_mem_map(). - calling proc_mgr_detach for SysM3 and AppM3. <2> -proc4430.c: - proc4430_detach() fixed to unmap all reqd. addresses. - cleanup Signed-off-by: Jayan John <x00jayan@ti.com>
-
Simon Que authored
When a heapbuf object is created, there are two memory buffers allocated -- one for the handle and one for the object itself. That is in _heapbuf_create. In heapbuf_delete, both are freed. But in heapbuf_close, only the handle is freed. The object pointer is not freed and caused a memory leak. This patch adds a call to free the object. Signed-off-by: Simon Que <sque@ti.com>
-
Simon Que authored
In the function notify_ducatidrv_unregister_event, it finds the event listener and deletes the list element containing that listener, but did not free the listener object itself, which was kmalloced in notify_ducatidrv_register_event. The listener is now being freed. Signed-off-by: Simon Que <sque@ti.com>
-
Simon Que authored
sysmgr_destroy was not cleaning up platform_mem. As a result, memory allocated by platform_mem_setup was not freed by platform_mem_destroy. This has been fixed. Also, platform_mem_destroy was incorrectly freeing the allocated gate handle. It now frees it correctly. Signed-off-by: Simon Que <sque@ti.com>
-
Simon Que authored
The memory alignment was not done properly in proc4430_map. It was not being aligned to the size of all pages needed to cover the reserved area. As a result, not all of it was reserved. This has been fixed and tested. Signed-off-by: Simon Que <sque@ti.com>
-
Suman Anna authored
This is a patch for near-term to enable MM to validate non-Tiler buffers. This patch maps the SW DMM region at 0x80000000 and of size 4MB into the kernel space and also adds a new shared region for it in platform_setup function. platform_override_config function is updated to configure the messageq module with 3 heaps. Signed-off-by: Suman Anna <s-anna@ti.com>
-
Simon Que authored
Syslink destroy phase was failing because of incorrect order of operations in gatepeterson and notify ducati. Signed-off-by: Simon Que <sque@ti.com>
-
Simon Que authored
Error message strings in sysmgr did not have newline characters at end. They have been added. Signed-off-by: Simon Que <sque@ti.com>
-
Simon Que authored
Changed the order of heapbuf cleanup operations in platform_stop_callback. The heapbuf gate handles are deleted after heapbuf is closed. Otherwise the heapbuf close function will hang when attempting to enter the gate. Signed-off-by: Simon Que <sque@ti.com>
-
C A Subramaniam authored
Thi patch has changes to migrate to syslink version 2.0.0.12 Also added some additional checks. Added -EINVAL return code for invalid arguments. Signed-off-by: C A Subramaniam <subramaniam.ca@gmail.com>
-
C A Subramaniam authored
Patch Introduces additional tracking of notify driver handles. Signed-off-by: C A Subramaniam <subramaniam.ca@ti.com> Signed-off-by: Ramesh Gupta G <grgupta@ti.com>
-
Suman Anna authored
This patch incorporates a number of bug fixes from the Syslink 2.00.00.12 drop. The following is the summary of changes. 1. sharedregion: - sharedregion_remove() is corrected to remove the sharedregion entry from the desired processor table. 2. platform_mem: - fixed memory leaks. 3. nameserver_remotenotify: - an atomic_t variable is added to maintain reference counting and the state of the module. - nameserver_get_local searches directly copy the value into the sharedmemory request buffer. - additional error checking is added. 4. messageq: - Number of priority queues definition moved from messageq source code to messageq header file, and is now also used by the messageq_transportshm module. - messageqq_transportshm module state object also keeps track of the individual messageq_transportshm instances created. 5. listmp_sharedmemory: - listmp_sharedmemory_open return value can come from nameserver, and so is checked against only a negative value for failure - sharedregion value is added into the nameserver database rather than the absolute sharedaddr. - minor changes in variable names. 6. heapbuf: - additional checks were added for valid sharedregion ptrs. - heapbuf_open return value can come from nameserver, and so is checked against only a negative value for failure. - minor changes in variable names. 7. gatepeterson: - minor changes in gatepeterson module. This module is currently missing the gatespinlock for interrupt context protection. - additional checks were added for valid sharedregion ptrs. Signed-off-by: Suman Anna <s-anna@ti.com>
-
Hari Kanigeri authored
This patch provides the following functionality: 1. Virt_To_Phys - Given a Co-processor's virtual address, the pages that are mapped are retured in the buffer passed by the user. 2. Given a Chiron's virtual address, maps to Ducati virtual address. This is a hack for now to address Tiler memory until the dynmamic memory allocation for Tiler is supported. This patch also fixed bug in memory unmap function using iommu for Super and Large page cases. Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
-
C A Subramaniam authored
This patch adds support to use multiple ipc heaps. Signed-off-by: C A Subramaniam <subramaniam.ca@ti.com>
-
Suman Anna authored
This patch cleans up the gt_trace code in the rest of the IPC modules. printks are added instead in the IPC driver code. The gt.h header file is no longer included in any IPC source files. This patch has also fixed couple of checkpatch warnings in sharedregion module. Signed-off-by: Suman Anna <s-anna@ti.com>
-
Suman Anna authored
This patch cleaned up all the gt_traces in messageq modules. Duplicate BUG_ONs have also been removed. WARN_ONs have been added instead in some places. Return statements have been added in couple of functions for successful execution scenarions. Signed-off-by: Suman Anna <s-anna@ti.com>
-
Suman Anna authored
This patch cleaned up all the gt_traces in listmp_sharedmemory and listmp modules. Duplicate BUG_ONs have also been removed. return statements have been added in couple of functions for successful execution scenarions. Signed-off-by: Suman Anna <s-anna@ti.com>
-
Suman Anna authored
This patch cleaned up all the gt_traces in messageq_transportshm and heapbuf modules. Duplicate BUG_ONs have also been removed. return statements have been added in couple of functions for successful execution scenarions. Signed-off-by: Suman Anna <s-anna@ti.com>
-
C A Subramaniam authored
Removed unsed global variables. Also, cleaned up the platform_destroy() function. Note: Provision for setting separate heapIDs are also introduced. However, the values set are the same. The HeapIDs and names can be changed once the corresponding changes are made on the MPU side samples and the Ducati side. Signed-off-by: C A Subramaniam <subramaniam.ca@ti.com>
-
Jayan John authored
This patch fixes the minor issues found in heapbuf.c. heapbuf_alloc() now returns failure status for all failures. Earlier we had 0 returned in the case of some failures. Signed-off-by: Jayan John <x00jayan@ti.com>
-
Hari Kanigeri authored
This patch makes the sys manager option selected to be as default Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
-
Jayan John authored
This patch fixes the issues found in.. -messageq.c: messageq_open() now returns standard Linux error -NOENT instead of MESSAGEQ_E_NOTFOUND. -nameserver_remotenotify.c: nameserver_remotenotify_get() calls gatepeterson_leave() in the case of failure. Signed-off-by: Jayan John <x00jayan@ti.com>
-
Hari Kanigeri authored
This patch adds mapping of UART peripherals to DUCATI virtual address Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
-
C A Subramaniam authored
This patch fixes the oops in notify_ducatidrv_open() call. Signed-off-by: C A Subramaniam <subramaniam.ca@ti.com>
-
Simon Que authored
Platform setup creates proc handles for both SysM3 and AppM3. Previously it created only one set of handles, used by both. It also attaches them, so no need to call 'insmod procmgr_app.ko'. Signed-off-by: Simon Que <sque@ti.com> Signed-off-by: Arun Gopalakrishna <arunmg@ti.com>
-
Simon Que authored
Made SysMgr, Platform, ProcMgr compatible for setting up for AppM3, in addition to SysM3. Signed-off-by: Simon Que <sque@ti.com>
-
Ramesh Gupta authored
This patch adds stop param to hold proc_id. Signed-off-by: Ramesh Gupta G <grgupta@ti.com>
-
Hari Kanigeri authored
Fixes the wroing check for mailbox structure pointer. The check should have been for == null instead of !=null Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
-
Hari Kanigeri authored
This patch fixes checkpatch warnings Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
-
Hari Kanigeri authored
This patch moves the mailbox initialization to setup from create function. Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
-
Hari Kanigeri authored
The mailbox is configured twice because the mailbox get is called twice. This patch fixes this issue by having a check to configure it only once. Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
-
Hari Kanigeri authored
This patch fixes the issue with structure mismatch, fixes compile warning, and changes magic numbers to defines. Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com> Signed-off-by: Simon Que <sque@ti.com>
-
Hari Kanigeri authored
This patch adds the config option to select sys manager feature. This is a temporary patch until Sys manager feature is stabilized. Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
-
Simon Que authored
This patch fixes the setup/destroy of several modules to make the cleanup stage run to completion. Signed-off-by: Simon Que <sque@ti.com>
-
Hari Kanigeri authored
This patch fixes the sys manager structure misalignment and a compile warning in nameserver.c Signed-off-by: Suman Anna <suman-anna@ti.com>
-
Anna Suman authored
This patch adds sysmanager module to Syslink. Sys-manager handles IPC setup and manages booting of Co-processors. Signed-off-by: Anna Suman <suman-anna@ti.com> Signed-off-by: Simon Que <sque@ti.com> Signed-off-by: Arun Gopalakrishna <arunmg@ti.com> Signed-off-by: subramaniam <subramaniam.ca@ti.com>
-
Suman Anna authored
This patch includes fixes in the sharedregion module for issues found during sysmgr validation. The main change is to return success if a add request is for an exact duplicate sharedregion entry. The other change is to return success instead of failure if the sharedregion module is already setup. Signed-off-by: Suman Anna <s-anna@ti.com>
-