[PATCH 1/3] DSPBRIDGE: Interface tightening to check for invalid input parameters

2010-01-13 Thread Omar Ramirez Luna
From: Ernesto Ramos Add more error checking and range to address usecases accessing kernel APIs directly. Signed-off-by: Ernesto Ramos CC: Nishanth Menon CC: Hiroshi Doyu CC: Ameya Palande --- arch/arm/plat-omap/include/dspbridge/dbdefs.h |4 +- drivers/dsp/bridge/pmgr/wcd.c

[PATCH v3 0/7] misc patches (for ioctl and ssi)

2010-01-11 Thread Omar Ramirez Luna
ge_[open|release] Omar Ramirez Luna (7): DSPBRIDGE: replace IO_ADDRESS with ioremap DSPBRIDGE: Replace magic numbers in SSI configuration DSPBRIDGE: Mark unused ioctls as deprecated DSPBRIDGE: remove ioctl runtime check DSPBRIDGE: Rename pResult to result for WCD_CallDevIOCtl DSPBRIDGE: U

[PATCH v3 2/7] DSPBRIDGE: Replace magic numbers in SSI configuration

2010-01-11 Thread Omar Ramirez Luna
Rename ssi_sysconfig variable and replace the usage of magic numbers while updating SSI configuration. Signed-off-by: Omar Ramirez Luna CC: Nishanth Menon CC: Hiroshi Doyu CC: Ameya Palande CC: Felipe Contreras --- drivers/dsp/bridge/services/clk.c | 12 1 files changed, 8

[PATCH v3 5/7] DSPBRIDGE: Rename pResult to result for WCD_CallDevIOCtl

2010-01-11 Thread Omar Ramirez Luna
Trivial cleanup, rename pResult to result for WCD_CallDevIOCtl Signed-off-by: Omar Ramirez Luna CC: Nishanth Menon CC: Hiroshi Doyu CC: Ameya Palande CC: Felipe Contreras --- drivers/dsp/bridge/pmgr/wcd.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v3 6/7] DSPBRIDGE: Use _IOxx macro to define ioctls

2010-01-11 Thread Omar Ramirez Luna
e enough. Other clients (not using libbridge) need to update their ioctl numbers manually. Signed-off-by: Omar Ramirez Luna CC: Nishanth Menon CC: Hiroshi Doyu CC: Ameya Palande CC: Felipe Contreras --- arch/arm/plat-omap/include/dspbridge/wcdioctl.h | 181 - drivers/dsp/bri

[PATCH v3 7/7] DSPBRIDGE: remove WCD_Cmd structure

2010-01-11 Thread Omar Ramirez Luna
Remove WCD_Cmd structure given that only one member is being used (fxn call), this structure is replaced for a definition of an array of function pointers for each dspbridge ioctl module. Signed-off-by: Omar Ramirez Luna CC: Nishanth Menon CC: Hiroshi Doyu CC: Ameya Palande CC: Felipe

[PATCH v3 1/7] DSPBRIDGE: replace IO_ADDRESS with ioremap

2010-01-11 Thread Omar Ramirez Luna
Use ioremap() instead of using IO_ADDRESS macro to make it generic. Signed-off-by: Omar Ramirez Luna CC: Tony Lindgren CC: Nishanth Menon CC: Hiroshi Doyu CC: Ameya Palande CC: Felipe Contreras --- drivers/dsp/bridge/services/clk.c | 19 +-- 1 files changed, 13 insertions

[PATCH v3 3/7] DSPBRIDGE: Mark unused ioctls as deprecated

2010-01-11 Thread Omar Ramirez Luna
Mark unused ioctls as deprecated for future removal and print an error message whenever they are used. Signed-off-by: Omar Ramirez Luna CC: Nishanth Menon CC: Hiroshi Doyu CC: Ameya Palande CC: Felipe Contreras --- arch/arm/plat-omap/include/dspbridge/wcdioctl.h | 11 -- drivers/dsp

[PATCH v3 4/7] DSPBRIDGE: remove ioctl runtime check

2010-01-11 Thread Omar Ramirez Luna
This patch removes the runtime check of device ioctl array. Signed-off-by: Omar Ramirez Luna CC: Nishanth Menon CC: Hiroshi Doyu CC: Ameya Palande CC: Felipe Contreras --- drivers/dsp/bridge/pmgr/wcd.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/drivers/dsp

[PATCH 6/6] DSPBRIDGE: Use _IOxx macro to define ioctls

2010-01-11 Thread Omar Ramirez Luna
e enough. Other clients (not using libbridge) need to update their ioctl numbers manually. Signed-off-by: Omar Ramirez Luna CC: Nishant Menon CC: Hiroshi Doyu CC: Ameya Palande CC: Felipe Contreras --- arch/arm/plat-omap/include/dspbridge/wcdioctl.h | 164 +++-- drivers/dsp/bri

[PATCH 2/6] DSPBRIDGE: Replace magic numbers in SSI configuration

2010-01-11 Thread Omar Ramirez Luna
Rename ssi_sysconfig variable and replace the usage of magic numbers while updating SSI configuration. Signed-off-by: Omar Ramirez Luna CC: Nishant Menon CC: Hiroshi Doyu CC: Ameya Palande CC: Felipe Contreras --- drivers/dsp/bridge/services/clk.c | 12 1 files changed, 8

[PATCH 1/6] DSPBRIDGE: replace IO_ADDRESS with ioremap

2010-01-11 Thread Omar Ramirez Luna
Use ioremap() instead of using IO_ADDRESS macro to make it generic. Signed-off-by: Omar Ramirez Luna CC: Nishant Menon CC: Hiroshi Doyu CC: Ameya Palande CC: Felipe Contreras --- drivers/dsp/bridge/services/clk.c | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff

[PATCH 4/6] DSPBRIDGE: remove ioctl runtime check

2010-01-11 Thread Omar Ramirez Luna
This patch removes the runtime check of device ioctl array. Signed-off-by: Omar Ramirez Luna CC: Nishant Menon CC: Felipe Contreras --- drivers/dsp/bridge/pmgr/wcd.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/drivers/dsp/bridge/pmgr/wcd.c b/drivers/dsp

[PATCH v2 0/6] misc patches

2010-01-11 Thread Omar Ramirez Luna
Ramirez Luna (6): DSPBRIDGE: replace IO_ADDRESS with ioremap DSPBRIDGE: Replace magic numbers in SSI configuration DSPBRIDGE: Mark unused ioctls as deprecated DSPBRIDGE: remove ioctl runtime check DSPBRIDGE: Rename pResult to result for WCD_CallDevIOCtl DSPBRIDGE: Use _IOxx macro to define

[PATCH 5/6] DSPBRIDGE: Rename pResult to result for WCD_CallDevIOCtl

2010-01-11 Thread Omar Ramirez Luna
Trivial cleanup, rename pResult to result for WCD_CallDevIOCtl Signed-off-by: Omar Ramirez Luna CC: Nishant Menon --- drivers/dsp/bridge/pmgr/wcd.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dsp/bridge/pmgr/wcd.c b/drivers/dsp/bridge/pmgr/wcd.c index

[PATCH 3/6] DSPBRIDGE: Mark unused ioctls as deprecated

2010-01-11 Thread Omar Ramirez Luna
Mark unused ioctls as deprecated for future removal. Signed-off-by: Omar Ramirez Luna CC: Nishant Menon CC: Felipe Contreras --- arch/arm/plat-omap/include/dspbridge/wcdioctl.h | 11 -- drivers/dsp/bridge/pmgr/wcd.c | 38 +-- 2 files changed, 22

[PATCH] DSPBRIDGE: driver version 0.1

2010-01-11 Thread Omar Ramirez Luna
This is the official 0.1 dspbridge version. CC: Felipe Contreras CC: Hiroshi Doyu CC: Ameya Palande CC: Nishant Menon Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/rmgr/drv_interface.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/dsp/bridge

[PATCH] driver version 0.1

2010-01-11 Thread Omar Ramirez Luna
/heads/dspbridge Special thanks to: - Felipe Contreras: for his comments and time during this sync up. - Hiroshi Doyu and Ameya Palande for their time reviewing patches. - And all who also have provided their comments. Omar Ramirez Luna (1): DSPBRIDGE: driver version 0.1 drivers/dsp/bridge/rmgr

[PATCH 8/8] DSPBRIDGE: Use _IOxx macro to define ioctls

2010-01-07 Thread Omar Ramirez Luna
ed and not implemented ioctls, this can be done when all the ioctls are accessed through a switch instead of a pointer to function. *** NOTE: An update in api ioctl definitions is required. *** Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/wcdioct

[PATCH 7/8] DSPBRIDGE: Fix header locations mach to plat

2010-01-07 Thread Omar Ramirez Luna
Fix header locations, replaced mach to plat Signed-off-by: Omar Ramirez Luna --- arch/arm/mach-omap2/dspbridge.c|2 +- arch/arm/plat-omap/include/dspbridge/host_os.h |2 +- drivers/dsp/bridge/wmd/tiomap3430.c|2 +- 3 files changed, 3 insertions(+), 3

[PATCH 6/8] DSPBRIDGE: Use dspbridge to initialize platform data

2010-01-07 Thread Omar Ramirez Luna
Include dspbridge compilation whenever bridge driver is selected to be compiled, either as a module or part of the kernel. This will initialize platform data specific PM functions. Signed-off-by: Omar Ramirez Luna --- arch/arm/mach-omap2/Makefile |4 +++- 1 files changed, 3 insertions(+), 1

[PATCH 5/8] DSPBRIDGE: change to cpufreq_register_notifier for OPP changes

2010-01-07 Thread Omar Ramirez Luna
From: Fernando Guzman Lugo This patch changes clk_notifier_unregister with cpufreq_unregister_notifier, which is used for OPP change notifications Signed-off-by: Fernando Guzman Lugo --- drivers/dsp/bridge/Kconfig |2 +- drivers/dsp/bridge/rmgr/drv_interface.c | 25 +

[PATCH 4/8] DSPBRIDGE: Remove unused hDrvObject in bridge_[open|release]

2010-01-07 Thread Omar Ramirez Luna
This patch removes an unused variable in bridge_open and bridge_release functions, which reduces indentation. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/rmgr/drv_interface.c | 25 + 1 files changed, 5 insertions(+), 20 deletions(-) diff --git a/drivers

[PATCH 2/8] DSPBRIDGE: sysfs entry for global driver state

2010-01-07 Thread Omar Ramirez Luna
This patch creates a new sysfs entry to query the driver state without making any bridge direct call, this is useful to monitor driver state without creating any handle to bridge driver. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/rmgr/drv_interface.c | 87

[PATCH 3/8] DSPBRIDGE: Increased DMM size to 256MB

2010-01-07 Thread Omar Ramirez Luna
From: Hari Kanigeri This patch increases the DMM from 64MB to 256MB. Signed-off-by: Hari Kanigeri Signed-off-by: Omar Ramirez Luna Signed-off-by: Leed Aguilar --- arch/arm/plat-omap/include/dspbridge/dmm.h |2 +- drivers/dsp/bridge/pmgr/dmm.c |8 2 files

[PATCH 1/8] DSPBRIDGE: Cleanup SSI handling - remove IO_ADDRESS

2010-01-07 Thread Omar Ramirez Luna
This patch cleans SSI clock preparation and also removes the dependency on IO_ADDRESS variants for easier maintenance. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/drv.h |7 ++ drivers/dsp/bridge/services/clk.c | 30 ++- 2

[PATCH 0/8] misc patches

2010-01-07 Thread Omar Ramirez Luna
). Fernando Guzman Lugo (1): DSPBRIDGE: change to cpufreq_register_notifier for OPP changes Hari Kanigeri (1): DSPBRIDGE: Increased DMM size to 256MB Omar Ramirez Luna (6): DSPBRIDGE: Cleanup SSI handling - remove IO_ADDRESS DSPBRIDGE: sysfs entry for global driver state DSPBRIDGE: Remove unused

[PATCH 0/2] Cleanup for handle constraint from DSP

2009-12-21 Thread Omar Ramirez Luna
Omar Ramirez Luna (2): DSPBRIDGE: Avoid saving mailbox settings on constraint request DSPBRIDGE: remove useless return statement drivers/dsp/bridge/wmd/tiomap3430_pwr.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) -- To unsubscribe from this list: send the line

[PATCH 1/2] DSPBRIDGE: Avoid saving mailbox settings on constraint request

2009-12-21 Thread Omar Ramirez Luna
There is no need to save the mailbox settings if a request to set the OPP constraint comes from the DSP. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap3430_pwr.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/dsp/bridge/wmd

[PATCH 2/2] DSPBRIDGE: remove useless return statement

2009-12-21 Thread Omar Ramirez Luna
Remove useless return in function to set an OPP constraint. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap3430_pwr.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c

[PATCH] DSPBRIDGE: Improve flush_all() performance

2009-12-16 Thread Omar Ramirez Luna
mit/f0cc4ab4e4c40043a423f178a970ad9c8ab8fa06 Signed-off-by: Ameya Palande [ orl: ported ] Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap3430.c | 18 -- 1 files changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/dsp/bridge/wmd/tiomap3430.c b/drivers/

[PATCH] DSPBRIDGE: Reset IVA2 Video sequencer

2009-12-16 Thread Omar Ramirez Luna
This patch will reset IVA2 video sequencer as part of initialization or uninstall process. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap3430.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/dsp/bridge/wmd/tiomap3430.c b/drivers/dsp/bridge

[PATCH 4/7] DSPBRIDGE: less indentation for bridge_open and bridge_release

2009-12-16 Thread Omar Ramirez Luna
Use goto statement to remove one indent level from bridge_open and bridge_release. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/rmgr/drv_interface.c | 61 --- 1 files changed, 32 insertions(+), 29 deletions(-) diff --git a/drivers/dsp/bridge/rmgr

[PATCH 2/7] DSPBRIDGE: Define pr_ctxt as a parameter in low level functions

2009-12-16 Thread Omar Ramirez Luna
From: Ameya Palande As part of resource cleanup changes, this patch continues with the next level of modifications required to use filp->private to store PROCESS_CONTEXT structure. Signed-off-by: Ameya Palande [ orl: split into logical patch set, patch description ] Signed-off-by: Omar Rami

[PATCH 1/7] DSPBRIDGE: Pass filp->private to all the ioctl wrappers

2009-12-16 Thread Omar Ramirez Luna
From: Ameya Palande This patch enables passing of filp->private_data to all the ioctl wrappers functions. This change will facilitate retrival of PROCESS_CONTEXT pointer in ioctl, and will remove the call to DRV_GetProcContext(). Signed-off-by: Ameya Palande Acked-by: Fernando Guzman Lugo ---

[PATCH 3/7] DSPBRIDGE: Remove old resource cleanup implementation

2009-12-16 Thread Omar Ramirez Luna
From: Ameya Palande Remove old resource cleanup implementation, and use the process context pointer stored in filp->private. Signed-off-by: Ameya Palande [ orl: split into logical patch set, patch description ] Signed-off-by: Omar Ramirez Luna Acked-by: Fernando Guzman Lugo --- arch/

[PATCH 5/7] DSPBRIDGE: Remove process context list

2009-12-16 Thread Omar Ramirez Luna
From: Fernando Guzman Lugo This patch removes the list implementation to store and manage process contexts as it is not needed anymore. Signed-off-by: Fernando Guzman Lugo --- .../plat-omap/include/dspbridge/resourcecleanup.h |2 - drivers/dsp/bridge/pmgr/wcd.c |1

[PATCH 0/7] Resource cleanup changes

2009-12-16 Thread Omar Ramirez Luna
parameter in low level functions DSPBRIDGE: Remove old resource cleanup implementation Ernesto Ramos Falcon (1): DSPBRIDGE: Delete list implementation for resource cleanup Fernando Guzman Lugo (1): DSPBRIDGE: Remove process context list Omar Ramirez Luna (2): DSPBRIDGE: less indentation fo

[PATCH 6/7] DSPBRIDGE: Delete list implementation for resource cleanup

2009-12-16 Thread Omar Ramirez Luna
From: Ernesto Ramos Falcon This patch moves processor detach implementation to bridge_release, when a process is exiting it will be doing the detach from there instead of relying on the user to explicitly call detach function. This will allow a fine control on the resources that will be cleaned

[PATCH 7/7] DSPBRIDGE: Move PROC object abstraction to proc.c

2009-12-16 Thread Omar Ramirez Luna
Move object structure to PROC module. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/proc.h | 24 drivers/dsp/bridge/rmgr/proc.c | 23 +++ 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a

[PATCHv2 10/18] DSPBRIDGE: Trivial cleanup on DBDCD

2009-12-16 Thread Omar Ramirez Luna
Trivial spacing cleanup on DSP/BIOS Bridge Configuration Database module. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/rmgr/dbdcd.c | 343 --- 1 files changed, 179 insertions(+), 164 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/dbdcd.c b

[PATCHv2 17/18] DSPBRIDGE: Delete unused files

2009-12-16 Thread Omar Ramirez Luna
These files seem to be unused, deleting them. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/dbl.h | 354 --- arch/arm/plat-omap/include/dspbridge/dbof.h | 117 --- drivers/dsp/bridge/dynload/dlclasses_hdr.h | 41 - drivers/dsp/bridge/pmgr/dbl.c

[PATCHv2 05/18] DSPBRIDGE: Enable/Disable MCBSP_CLOCKS for MCBSP2

2009-12-16 Thread Omar Ramirez Luna
-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap3430_pwr.c | 73 ++- 1 files changed, 72 insertions(+), 1 deletions(-) diff --git a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c index 619ed1a..f30da74 100644 --- a

[PATCHv2 08/18] DSPBRIDGE: Remove long busy-wait loops on PWRST transitions

2009-12-16 Thread Omar Ramirez Luna
=c8853459b739e5f43da0badc1605a0a0c0c8195d Reported-by: Nishanth Menon Signed-off-by: Fernando Guzman Lugo Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/_tiomap_util.h |6 ++ drivers/dsp/bridge/wmd/tiomap3430_pwr.c | 24 +--- 2 files changed, 19

[PATCHv2 16/18] DSPBRIDGE: KFILE_Seek & KFILE_Tell, u32 replaced with loff_t

2009-12-16 Thread Omar Ramirez Luna
KFILE_Seek & KFILE_Tell, u32 replaced with loff_t Discovered-by: Ameya Palande Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/pmgr/cod.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dsp/bridge/pmgr/cod.c b/drivers/dsp/bridge/pmgr/cod.c i

[PATCHv2 13/18] DSPBRIDGE: Memory leak in Node Register Notify

2009-12-16 Thread Omar Ramirez Luna
From: Ernesto Ramos Falcon Fix for memory leak in DSPNode_RegisterNotify when unregistering an object. Signed-off-by: Ernesto Ramos Falcon --- drivers/dsp/bridge/pmgr/wcd.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/dsp/bridge/pmgr/wcd.c b/drivers/dsp/

[PATCHv2 11/18] DSPBRIDGE: Do not panic on bad page count

2009-12-16 Thread Omar Ramirez Luna
If a page doesn't have a sane count, do not panic or release it. Loudly complain with dump_stack but do not halt with BUG. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap3430.c | 12 +++- 1 files changed, 7 insertions(

[PATCHv2 02/18] DSPBRIDGE: enable smart/autoidle for mailbox sysconfig

2009-12-16 Thread Omar Ramirez Luna
From: Hiroshi DOYU Enable smart/autoidle for mailbox sysconfig register. Original patch: http://patchwork.kernel.org/patch/35628/ Reported-by: Tero Kristo Signed-off-by: Hiroshi DOYU [ fg: remove wrapper around restoreSettings ] Signed-off-by: Fernando Guzman Lugo --- drivers/dsp/bridge/hw/

[PATCHv2 09/18] DSPBRIDGE: Rename usCount to timeout

2009-12-16 Thread Omar Ramirez Luna
Rename usCount to timeout Reported-by: Nishanth Menon Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap3430.c |6 +++--- drivers/dsp/bridge/wmd/tiomap3430_pwr.c | 12 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dsp/bridge/wmd

[PATCHv2 14/18] DSPBRIDGE: check pointer before calling Proc_Detach

2009-12-16 Thread Omar Ramirez Luna
From: Ernest Ramos Falcon This patch adds a check before calling Proc_Detach, otherwise we will see an error. Signed-off-by: Ernest Ramos Falcon Signed-off-by: Fernando Guzman Lugo --- drivers/dsp/bridge/rmgr/drv_interface.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff -

[PATCHv2 12/18] DSPBRIDGE: support loading 4 dependent DLL

2009-12-16 Thread Omar Ramirez Luna
From: Fernando Guzman Lugo This patch fixes loading a SN that has 4 dependent DLLs, previously it was failing due to a non-null terminated string. Signed-off-by: Fernando Guzman Lugo --- drivers/dsp/bridge/rmgr/dbdcd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/d

[PATCHv2 15/18] DSPBRIDGE: check the status of DMM_GetHandle

2009-12-16 Thread Omar Ramirez Luna
Check the status of DMM_GetHandle Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/rmgr/proc.c | 17 ++--- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c index 3c23d85..1ab6181 100644 --- a

[PATCHv2 06/18] DSPBRIDGE: set PWRERROR notifications as an option

2009-12-16 Thread Omar Ramirez Luna
unusable until a recovery method cleans the error state. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/Kconfig | 11 +++ drivers/dsp/bridge/wmd/tiomap3430_pwr.c |4 drivers/dsp/bridge/wmd/ue_deh.c |2 ++ 3 files changed, 17 insertions(+), 0

[PATCHv2 18/18] DSPBRIDGE: Compilation fixes 2.6.31

2009-12-16 Thread Omar Ramirez Luna
Compilation fixes 2.6.31 board-sdp3430.h not found clk_handle undefined because of DVFS flag Signed-off-by: Omar Ramirez Luna --- arch/arm/mach-omap2/dspbridge.c |2 ++ drivers/dsp/bridge/rmgr/drv_interface.c |8 drivers/dsp/bridge/rmgr/proc.c

[PATCHv2 07/18] DSPBRIDGE: Enable peripheral clocks on wake up

2009-12-16 Thread Omar Ramirez Luna
While suspending bridge disables peripheral clocks, but those are not enabled again if the power state is configured to be retention, which leaves the dsp not functional after suspend. This patch re-enables the clocks on wakeup for off/ret power states. Signed-off-by: Omar Ramirez Luna

[PATCHv2 03/18] DSPBRIDGE: Remove preproessor condition that could never work

2009-12-16 Thread Omar Ramirez Luna
From: Rebecca Schultz Zavin This macro can refer to a varible not defined in this scope. gcc 4.4 and later will view this as an error and this code will not compile. Signed-off-by: Rebecca Schultz Zavin --- drivers/dsp/bridge/dynload/cload.c |6 -- 1 files changed, 0 insertions(+), 6 d

[PATCHv2 00/18] First set of unreviewed patches

2009-12-16 Thread Omar Ramirez Luna
: support loading 4 dependent DLL Hiroshi DOYU (1): DSPBRIDGE: enable smart/autoidle for mailbox sysconfig Omar Ramirez Luna (11): DSPBRIDGE: Fix compile break for WCD debug mask DSPBRIDGE: set PWRERROR notifications as an option DSPBRIDGE: Enable peripheral clocks on wake up DSPBRIDGE

[PATCHv2 01/18] DSPBRIDGE: Fix compile break for WCD debug mask

2009-12-16 Thread Omar Ramirez Luna
If debug mode is enabled compilation will break because WCD debug mask is used before behing defined. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/pmgr/wcd.c | 80 1 files changed, 40 insertions(+), 40 deletions(-) diff --git a/drivers/dsp

[PATCH 06/17] DSPBRIDGE: Remove long busy-wait loops on PWRST transitions

2009-12-14 Thread Omar Ramirez Luna
=c8853459b739e5f43da0badc1605a0a0c0c8195d Reported-by: Nishanth Menon Signed-off-by: Fernando Guzman Lugo Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/_tiomap_util.h |6 ++ drivers/dsp/bridge/wmd/tiomap3430_pwr.c | 24 +--- 2 files changed, 19

[PATCH 03/17] DSPBRIDGE: Enable/Disable MCBSP_CLOCKS for MCBSP2

2009-12-14 Thread Omar Ramirez Luna
From: Fernando Guzman Lugo Enable/Disable McBSP_CLOCKS when McBSP2 is requested so DPLL can be gated. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap3430_pwr.c | 73 ++- 1 files changed, 72 insertions(+), 1

[PATCH 04/17] DSPBRIDGE: set PWRERROR notifications as an option

2009-12-14 Thread Omar Ramirez Luna
unusable until a recovery method cleans the error state. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/Kconfig | 11 +++ drivers/dsp/bridge/wmd/tiomap3430_pwr.c |4 drivers/dsp/bridge/wmd/ue_deh.c |2 ++ 3 files changed, 17 insertions(+), 0

[PATCH 08/17] DSPBRIDGE: Trivial cleanup on DBDCD

2009-12-14 Thread Omar Ramirez Luna
Trivial spacing cleanup on DSP/BIOS Bridge Configuration Database module. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/rmgr/dbdcd.c | 343 --- 1 files changed, 179 insertions(+), 164 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/dbdcd.c b

[PATCH 13/17] DSPBRIDGE: check the status of DMM_GetHandle

2009-12-14 Thread Omar Ramirez Luna
Check the status of DMM_GetHandle Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/rmgr/proc.c | 17 ++--- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c index ab0b913..89b1ff3 100644 --- a

[PATCH 09/17] DSPBRIDGE: Do not panic on bad page count

2009-12-14 Thread Omar Ramirez Luna
If a page doesn't have a sane count, do not panic or release it. Loudly complain with dump_stack but do not halt with BUG. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap3430.c | 12 +++- 1 files changed, 7 insertions(

[PATCH 10/17] DSPBRIDGE: support loading 4 dependent DLL

2009-12-14 Thread Omar Ramirez Luna
From: Fernando Guzman Lugo This patch fixes loading a SN that has 4 dependent DLLs, previously it was failing due to a non-null terminated string. Signed-off-by: Fernando Guzman Lugo --- drivers/dsp/bridge/rmgr/dbdcd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/d

[PATCH 16/17] DSPBRIDGE: Avoid REGistry if pDevContext is available

2009-12-14 Thread Omar Ramirez Luna
Avoid calls to read the register if pDevContext is available to the function, this will save a call to query and hold a semaphore under registry operations. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/cfgdefs.h |2 +- drivers/dsp/bridge/rmgr/drv.c

[PATCH 17/17] DSPBRIDGE: Compilation fixes 2.6.31

2009-12-14 Thread Omar Ramirez Luna
Compilation fixes 2.6.31 board-sdp3430.h not found clk_handle undefined because of DVFS flag Signed-off-by: Omar Ramirez Luna --- arch/arm/mach-omap2/dspbridge.c |2 ++ drivers/dsp/bridge/rmgr/drv_interface.c |8 drivers/dsp/bridge/rmgr/proc.c

[PATCH 05/17] DSPBRIDGE: Enable peripheral clocks on wake up

2009-12-14 Thread Omar Ramirez Luna
If enable_off_mode is not set bridge target state going into suspend will be retention, on this path the peripheral clocks will be disabled but not enabled again when waking the dsp up. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap_sm.c |4 +++- 1 files changed, 3

[PATCH 11/17] DSPBRIDGE: Memory leak in Node Register Notify

2009-12-14 Thread Omar Ramirez Luna
From: Ernesto Ramos Falcon Fix for memory leak in DSPNode_RegisterNotify when unregistering an object. Signed-off-by: Ernesto Ramos Falcon --- drivers/dsp/bridge/pmgr/wcd.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/dsp/bridge/pmgr/wcd.c b/drivers/dsp/

[PATCH 15/17] DSPBRIDGE: Delete unused files

2009-12-14 Thread Omar Ramirez Luna
These files seem to be unused, deleting them. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/dbl.h | 354 --- arch/arm/plat-omap/include/dspbridge/dbof.h | 117 --- drivers/dsp/bridge/dynload/dlclasses_hdr.h | 41 - drivers/dsp/bridge/pmgr/dbl.c

[PATCH 14/17] DSPBRIDGE: KFILE_Seek & KFILE_Tell, u32 replaced with loff_t

2009-12-14 Thread Omar Ramirez Luna
KFILE_Seek & KFILE_Tell, u32 replaced with loff_t Discovered-by: Ameya Palande Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/pmgr/cod.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dsp/bridge/pmgr/cod.c b/drivers/dsp/bridge/pmgr/cod.c i

[PATCH 12/17] DSPBRIDGE: check pointer before calling Proc_Detach

2009-12-14 Thread Omar Ramirez Luna
From: Ernest Ramos Falcon This patch adds a check before calling Proc_Detach, otherwise we will see an error. Signed-off-by: Ernest Ramos Falcon Signed-off-by: Fernando Guzman Lugo --- drivers/dsp/bridge/rmgr/drv_interface.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff -

[PATCH 07/17] DSPBRIDGE: Rename usCount to timeout

2009-12-14 Thread Omar Ramirez Luna
Rename usCount to timeout Reported-by: Nishanth Menon Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/tiomap3430.c |6 +++--- drivers/dsp/bridge/wmd/tiomap3430_pwr.c | 12 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dsp/bridge/wmd

[PATCH 01/17] DSPBRIDGE: Remove preproessor condition that could never work

2009-12-14 Thread Omar Ramirez Luna
From: Rebecca Schultz Zavin This macro can refer to a varible not defined in this scope. gcc 4.4 and later will view this as an error and this code will not compile. Signed-off-by: Rebecca Schultz Zavin --- drivers/dsp/bridge/dynload/cload.c |6 -- 1 files changed, 0 insertions(+), 6 d

[PATCH 00/17] First set of unreviewed patches

2009-12-14 Thread Omar Ramirez Luna
support for dynamic loader DSPBRIDGE: Enable/Disable MCBSP_CLOCKS for MCBSP2 DSPBRIDGE: support loading 4 dependent DLL Omar Ramirez Luna (11): DSPBRIDGE: set PWRERROR notifications as an option DSPBRIDGE: Enable peripheral clocks on wake up DSPBRIDGE: Remove long busy-wait loops on PWRST

[PATCH v2 16/20] DSPBRIDGE: trivial fix for multiline comments on io_sm

2009-11-30 Thread Omar Ramirez Luna
This patch corrects current style for comments on io_sm.c - Fix multiline comments according to Documentation/CodingStyle Functions comments will be addressed in a different patch. Signed-off-by: Omar Ramirez Luna CC: Artem Bityutskiy CC: Felipe Balbi --- drivers/dsp/bridge/wmd/io_sm.c

[PATCH v2 00/20] dspbridge cleanups

2009-11-30 Thread Omar Ramirez Luna
implemented, will be clenaed when the big ioctl switch replaces the WCD function table. CC: Artem Bityutskiy CC: Felipe Balbi CC: Felipe Contreras CC: Hiroshi Doyu CC: Nishant Menon Omar Ramirez Luna (20): DSPBRIDGE: driver version 0.1 DSPBRIDGE: trivial license fix in tramp and

[PATCH v2 19/20] DSPBRIDGE: Remove DPC module from SERVICES layer

2009-11-30 Thread Omar Ramirez Luna
This patch removes init and exit functions for DPC module. It also deletes dpc source file and takes out the module from Makefile. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/dpc.h | 26 --- drivers/dsp/bridge/Makefile|3 +- drivers

[PATCH v2 18/20] DSPBRIDGE: Remove main DPC wrapper for IO and MMUfault

2009-11-30 Thread Omar Ramirez Luna
Remove DeferredProcedure which is used as a wrapper to call either IO or MMUfault DPCs. This also removes a custom typedef. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/dpc.h | 23 arch/arm/plat-omap/include/dspbridge/io_sm.h |2 +- drivers/dsp

[PATCH v2 08/20] DSPBRIDGE: Checkpatch - line over 80 characters

2009-11-30 Thread Omar Ramirez Luna
WARNING: line over 80 characters Signed-off-by: Omar Ramirez Luna CC: Nishant Menon --- arch/arm/plat-omap/include/dspbridge/dbdefs.h |2 +- drivers/dsp/bridge/wmd/io_sm.c|3 ++- drivers/dsp/bridge/wmd/mmu_fault.c|3 ++- drivers/dsp/bridge/wmd/tiomap3430

[PATCH v2 12/20] DSPBRIDGE: checkpatch foo-should-be for pointers

2009-11-30 Thread Omar Ramirez Luna
ERROR: "foo *__user * bar" should be "foo *__user *bar" Signed-off-by: Omar Ramirez Luna CC: Nishant Menon --- arch/arm/plat-omap/include/dspbridge/wcdioctl.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/include/dspbridge/wc

[PATCH v2 10/20] DSPBRIDGE: checkpatch - braces not necessary for single statement blocks

2009-11-30 Thread Omar Ramirez Luna
WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Omar Ramirez Luna CC: Nishant Menon --- drivers/dsp/bridge/gen/gs.c |3 +-- drivers/dsp/bridge/pmgr/cmm.c |5 ++--- drivers/dsp/bridge/rmgr/node.c|4 ++-- drivers/dsp/bridge/services/cfg.c

[PATCH v2 01/20] DSPBRIDGE: driver version 0.1

2009-11-30 Thread Omar Ramirez Luna
Prior to any further modification set the driver version to be 0.1 Also in this patch: - Move author and license macros to end of file - License to be GPL v2 as stated on the comments Signed-off-by: Omar Ramirez Luna CC: Artem Bityutskiy CC: Felipe Contreras CC: Hiroshi Doyu --- drivers/dsp

[PATCH v2 20/20] DSPBRIDGE: Remove DPC object structure

2009-11-30 Thread Omar Ramirez Luna
Remove DPC object structure and declare required members for each tasklet inside their correspondent modules. Remove dpc header file. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/_chnl_sm.h |1 - arch/arm/plat-omap/include/dspbridge/dpc.h | 38

[PATCH v2 14/20] DSPBRIDGE: Use _IOxx macro to define ioctls

2009-11-30 Thread Omar Ramirez Luna
ed and not implemented ioctls, this can be done when all the ioctls are accessed through a switch instead of a pointer to function. *** NOTE: An update in api ioctl definitions is required. *** Signed-off-by: Omar Ramirez Luna CC: Nishant Menon --- arch/arm/plat-omap/include/dspbridge/wcdioct

[PATCH v2 11/20] DSPBRIDGE: checkpatch - struct file_operations should normally be const

2009-11-30 Thread Omar Ramirez Luna
WARNING: struct file_operations should normally be const Signed-off-by: Omar Ramirez Lua CC: Nishant Menon --- drivers/dsp/bridge/rmgr/drv_interface.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/drv_interface.c b/drivers/dsp/bridge/rmgr/drv

[PATCH v2 17/20] DSPBRIDGE: Remove DPC, create, destroy and schedule wrappers

2009-11-30 Thread Omar Ramirez Luna
Remove DPC wrappers and replace with direct Linux calls. These changes apply to IO DPC and MMUfault DPC Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/dpc.h | 90 +++-- drivers/dsp/bridge/services/dpc.c | 144

[PATCH v2 09/20] DSPBRIDGE: checkpatch - printk() should include KERN_ facility level

2009-11-30 Thread Omar Ramirez Luna
WARNING: printk() should include KERN_ facility level Signed-off-by: Omar Ramirez Luna CC: Nishant Menon --- arch/arm/plat-omap/include/dspbridge/dbc.h |2 +- arch/arm/plat-omap/include/dspbridge/gt.h |2 +- drivers/dsp/bridge/gen/_gt_para.c |2 +- 3 files changed, 3

[PATCH v2 06/20] DSPBRIDGE: checkpatch - space required before open parenthesis

2009-11-30 Thread Omar Ramirez Luna
ERROR: space required before the open parenthesis '(' Signed-off-by: Omar Ramirez Luna CC: Nishant Menon --- drivers/dsp/bridge/pmgr/dev.c |2 +- drivers/dsp/bridge/services/dbg.c |2 +- drivers/dsp/bridge/wmd/io_sm.c|4 ++-- drivers/dsp/bridge/wmd/msg_sm.c |

[PATCH v2 15/20] DSPBRIDGE: trivial cleanup and indentation for io_sm

2009-11-30 Thread Omar Ramirez Luna
Remove duplicate set of braces from if statement and reduce indentation. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/io_sm.c | 96 +--- 1 files changed, 40 insertions(+), 56 deletions(-) diff --git a/drivers/dsp/bridge/wmd/io_sm.c b/drivers

[PATCH v2 05/20] DSPBRIDGE: checkpatch - space required after comma

2009-11-30 Thread Omar Ramirez Luna
ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Omar Ramirez Luna CC: Nishant Menon --- drivers/dsp/bridge/hw/GlobalTypes.h |4 ++-- drivers/dsp/bridge/hw/PRCMRegAcM.h | 24 2 files changed, 14 insertions(+), 14 deletions(-) diff --git

[PATCH v2 02/20] DSPBRIDGE: trivial license fix in tramp and tramp_table_c6000

2009-11-30 Thread Omar Ramirez Luna
Seems that these files had a licensing mismatch, changing to GPL2. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/dynload/tramp.c | 18 +- drivers/dsp/bridge/dynload/tramp_table_c6000.c | 18 +- 2 files changed, 26 insertions(+), 10

[PATCH 7/9] DSPBRIDGE: Remove main DPC wrapper for IO and MMUfault

2009-11-23 Thread Omar Ramirez Luna
Remove DeferredProcedure which is used as a wrapper to call either IO or MMUfault DPCs. This also removes a custom typedef. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/dpc.h | 23 arch/arm/plat-omap/include/dspbridge/io_sm.h |2 +- drivers/dsp

[PATCH 6/9] DSPBRIDGE: Remove DPC, create, destroy and schedule wrappers

2009-11-23 Thread Omar Ramirez Luna
Remove DPC wrappers and replace with direct Linux calls. These changes apply to IO DPC and MMUfault DPC Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/dpc.h | 90 +++-- drivers/dsp/bridge/services/dpc.c | 144

[PATCH 5/9] DSPBRIDGE: trivial cleanup and indentation for io_sm

2009-11-23 Thread Omar Ramirez Luna
Remove duplicate set of braces from if statement and reduce indentation. Signed-off-by: Omar Ramirez Luna --- drivers/dsp/bridge/wmd/io_sm.c | 96 +--- 1 files changed, 40 insertions(+), 56 deletions(-) diff --git a/drivers/dsp/bridge/wmd/io_sm.c b/drivers

[PATCH 0/9] dspbridge cleanup patches

2009-11-23 Thread Omar Ramirez Luna
Following patches are cleanups, removing history of files, tab spacing and also remove DPC layer. Omar Ramirez Luna (8): DSPBRIDGE: trivial checkpatch fixes DSPBRIDGE: Fix multiline macros to use do while DSPBRIDGE: Use _IOxx macro to define ioctls DSPBRIDGE: trivial cleanup and

[PATCH 9/9] DSPBRIDGE: Remove DPC object structure

2009-11-23 Thread Omar Ramirez Luna
Remove DPC object structure and declare required members for each tasklet inside their correspondent modules. Remove dpc header file. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/_chnl_sm.h |1 - arch/arm/plat-omap/include/dspbridge/dpc.h | 38

[PATCH 4/9] DSPBRIDGE: Use _IOxx macro to define ioctls

2009-11-23 Thread Omar Ramirez Luna
Use standard convention to define ioctls. Currently 'DB' is used as identifier for dspbridge. *** NOTE: An update in api ioctl definitions is required. *** Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/wcdioctl.h | 142 ++- drivers/

[PATCH 8/9] DSPBRIDGE: Remove DPC module from SERVICES layer

2009-11-23 Thread Omar Ramirez Luna
This patch removes init and exit functions for DPC module. It also deletes dpc source file and takes out the module from Makefile. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/dpc.h | 26 --- drivers/dsp/bridge/Makefile|3 +- drivers

DSPBRIDGE: create DMM table using vmalloc instead of kmalloc

2009-07-19 Thread Omar Ramirez Luna
Replace the physical contiguos allocation for DMM tables as the required space might not available after some time, use virtual memory allocation instead. Signed-off-by: Omar Ramirez Luna --- arch/arm/plat-omap/include/dspbridge/mem.h | 17 + drivers/dsp/bridge/pmgr/dmm.c

<    2   3   4   5   6   7   8   >