summaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert "staging: tidspbridge: replace iommu custom for opensource ↵Felipe Contreras2010-11-116-135/+518
| | | | | | | | | implementation" This reverts commit d95ec7e2fd5cebf2f1caf3f572fa5e0a820ac5b1. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Revert "staging: tidspbridge - move shared memory iommu maps to tiomap3430.c"Felipe Contreras2010-11-114-139/+146
| | | | | | | This reverts commit 0c10e91b6cc9d1c6a23e9eed3e0653f30b6eb3d3. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Revert "staging: tidspbridge - rename bridge_brd_mem_map/unmap to a proper name"Felipe Contreras2010-11-115-116/+141
| | | | | | | This reverts commit 4dd1944ab7242d76534c97d5fef0ce541a2f1040. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Revert "staging: tidspbridge - remove custom mmu code from tiomap3430.c"Felipe Contreras2010-11-112-0/+427
| | | | | | | This reverts commit e7396e77d9e4230bf725b5807732cbca191d111f. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Revert "staging: tidspbridge - fix mmufault support"Felipe Contreras2010-11-113-40/+57
| | | | | | | This reverts commit f265846db1e755c11498f6f7c011127dfcc5634a. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Revert "staging: tidspbridge - remove hw directory"Felipe Contreras2010-11-1113-2/+1148
| | | | | | | This reverts commit 053fdb85f56e84bff64a65601be7f72608f016da. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Revert "staging: tidspbridge - move all iommu related code to a new file"Felipe Contreras2010-11-117-391/+289Star
| | | | | | | This reverts commit f94378f9f9a897fc08e9d12733401ae52466e408. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Revert "staging: tidspbridge: remove dw_dmmu_base from cfg_hostres struct"Felipe Contreras2010-11-114-1/+10
| | | | | | | This reverts commit b5a44939231d6e3b0354624289507bfa1432a7b1. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Revert "staging: tidspbridge - remove reserved memory clean up"Felipe Contreras2010-11-114-0/+53
| | | | | | | This reverts commit db348ca36e5881cd1d2e5caa6eee7d0237d07a3d. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Revert "staging: tidspbridge - deprecate reserve/unreserve_memory funtions"Felipe Contreras2010-11-114-17/+197
| | | | | | | This reverts commit b1ced160af36043ee80d354318794753b6b7c008. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Revert "staging: tidspbridge - remove dmm custom module"Felipe Contreras2010-11-119-6/+747
| | | | | | | This reverts commit 2ab573487a98c06fdfb34308f641f09369d61fa2. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Revert "staging: tidspbridge - update Kconfig to select IOMMU module"Felipe Contreras2010-11-111-1/+0Star
| | | | | | | This reverts commit ace5a3ce40bb90f14953c5e3f73e9cf1176b1a28. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* staging: tidspbridge: hardcode SCM macros while fix is upstreamedFelipe Contreras2010-11-111-1/+13
| | | | | | | | | | | | | | On 2.6.37-rc1, omap platform internals for SCM have changed, so the build is broken again. drivers/staging/tidspbridge/core/tiomap3430.c:26: fatal error: plat/control.h: No such file or directory This is a totally ugly layer violation, but needed until omap_ctrl_set_dsp_boot*() are provided. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
* Merge 'staging-next' to Linus's treeGreg Kroah-Hartman2010-10-2855-4292/+840Star
|\ | | | | | | | | | | | | | | This merges the staging-next tree to Linus's tree and resolves some conflicts that were present due to changes in other trees that were affected by files here. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: Clean up error-handling codeJulia Lawall2010-10-151-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the first hunk, 0 is returned on memory allocation failure, even though other failures return -ENOMEM or other similar values. In the second hunk, there was error handling code that returned without freeing psz_path_name. A simplified version of the semantic match that finds the first problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression ret; expression x,e1,e2,e3; @@ ret = 0 ... when != ret = e1 *x = \(kmalloc\|kcalloc\|kzalloc\)(...) ... when != ret = e2 if (x == NULL) { ... when != ret = e3 return ret; } // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: fix signess errorVasiliy Kulikov2010-10-101-1/+2
| | | | | | | | | | | | | | i was unsigned, so check for (i < 0) made no sense. Made it signed. Signed-off-by: Vasiliy Kulikov <segooon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: add memory consistency to TODO listArnd Bergmann2010-10-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This driver uses ioremap on regular memory to get an uncached mapping, which causes problems on ARMv6 and higher due to aliasing with the cached linar kernel mapping. Make sure this gets fixed before the driver graduates from staging. Cc: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: tidspbridge: Makefile: replace the use of <module>-objs with <module>-yTracey Dent2010-10-081-1/+1
| | | | | | | | | | | | | | Changed <module>-objs to <module>-y in Makefile. Signed-off-by: Tracey Dent <tdent48227@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: bind driver name to device nameOmar Ramirez Luna2010-10-071-2/+1Star
| | | | | | | | | | | | | | | | Since the device name has changed use the new name to bind the driver to it. Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge - update Kconfig to select IOMMU moduleFernando Guzman Lugo2010-10-061-0/+1
| | | | | | | | | | | | | | | | IOMMU module most be selected when using tidspbridge, because now tidsbridge depends on iommu module. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge - remove dmm custom moduleFernando Guzman Lugo2010-10-069-747/+6Star
| | | | | | | | | | | | | | Dmm custom module is not needed anymore. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge - deprecate reserve/unreserve_memory funtionsFernando Guzman Lugo2010-10-064-197/+17Star
| | | | | | | | | | | | | | | | Now what iommu memory usage is kept track by iommu module the functions reserve/unreserve_memory are not needed anymore. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge - remove reserved memory clean upFernando Guzman Lugo2010-10-064-53/+0Star
| | | | | | | | | | | | | | | | | | Now iommv module keeps track of iommu memory used, we do not need resource cleanup for reserved memories anymore. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: remove dw_dmmu_base from cfg_hostres structFernando Guzman Lugo2010-10-064-10/+1Star
| | | | | | | | | | | | | | | | We don't need to map iva2 iommu register base address anymore. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge - move all iommu related code to a new fileFernando Guzman Lugo2010-10-067-289/+390
| | | | | | | | | | | | | | | | Create dsp-mmu module and moves all the iommu code related to this module. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge - remove hw directoryFernando Guzman Lugo2010-10-0613-1148/+2Star
| | | | | | | | | | | | | | | | | | hw directory was only being used for custom iommu implementation APIs, so after the iommu module migration this directory is not needed anymore. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge - fix mmufault supportFernando Guzman Lugo2010-10-063-57/+40Star
| | | | | | | | | | | | | | | | With changes for iommu migration mmufault report and dsp track dump is broken, this patch fixes that. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge - remove custom mmu code from tiomap3430.cFernando Guzman Lugo2010-10-062-427/+0Star
| | | | | | | | | | | | | | | | This patch removes all the custom mmu code remaining in tiomap3430.c which is not needed anymore. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge - rename bridge_brd_mem_map/unmap to a proper nameFernando Guzman Lugo2010-10-065-141/+116Star
| | | | | | | | | | | | | | | | | | Now these functions only map user space addresses to dsp virtual addresses, so now the functions have a more meaningful name. Also now user_to_dsp_map returns the mapped address. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge - move shared memory iommu maps to tiomap3430.cFernando Guzman Lugo2010-10-064-146/+139Star
| | | | | | | | | | | | | | | | Now iommu maps of shared memory segments are done in bridge_brd_start and unmaped in bridge_brd_stop. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: use omap_dsp_platform_dataFelipe Contreras2010-10-055-36/+25Star
| | | | | | | | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: remove duplicated includeNicolas Kaiser2010-10-051-1/+0Star
| | | | | | | | | | | | | | Remove duplicated include. Signed-off-by: Nicolas Kaiser <nikai@nikai.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: replace iommu custom for opensource implementationFernando Guzman Lugo2010-10-056-518/+135Star
| | | | | | | | | | | | | | | | Now the tidspbridge uses the API's from iovmm module. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: ti dspbridge: disable all peripherals at bridge_brd_stopErnesto Ramos2010-10-051-2/+2
| | | | | | | | | | | | | | | | | | DSP Bridge needs to disable the peripheral clocks when switches to BRD_STOPPED since that would prevent the domain to enter in OFF state. Signed-off-by: Ernesto Ramos <ernesto@ti.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: ti dspbridge: Replace find_lcm with lcm kernel funcErnesto Ramos2010-10-051-15/+2Star
| | | | | | | | | | | | | | | | | | | | | | Resendig this patch since it was missed in the last merge... Remove find_lcm within nldr.c and use standard kernel function lcm(). Signed-off-by: Ernesto Ramos <ernesto@ti.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: ti dspbridge: remove cmm_xlator_delete wrapperErnesto Ramos2010-10-054-52/+4Star
| | | | | | | | | | | | | | | | | | | | | | Resending this patch since it was missed in the last merge... Remove unnecessary cmm_xlator_delete function and use kfree() kernel function directly. Signed-off-by: Ernesto Ramos <ernesto@ti.com> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: check return code of get_userVasiliy Kulikov2010-09-061-1/+5
| | | | | | | | | | | | | | Function get_user may fail. Check for it. Signed-off-by: Vasiliy Kulikov <segooon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: check return code of kzallocVasiliy Kulikov2010-09-061-0/+8
| | | | | | | | | | | | | | Function kzalloc may fail. Check for it. Signed-off-by: Vasiliy Kulikov <segooon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging/trivial: fix typos concerning "initiali[zs]e"Uwe Kleine-König2010-09-053-3/+3
| | | | | | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging/trivial: fix typos concerning "address"Uwe Kleine-König2010-09-051-1/+1
| | | | | | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: Remove services.c and services.hIvan Gomez Castellanos2010-08-315-113/+0Star
| | | | | | | | | | | | | | | | | | The services_init() and services_exit() functions don't do anything, so they are removed, and as these are the only two functions defined in services.c and services.h, then these files are also removed. Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: Remove cfg.c and cfg.h filesIvan Gomez Castellanos2010-08-3122-138/+7Star
| | | | | | | | | | | | | | | | So far, the cfg.c file is empty, and the function prototypes in cfg.h are not used in any place. So they can be removed. Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: Remove cfg_set_object()Ivan Gomez Castellanos2010-08-314-54/+36Star
| | | | | | | | | | | | | | | | | | | | | | As the services directory is going to be removed, the cfg_set_object function has also to be removed. Since the driver object handle is retrieved from the drv_data structure, then the word "Registry" is replaced by "driver data" in the comments. Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: Remove cfg_set_dev_object()Ivan Gomez Castellanos2010-08-313-61/+16Star
| | | | | | | | | | | | | | | | As the services directory is going to be removed, the cfg_set_dev_object function has also to be removed. Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: Remove cfg_get_object()Ivan Gomez Castellanos2010-08-318-86/+85Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As the services directory is going to be removed, the cfg_get_object function has also to be removed. Since the driver object handle is retrieved from the drv_data structure, then the word "Registry" is replaced by "driver data" in the comments. Also, the hdrv_obj is not used in function omap34_xx_bridge_remove(), so it is removed. Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: Remove cfg_get_exec_file()Ivan Gomez Castellanos2010-08-313-61/+19Star
| | | | | | | | | | | | | | | | | | | | | | | | As the services directory is going to be removed, the cfg_get_exec_file function has also to be removed. This patch also avoids a possible NULL pointer dereference in function cfg_get_exec_file(), when drv_datap is checked for NULL and then pass drv_datap->base_img as argument to strlen(). Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: Remove cfg_get_dev_object() and do a trivial cleanupIvan Gomez Castellanos2010-08-313-68/+24Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The cfg_get_dev_object function is only used in one place and because of its simplicity, it can be removed. The parameter *value can be left uninitialized if the strcmp() returns a nonzero value, so in the function dev_remove_device(), the hdev_obj could be used uninitialized and could be dereferenced in dev_destroy_device(). This patch fixes this issue, and also removes the dev_obj pointer which is not used. Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: Remove cfg_init() and cfg_exit()Ivan Gomez Castellanos2010-08-313-58/+0Star
| | | | | | | | | | | | | | The functions cfg_init() and cfg_exit() do nothing, so they are removed. Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: Remove cfg_get_auto_start()Ivan Gomez Castellanos2010-08-313-49/+6Star
| | | | | | | | | | | | | | | | | | | | | | As the services directory is going to be removed, this patch is needed. The function cfg_get_auto_start() only assigns a value to the flag tmp, and it is only called by the function api_init_complete2(). So the function cfg_get_auto_start() is not required. Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: tidspbridge: Remove ntfy.cIvan Gomez Castellanos2010-08-313-32/+18Star
| | | | | | | | | | | | | | | | | | | | | | As the services directory is going to be removed, this patch is needed. ntfy.c only contained the function dsp_notifier_event(), and since this function calls sync_set_event(), then the dsp_notifier_event() is moved to the sync.c file. Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>