[PATCH v2] DSPBRIDGE: remove wdt3 from dsp control

2010-04-27 Thread Omar Ramirez Luna
WDT3 is used as a way to detect dsp hangs, as of now its control is left to arm side driver, so, no requests should be received by the dsp to enable/disable this clock. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/services/clk.c |6 -- 1 files changed, 4

[PATCH v2] DSPBRIDGE: function to get the type of clock requested by dsp

2010-04-27 Thread Omar Ramirez Luna
DSP can request between 5 types of clocks: IVA2, GPT (5-8), WDT (3), MCBSP (1-5) or SSI clock. This function will be useful in case a specific clock framework is associated with the clock. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/services/clk.c | 89

[PATCH v2] DSPBRIDGE: reorganize the code to handle peripheral clocks

2010-04-27 Thread Omar Ramirez Luna
This patch moves and simplifies the code used to enable/disable all the requested peripheral clocks. Signed-off-by: Omar Ramirez Luna omar.rami...@hotmail.com --- arch/arm/plat-omap/include/dspbridge/clk.h |4 ++ drivers/dsp/bridge/rmgr/drv_interface.c|1 + drivers/dsp/bridge/wmd

Re: [PATCH v2] generic clk module removal

2010-04-28 Thread Omar Ramirez Luna
On 4/27/2010 8:34 PM, Nishanth Menon wrote: On 04/27/2010 08:29 PM, Omar Ramirez Luna wrote: This set of patches remove clk module from the services layer. Now: - GPT 5-8 are controlled through DM Timer framework. - MCBSP clocks are enabled by requesting the proper mcbsp device. - WDT is left

Re: [PATCH v2] DSPBRIDGE: use dm timer framework for gpt timers

2010-04-28 Thread Omar Ramirez Luna
On 4/28/2010 2:46 AM, Felipe Contreras wrote: On Wed, Apr 28, 2010 at 4:29 AM, Omar Ramirez Lunaomar.rami...@ti.com wrote: This patch switches to use DM timer framework instead of a custom one for GPT timers, currently dsp can make use of gpt 5, 6, 7 or 8. I heard someone that was using gpt

[PATCH v2 06/19] DSPBRIDGE: remove function clk_set32k_hz

2010-04-28 Thread Omar Ramirez Luna
This is only used for GPTs and should be addressed once those clocks are requested using DM timer framework. This patch might break functionality. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/clk.h | 14 +- drivers/dsp/bridge

[PATCH v2 02/19] DSPBRIDGE: fail if clk handle is NULL

2010-04-28 Thread Omar Ramirez Luna
If we fail if a clk handle is NULL during initialization then there is no need to keep checking every time if the handle is NULL for enable/disable/set_32k/get_use_cnt. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/services/clk.c | 68

[PATCH v2 01/19] DSPBRIDGE: remove clk_handle from drv interface

2010-04-28 Thread Omar Ramirez Luna
Since it is not used, remove. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/rmgr/drv_interface.c |9 - 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/drv_interface.c b/drivers/dsp/bridge/rmgr/drv_interface.c index

[PATCH v2 07/19] DSPBRIDGE: remove clk_get_use_cnt

2010-04-28 Thread Omar Ramirez Luna
Instead of querying the use count, balanced number of enable/disable should be enforced across the system. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/clk.h | 13 - drivers/dsp/bridge/services/clk.c | 23

[PATCH v2 08/19] DSPBRIDGE: trivial clock cleanup for unused code

2010-04-28 Thread Omar Ramirez Luna
Remove unusued struct and typedef. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/clk.h |2 -- drivers/dsp/bridge/services/clk.c |7 --- 2 files changed, 0 insertions(+), 9 deletions(-) diff --git a/arch/arm/plat-omap/include

[PATCH v2 18/19] DSPBRIDGE: move clk to dsp-clock

2010-04-28 Thread Omar Ramirez Luna
Rename file and move it outside services layer. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/Makefile |4 +- drivers/dsp/bridge/rmgr/drv_interface.c |2 + drivers/dsp/bridge/services/clk.c | 334 --- drivers

[PATCH v2 16/19] DSPBRIDGE: Move MCBSP_CLOCKS code to a common place

2010-04-28 Thread Omar Ramirez Luna
to be called only when dsp is requesting a MCBSP clock. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/services/clk.c | 52 + drivers/dsp/bridge/wmd/tiomap3430_pwr.c | 77 --- 2 files changed, 52 insertions(+), 77

[PATCH v2 14/19] DSPBRIDGE: dsp interface to enable ssi clocks

2010-04-28 Thread Omar Ramirez Luna
This patch fixes the wrong name for ssi clock, now it has been split into ssr and sst for fck. It handle ick/ssr_fck/sst_fck clocks with one call to disable/enable. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/services/clk.c | 56

[PATCH v2 19/19] DSPBRIDGE: reorganize the code to handle peripheral clocks

2010-04-28 Thread Omar Ramirez Luna
This patch moves and simplifies the code used to enable/disable all the requested peripheral clocks. Signed-off-by: Omar Ramirez Luna omar.rami...@hotmail.com --- arch/arm/plat-omap/include/dspbridge/clk.h |4 ++ drivers/dsp/bridge/rmgr/drv_interface.c|1 + drivers/dsp/bridge/wmd

[PATCH v2 10/19] DSPBRIDGE: iva2 clock handling

2010-04-28 Thread Omar Ramirez Luna
Change the way iva2 clock is handled and since the rate is needed for this clock only, make the function get_rate to be specific for iva clock. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/clk.h | 16 +-- drivers/dsp/bridge/services/clk.c

[PATCH v2 17/19] DSPBRIDGE: Balance the number of enable/disable

2010-04-28 Thread Omar Ramirez Luna
This patch ensure a balanced number of enable/disable calls is made. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/services/clk.c | 37 + 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/drivers/dsp/bridge

[PATCH v2 11/19] DSPBRIDGE: use dm timer framework for gpt timers

2010-04-28 Thread Omar Ramirez Luna
This patch switches to use DM timer framework instead of a custom one for GPT timers, currently dsp can make use of gpt 5, 6, 7 or 8. Signed-off-by: Omar Ramirez Luna omar.rami...@hotmail.com --- drivers/dsp/bridge/services/clk.c | 25 --- drivers/dsp/bridge/wmd

[PATCH v2 09/19] DSPBRIDGE: function to get the type of clock requested by dsp

2010-04-28 Thread Omar Ramirez Luna
DSP can request between 5 types of clocks: IVA2, GPT (5-8), WDT (3), MCBSP (1-5) or SSI clock. This function will be useful in case a specific clock framework is associated with the clock. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/services/clk.c | 89

[PATCH v2 13/19] DSPBRIDGE: remove wdt3 from dsp control

2010-04-28 Thread Omar Ramirez Luna
WDT3 is used as a way to detect dsp hangs, as of now its control is left to arm side driver, so, no requests should be received by the dsp to enable/disable this clock. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/services/clk.c |6 -- 1 files changed, 4

[PATCH v2 12/19] DSPBRIDGE: use omap mcbsp to enable mcbsp clocks

2010-04-28 Thread Omar Ramirez Luna
Use omap mcbsp to enable mcbsp clocks Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/services/clk.c | 24 ++-- 1 files changed, 10 insertions(+), 14 deletions(-) diff --git a/drivers/dsp/bridge/services/clk.c b/drivers/dsp/bridge/services

[PATCH v2 05/19] DSPBRIDGE: remove unused clock sys_ck

2010-04-28 Thread Omar Ramirez Luna
Remove unused clock sys_ck Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/clk.h |1 - drivers/dsp/bridge/services/clk.c |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/include/dspbridge/clk.h

[PATCH v2 15/19] DSPBRIDGE: use one call for both ick and fck clocks

2010-04-28 Thread Omar Ramirez Luna
Instead of two calls to enable/disable for ick and fck use one call to enable/disable both. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/clk.h | 35 +-- drivers/dsp/bridge/services/clk.c | 14

[PATCH v2 04/19] DSPBRIDGE: Rename services_clk_* to dsp_clk_*

2010-04-28 Thread Omar Ramirez Luna
Rename services_clk_* to dsp_clk_* Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/clk.h | 78 drivers/dsp/bridge/services/clk.c | 88 ++-- drivers/dsp/bridge/services/services.c

[PATCH v2 03/19] DSPBRIDGE: Now actually fail if a clk handle is wrong

2010-04-28 Thread Omar Ramirez Luna
The value returned by clk_get on error is not NULL. This checks if the value returned is an error or not. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/services/clk.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dsp/bridge

Re: [PATCH v2] DSPBRIDGE: use dm timer framework for gpt timers

2010-04-28 Thread Omar Ramirez Luna
On 4/28/2010 11:36 AM, Menon, Nishanth wrote: Kevin Hilman had written, on 04/28/2010 11:29 AM, the following: Omar Ramirez Lunaomar.rami...@ti.com writes: On 4/28/2010 2:46 AM, Felipe Contreras wrote: On Wed, Apr 28, 2010 at 4:29 AM, Omar Ramirez Lunaomar.rami...@ti.com wrote: This

[PATCH 03/40] DSPBRIDGE: err code replace CHNL_E_WAITTIMEOUT with ETIMEDOUT

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_WAITTIMEOUT with ETIMEDOUT Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dspdefs.h |2 +- drivers/dsp/bridge/core/chnl_sm.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap

[PATCH 06/40] DSPBRIDGE: err code replace CHNL_E_NOIORPS with EIO

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_NOIORPS with EIO Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dspdefs.h |2 +- drivers/dsp/bridge/core/chnl_sm.c |2 +- drivers/dsp/bridge/rmgr/strm.c |4 ++-- 3 files changed, 4 insertions

[PATCH 10/40] DSPBRIDGE: err code replace CHNL_E_INVALIDMEMBASE with EINVAL

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_INVALIDMEMBASE with EINVAL Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/chnl.h |2 +- arch/arm/plat-omap/include/dspbridge/io.h |2 +- drivers/dsp/bridge/core/io_sm.c |4 ++-- drivers/dsp/bridge/pmgr/io.c

[PATCH 11/40] DSPBRIDGE: err code replace CHNL_E_INVALIDWORDSIZE with EINVAL

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_INVALIDWORDSIZE with EINVAL Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/chnl.h |2 +- arch/arm/plat-omap/include/dspbridge/io.h |2 +- drivers/dsp/bridge/pmgr/chnl.c |2 +- drivers/dsp/bridge/pmgr/io.c

[PATCH 04/40] DSPBRIDGE: err code replace CHNL_E_NOEOS with EPERM

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_NOEOS with EPERM Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dspdefs.h |2 +- drivers/dsp/bridge/core/chnl_sm.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/include

[PATCH 07/40] DSPBRIDGE: err code replace CHNL_E_ISR with EIO

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_ISR with EIO Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/chnl.h|2 +- arch/arm/plat-omap/include/dspbridge/dspdefs.h |2 +- arch/arm/plat-omap/include/dspbridge/io.h |2 +- drivers/dsp/bridge/core/io_sm.c

[PATCH 14/40] DSPBRIDGE: err code replace CHNL_E_BADCHANID with ECHRNG

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_BADCHANID with ECHRNG Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dspdefs.h |4 ++-- drivers/dsp/bridge/core/chnl_sm.c |4 ++-- drivers/dsp/bridge/rmgr/strm.c |2 +- 3 files changed, 5

[PATCH 16/40] DSPBRIDGE: err code replace CHNL_E_MAXCHANNELS with ECHRNG

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_MAXCHANNELS with ECHRNG Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/chnl.h |2 +- drivers/dsp/bridge/pmgr/chnl.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/include

[PATCH 17/40] DSPBRIDGE: err code replace COD_E_ZLCREATEFAILED with ESPIPE

2010-06-02 Thread Omar Ramirez Luna
Replace COD_E_ZLCREATEFAILED with ESPIPE Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/cod.h |2 +- arch/arm/plat-omap/include/dspbridge/dev.h |4 ++-- drivers/dsp/bridge/pmgr/cod.c |2 +- 3 files changed, 4 insertions

[PATCH 15/40] DSPBRIDGE: err code replace CHNL_E_OUTOFSTREAMS with ENOSR

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_OUTOFSTREAMS with ENOSR Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dspdefs.h |2 +- drivers/dsp/bridge/core/chnl_sm.c |2 +- drivers/dsp/bridge/rmgr/strm.c |2 +- 3 files changed, 3

[PATCH 12/40] DSPBRIDGE: err code replace CHNL_E_EOS with EPIPE

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_EOS with EPIPE Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dspdefs.h |4 ++-- drivers/dsp/bridge/core/chnl_sm.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/plat-omap/include

[PATCH 25/40] DSPBRIDGE: err code replace DSP_ETRANSLATE with ESRCH

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_ETRANSLATE with ESRCH Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/rmgr/node.c |6 +++--- drivers/dsp/bridge/rmgr/strm.c |8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/node.c b/drivers/dsp

[PATCH 36/40] DSPBRIDGE: remove custom errbase definitions

2010-06-02 Thread Omar Ramirez Luna
This are not used anymore, removing header file with custom error codes. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/errbase.h | 177 arch/arm/plat-omap/include/dspbridge/ntfy.h|1 - arch/arm/plat-omap/include

[PATCH 35/40] DSPBRIDGE: err code replace DSP_ECHANGEDURINGENUM with EIDRM

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_ECHANGEDURINGENUM with EIDRM Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/mgr.h |2 +- drivers/dsp/bridge/rmgr/dbdcd.c|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/include

[PATCH 33/40] DSPBRIDGE: err code replace DSP_EWRONGSTATE with EBADR

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_EWRONGSTATE with EBADR Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/node.h | 12 ++-- arch/arm/plat-omap/include/dspbridge/proc.h |6 +++--- drivers/dsp/bridge/core/msg_sm.c|2 +- drivers/dsp/bridge/rmgr

[PATCH 37/40] DSPBRIDGE: cleanup for duplicated error codes

2010-06-02 Thread Omar Ramirez Luna
Some comments and pieces of code make reference to the same error code, this was removed to just have one instance where the code won't get too nested or complicated. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/cfg.h |9 ++- arch/arm

[PATCH 32/40] DSPBRIDGE: err code replace DSP_ESYMBOL with ESPIPE

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_ESYMBOL with ESPIPE Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/nldrdefs.h |2 +- arch/arm/plat-omap/include/dspbridge/node.h |8 drivers/dsp/bridge/rmgr/nldr.c |4 ++-- 3 files changed, 7

[PATCH 39/40] DSPBRIDGE: error code guide

2010-06-02 Thread Omar Ramirez Luna
Document which specifies the uses of kernel error codes within bridge driver, in some case it also contains a common use case were the error might be seen. It was generated from a previously deleted errbase.h file. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- Documentation

[PATCH 38/40] DSPBRIDGE: removed unused error codes from comments

2010-06-02 Thread Omar Ramirez Luna
Only removed error codes which now does not exist, previously those were not used in the code. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/chnl.h |1 - arch/arm/plat-omap/include/dspbridge/cod.h |3 --- arch/arm/plat-omap/include

[PATCH 28/40] DSPBRIDGE: err code replace DSP_EDCDLOADBASE with EACCES

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_EDCDLOADBASE with EACCES Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dbdcd.h |8 drivers/dsp/bridge/rmgr/dbdcd.c |4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/plat-omap

[PATCH 29/40] DSPBRIDGE: err code replace DSP_EDCDGETSECT with EACCES

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_EDCDGETSECT with EACCES Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dbdcd.h |2 +- drivers/dsp/bridge/rmgr/dbdcd.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/include

[PATCH 34/40] DSPBRIDGE: err code replace DSP_EPENDING with EPIPE

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_EPENDING with EPIPE Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/strm.h |2 +- drivers/dsp/bridge/rmgr/strm.c |6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/plat-omap/include

[PATCH 26/40] DSPBRIDGE: err code replace DSP_ENOTFOUND with ENOENT

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_ENOTFOUND with ENOENT Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/proc.h |6 +++--- drivers/dsp/bridge/pmgr/dmm.c |6 +++--- drivers/dsp/bridge/rmgr/drv.c |8 drivers/dsp/bridge/rmgr

[PATCH 24/40] DSPBRIDGE: err code replace DSP_ENOSECT with ENXIO

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_ENOSECT with ENXIO Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dblldefs.h |8 drivers/dsp/bridge/pmgr/dbll.c |4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/plat-omap

[PATCH 27/40] DSPBRIDGE: err code replace DSP_EDCDNOAUTOREGISTER with EACCES

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_EDCDNOAUTOREGISTER with EACCES Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dbdcd.h |6 +++--- drivers/dsp/bridge/rmgr/dbdcd.c |2 +- drivers/dsp/bridge/rmgr/proc.c |4 ++-- 3 files changed, 6

[PATCH 23/40] DSPBRIDGE: err code replace DSP_EOVERLAYMEMORY with ENXIO

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_EOVERLAYMEMORY with ENXIO Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/nldrdefs.h |2 +- arch/arm/plat-omap/include/dspbridge/rmm.h |2 +- drivers/dsp/bridge/rmgr/rmm.c |2 +- 3 files changed, 3

[PATCH 30/40] DSPBRIDGE: err code replace DSP_EDCDPARSESECT with EACCES

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_EDCDPARSESECT with EACCES Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dbdcd.h |2 +- drivers/dsp/bridge/rmgr/dbdcd.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/include

[PATCH 31/40] DSPBRIDGE: err code replace DSP_EDCDREADSECT with EACCES

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_EDCDREADSECT with EACCES Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dbdcd.h | 12 ++-- drivers/dsp/bridge/rmgr/dbdcd.c |4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/plat

[PATCH 20/40] DSPBRIDGE: err code replace DSP_EDPMSUSPEND with EPERM

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_EDPMSUSPEND with EPERM Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- 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_interface.c index

[PATCH 22/40] DSPBRIDGE: err code replace DSP_EBADSEGID with EBADR

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_EBADSEGID with EBADR Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/rmgr/node.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/node.c b/drivers/dsp/bridge/rmgr/node.c index 159ea2b..1c7742a 100644

[PATCH 18/40] DSPBRIDGE: err code replace COD_E_SYMBOLNOTFOUND with ESPIPE

2010-06-02 Thread Omar Ramirez Luna
Replace COD_E_SYMBOLNOTFOUND with ESPIPE Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/cod.h |4 ++-- arch/arm/plat-omap/include/dspbridge/dev.h |2 +- drivers/dsp/bridge/pmgr/cod.c |2 +- drivers/dsp/bridge/rmgr/node.c

[PATCH 21/40] DSPBRIDGE: err code replace DSP_EDYNLOAD with EILSEQ

2010-06-02 Thread Omar Ramirez Luna
Replace DSP_EDYNLOAD with EILSEQ Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dblldefs.h |2 +- arch/arm/plat-omap/include/dspbridge/nldrdefs.h |2 +- drivers/dsp/bridge/pmgr/dbll.c |8 drivers/dsp/bridge/rmgr

[PATCH 09/40] DSPBRIDGE: err code replace CHNL_E_NOMEMMAP with EFAULT

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_NOMEMMAP with EFAULT Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dspdefs.h |2 +- drivers/dsp/bridge/core/io_sm.c| 22 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git

[PATCH 19/40] DSPBRIDGE: err code replace COD_E_NOSYMBOLSLOADED with ESPIPE

2010-06-02 Thread Omar Ramirez Luna
Replace COD_E_NOSYMBOLSLOADED with ESPIPE Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/cod.h |6 +++--- arch/arm/plat-omap/include/dspbridge/dev.h |2 +- drivers/dsp/bridge/pmgr/cod.c |6 +++--- 3 files changed, 7

[PATCH 08/40] DSPBRIDGE: err code replace CHNL_E_MGREXISTS with EEXIST

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_MGREXISTS with EEXIST Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/chnl.h |2 +- drivers/dsp/bridge/pmgr/chnl.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/include

[PATCH 05/40] DSPBRIDGE: err code replace CHNL_E_BUFSIZE with EINVAL

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_BUFSIZE with EINVAL Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dspdefs.h |2 +- drivers/dsp/bridge/core/chnl_sm.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap

[PATCH 13/40] DSPBRIDGE: err code replace CHNL_E_NOIOC with EREMOTEIO

2010-06-02 Thread Omar Ramirez Luna
Replace CHNL_E_NOIOC with EREMOTEIO Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dspdefs.h |2 +- drivers/dsp/bridge/core/chnl_sm.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap

[PATCH 02/40] DSPBRIDGE: change DSP_SENUMCOMPLETE for ENODATA

2010-06-02 Thread Omar Ramirez Luna
This is not an error code, however the way it is coded it doesn't expects a success (zero) either, return a positive number on this case given that this is not an error code. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dbdcd.h |2 +- drivers

[PATCH 00/40] dspbridge: trivial error code cleanup

2010-06-02 Thread Omar Ramirez Luna
the error is not descriptive enough, and it also lists a common scenario where the error might be seen. Finally, the last patch replaces a custom typedef (dsp_status) with an int type as now those errors can have a negative value. Omar Ramirez Luna (40): DSPBRIDGE: Remove success codes DSPBRIDGE

[PATCH 0/2] dspbridge: reorganize initialization and probe

2010-06-08 Thread Omar Ramirez Luna
Split the functions to have cleaner error handling paths, this will aslo cover a case where bridge initialization has failed but device entry is still available which leads to unknown behavior. Omar Ramirez Luna (2): DSPRBIDGE: split probe from bridge initializations DSPBRIDGE: reorganize

[PATCH 1/2] DSPRBIDGE: split probe from bridge initializations

2010-06-08 Thread Omar Ramirez Luna
. Reported-by: Ameya Palande ameya.pala...@nokia.com Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/rmgr/drv_interface.c | 178 ++- 1 files changed, 105 insertions(+), 73 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/drv_interface.c b

[PATCH 2/2] DSPBRIDGE: reorganize probe function

2010-06-08 Thread Omar Ramirez Luna
Renaming and deleting unused variables, few enhancement on error path. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/rmgr/drv_interface.c | 28 +++- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/drivers/dsp/bridge/rmgr

[PATCH 1/2] DSPBRIDGE: fix a wrong clk index for gpt8

2010-06-10 Thread Omar Ramirez Luna
Mismatch between index for gpt clocks will result in writting out of bounds into dsp clock timer array when requesting gpt8, for the other gpt the bogus code is being masked as it falls within the array's range. Discovered-by: Ernesto Ramos Falcon erne...@ti.com Signed-off-by: Omar Ramirez Luna

[PATCH 2/2] DSPBRIDGE: reorganize gpt8 overflow handling

2010-06-10 Thread Omar Ramirez Luna
after jiffes macro. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com Signed-off-by: Ernesto Ramos Falcon erne...@ti.com --- arch/arm/plat-omap/include/dspbridge/clk.h |2 + drivers/dsp/bridge/core/dsp-clock.c| 38 ++ drivers/dsp/bridge/core/ue_deh.c

[PATCH] DSPBRIDGE: driver version 0.3

2010-06-14 Thread Omar Ramirez Luna
driver version 0.3 Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- 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_interface.c index cdc7f1b..f0f089b

Re: [PATCH 11/11] staging: ti dspbridge: enable driver building

2010-07-06 Thread Omar Ramirez Luna
On 7/4/2010 5:53 AM, Felipe Contreras wrote: On Thu, Jun 24, 2010 at 1:41 AM, Greg KHg...@kroah.com wrote: The default is always 'n' so you don't need this. Also, this enables the driver to be built on x86, which fails horribly, and I don't think is what you really want to have happen :) So

[PATCH 1/6] staging: tidspbridge: remove GlobalTypes.h

2010-07-22 Thread Omar Ramirez Luna
From: Menon, Nishanth n...@ti.com Remove custom globaltypes.h header Signed-off-by: Nishanth Menon n...@ti.com --- drivers/staging/tidspbridge/hw/GlobalTypes.h | 291 -- drivers/staging/tidspbridge/hw/MMURegAcM.h |1 - drivers/staging/tidspbridge/hw/hw_defs.h

[PATCH 6/6] staging: tidspbridge: remove dbdefs.h

2010-07-22 Thread Omar Ramirez Luna
From: Menon, Nishanth n...@ti.com Remove yet another custom definition header Signed-off-by: Nishanth Menon n...@ti.com --- .../staging/tidspbridge/include/dspbridge/dbdefs.h |1 - .../staging/tidspbridge/include/dspbridge/dbtype.h | 69

[PATCH 2/6] staging: tidspbridge: replace CONST with c standard const

2010-07-22 Thread Omar Ramirez Luna
From: Menon, Nishanth n...@ti.com Signed-off-by: Nishanth Menon n...@ti.com --- drivers/staging/tidspbridge/core/chnl_sm.c |4 ++-- drivers/staging/tidspbridge/core/io_sm.c |2 +- drivers/staging/tidspbridge/core/msg_sm.c |2 +-

[PATCH v2 0/6] staging: tidspbridge: header cleanup series

2010-07-22 Thread Omar Ramirez Luna
Rebased version of the patches that couldn't be applied. Original set: [1] http://marc.info/?l=linux-kernelm=127897548706686w=2 [2] http://marc.info/?l=linux-kernelm=127982129204138w=2 Fixed unexpected change while replacing IN modifier [3] http://marc.info/?l=linux-kernelm=127972475532227w=2

[RESEND][PATCH] DSPBRIDGE: Replacing custom implementation for Mapping

2009-04-21 Thread Omar Ramirez Luna
From: Omar Ramirez Luna x0084...@ti.com Currently, we walk through the entire page table translating the addresses from virtual to physical whenever we map a buffer. This custom implementation is meant to be optimized for performance, but it bypasses the standard memory management subsystem

[PATCH 03/14] DSPBRIDGE: Fixed Double notification when a sys_error happens

2009-05-19 Thread Omar Ramirez Luna
There is no need to keep sending notifications once an mmu fault or sys error was sent, one notification should be enough to signal the reload of baseimage for recovery. Signed-off-by: Omar Ramirez Luna x00o...@ti.com Acked-by: Hari Kanigeri h-kanige...@ti.com --- drivers/dsp/bridge/wmd/ue_deh.c

[PATCH 01/14] DSPBRIDGE: Remove SEEK_* redefinitions

2009-05-19 Thread Omar Ramirez Luna
From: Guzman Lugo Fernando x0095...@ti.com This patch removes the SEEK_* redefinitions in host_os.h Signed-off-by: Guzman Lugo Fernando x0095...@ti.com Acked-by: Omar Ramirez Luna x00o...@ti.com --- arch/arm/plat-omap/include/dspbridge/host_os.h |6 -- 1 files changed, 0 insertions

[PATCH 07/14] DSPBRIDGE: base image reload suppor after DSP error

2009-05-19 Thread Omar Ramirez Luna
From: Fernando Guzman Lugo x0095...@ti.com Added support for reloading the base image after DSP error Signed-off-by: Hari Kanigeri h-kanige...@ti.com Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Signed-off-by: Omar Ramirez Luna x00o...@ti.com --- arch/arm/plat-omap/include/dspbridge

[PATCH 14/14] DSPBRIDGE: Remove run_IdleBoot support

2009-05-19 Thread Omar Ramirez Luna
From: Hari Kanigeri h-kanige...@ti.com Changed the Bridge boot process in order to avoid the usage of the IDLE boot mode and the DSP ROM. Signed-off-by: Hari Kanigeri h-kanige...@ti.com Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/dsp/bridge/wmd/tiomap3430.c | 60

[PATCH 06/14] DSPBRIDGE: Remove variables not used in cfgdefs.h

2009-05-19 Thread Omar Ramirez Luna
From: Guzman Lugo Fernando x0095...@ti.com This patch removes some variables that are not used. Signed-off-by: Guzman Lugo Fernando x0095...@ti.com Signed-off-by: Omar Ramirez Luna x00o...@ti.com --- arch/arm/plat-omap/include/dspbridge/cfgdefs.h | 10 -- drivers/dsp/bridge/rmgr/drv.c

[PATCH 02/14] DSPBRIDGE: Removes wrappers funtions of readl and writel

2009-05-19 Thread Omar Ramirez Luna
From: Guzman Lugo Fernando x0095...@ti.com This patch change the call to RD_MEM_32_VOLATILE and WR_MEM_32_VOLATILE with __raw_readl and __raw_writel Signed-off-by: Guzman Lugo Fernando x0095...@ti.com Acked-by: Omar Ramirez Luna x00o...@ti.com --- drivers/dsp/bridge/hw/MLBRegAcM.h| 41

[PATCH 05/14] DSPBRIDGE: Change address resources to void __iomem *

2009-05-19 Thread Omar Ramirez Luna
From: Guzman Lugo Fernando x0095...@ti.com This patch changes address resources to void __iomem * Ported for linux-omap-pm bridge-2.6.29 branch. Signed-off-by: Guzman Lugo Fernando x0095...@ti.com Signed-off-by: Omar Ramirez Luna x00o...@ti.com --- arch/arm/plat-omap/include/dspbridge

[PATCH 10/14] BRIDGE: Number of supported OPPs increased to 5

2009-05-19 Thread Omar Ramirez Luna
From: Armando Uribe de Leon x0095...@ti.com This patch increases the supported opp numbers within bridge driver, it will also fix the opp table to be fully populated in the shared memory; before, it was causing the QOS test reported numbers to be inaccurate. Signed-off-by: Armando Uribe de Leon

[PATCH 04/14] DSPBRIDGE: Fixed typo in debug traces

2009-05-19 Thread Omar Ramirez Luna
From: Omar Ramirez Luna omar.rami...@ti.com Fixed typo in Bridge traces for Msg and Nldr. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com Acked-by: Hari Kanigeri h-kanige...@ti.com --- drivers/dsp/bridge/pmgr/msg.c |2 +- drivers/dsp/bridge/rmgr/nldr.c |2 +- 2 files changed, 2

[PATCH 08/14] DSPBRIDGE: trivial spacing cleanup for memory module

2009-05-19 Thread Omar Ramirez Luna
From: Omar Ramirez Luna omar.rami...@ti.com trivial spacing cleanup for memory module Signed-off-by: Omar Ramirez Luna x00o...@ti.com --- drivers/dsp/bridge/services/mem.c | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/dsp/bridge

[PATCH 12/14] DSPBRIDGE: Remove all resources on driver exit

2009-05-19 Thread Omar Ramirez Luna
From: Omar Ramirez Luna omar.rami...@ti.com There is no need to walk the process context list on exit, remove all process instead without exception. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/rmgr/drv_interface.c | 32 +- 1 files

[PATCH 11/14] DSPBRIDGE: New PWRERROR event notification

2009-05-19 Thread Omar Ramirez Luna
From: Omar Ramirez Luna omar.rami...@ti.com This patch defines a new DSP_PWRERROR event which can be registered for notification. It uses the same mechanism as MMUFAULT or SYSERROR. And will notify to ayn client registered if there was any error when entering forced sleep state. Signed-off

[PATCH 13/14] DSPBRIDGE: Stop and reset DSP before removing constraints

2009-05-19 Thread Omar Ramirez Luna
From: Omar Ramirez Luna omar.rami...@ti.com This patch implements the DSP Reset procedure to be made on bridge exit before unregistering the constraints set by dsp. Signed-off-by: Hari Kanigeri h-kanige...@ti.com Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/rmgr

[PATCH 09/14] DSPBRIDGE: Fixing indentation

2009-05-19 Thread Omar Ramirez Luna
From: Omar Ramirez Luna omar.rami...@ti.com Trivial patch to change spaces for tabs, and a proper indentation Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/wmd/tiomap3430.c | 280 +++--- drivers/dsp/bridge/wmd/tiomap3430_pwr.c | 402

[PATCH] DSPBRIDGE: Revert removing all resources on proc detach

2009-06-03 Thread Omar Ramirez Luna
-by: Omar Ramirez Luna omar.rami...@ti.com Acked-by: Hari Kanigeri h-kanige...@ti.com --- drivers/dsp/bridge/rmgr/proc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c index d4d20ae..43f2d29 100644 --- a/drivers

[PATCH 5/7] DSPBRIDGE: Increased DMM size to 256MB

2009-06-17 Thread Omar Ramirez Luna
From: Hari Kanigeri h-kanige...@ti.com This patch increases the DMM from 64MB to 256MB. Signed-off-by: Hari Kanigeri h-kanige...@ti.com Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- arch/arm/plat-omap/include/dspbridge/dmm.h |2 +- drivers/dsp/bridge/pmgr/dmm.c

[PATCH 0/7] DSPBRIDGE: latest set of patches

2009-06-17 Thread Omar Ramirez Luna
to 256MB DSPBRIDGE: Keep DMM resources for other nodes on PROC_Detach Omar Ramirez Luna (2): DSPBRIDGE: Removing UTIL module DSPBRIDGE: Shared memory size increased to 5MB arch/arm/plat-omap/include/dspbridge/dmm.h |2 +- arch/arm/plat-omap/include/dspbridge/util.h | 122

[PATCH 2/7] DSPBRIDGE: Allow separate load/run addresses for Dynamic Loader

2009-06-17 Thread Omar Ramirez Luna
From: Fernando Guzman Lugo x0095...@ti.com Allow separate load/run addresses for Dynamic Loader. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/pmgr/dbll.c | 17 + 1 files changed, 13 insertions

[PATCH 6/7] DSPBRIDGE: Keep DMM resources for other nodes on PROC_Detach

2009-06-17 Thread Omar Ramirez Luna
From: Hari Kanigeri h-kanige...@ti.com Removed resource cleanup for DMM on PROC_Detach due to LCML detaching the processor when it deletes each node, therefore resource cleanup was freeing DMM resources of other nodes that might be still in use, this would cause unexpected behavior, possibly MMU

[PATCH 7/7] DSPBRIDGE: Reset MMU and DSP on board stop

2009-06-17 Thread Omar Ramirez Luna
From: Fernando Guzman Lugo x0095...@ti.com This patch resets MMU and DSP by writintg into those registers, this will solve MMU faults occured when the processor is stopped. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com Signed-off-by: Fernando Guzman x0095...@ti.com --- drivers/dsp/bridge

[PATCH 3/7] DSPBRIDGE: Handle properly user space pointers

2009-06-17 Thread Omar Ramirez Luna
From: Hari Kanigeri h-kanige...@ti.com This patch fixes bridge crash in UUID_UuidToString function. This error was due to user pointers not handled properly. Signed-off-by: Hari Kanigeri h-kanige...@ti.com --- drivers/dsp/bridge/pmgr/wcd.c | 147 ++--- 1

[PATCH 4/7] DSPBRIDGE: Shared memory size increased to 5MB

2009-06-17 Thread Omar Ramirez Luna
Increase the shared memory size to 5MB, bridge initialization should reserve 5MB of shared memory by default. Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/rmgr/drv_interface.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dsp

[PATCH 2/3] DSPBRIDGE: less code nesting for MemUnMap

2009-07-19 Thread Omar Ramirez Luna
less code nesting for MemUnMap Signed-off-by: Omar Ramirez Luna omar.rami...@ti.com --- drivers/dsp/bridge/wmd/tiomap3430.c | 271 +-- 1 files changed, 130 insertions(+), 141 deletions(-) diff --git a/drivers/dsp/bridge/wmd/tiomap3430.c b/drivers/dsp/bridge/wmd

[PATCH 1/3] DSPBRIDGE: Remove DMM physical addres table

2009-07-19 Thread Omar Ramirez Luna
From: Hari Kanigeri h-kanige...@ti.com Physical address is not needed anymore since Mapping migration to open source API, this patch removes the physical table entry. Signed-off-by: Hari Kanigeri h-kanige...@ti.com Signed-off-by: Fernando Guzman Lugo x0095...@ti.com ---

<    1   2   3   4   5   6   7   >