Remove code referred by OPT_ZERO_COPY_LOADER since it is
not used.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/dynload/cload.c | 60 +--
1 files changed, 20 insertions(+), 40 deletions(-)
diff --git a/drivers/staging/tidspbridge/dynload/cload.c
b
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
Signed-off-by: Omar Ramirez Luna
---
drivers/staging/tidspbridge/core/tiomap3430.c |4 ++--
1 files changed, 2 insertions
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
Signed-off-by: Omar Ramirez Luna
---
drivers/staging/tidspbridge/rmgr/nldr.c | 17 ++---
1 files changed, 2 insertions
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
Signed-off-by: Omar Ramirez Luna
---
.../staging/tidspbridge/include/dspbridge/cmm.h| 19
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
Signed-off-by: Omar Ramirez Luna
---
drivers/staging/tidspbridge/core/tiomap3430.c |5 +++--
1 files changed, 3 insertions
Make sure dspbridge driver uses a valid processor handle by
using the handle stored in process context.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/pmgr/dspapi.c | 50 +
1 files changed, 29 insertions(+), 21 deletions(-)
diff --git a/drivers
Use idr kernel library to send/receive node ids to the
user instead of kernel address.
This id will be use to access the node handles at the
kernel side, if id does not match to any handle
error -EFAULT is returned.
Signed-off-by: Ernesto Ramos
---
.../staging/tidspbridge/include/dspbridge
As 'zero' can be a perfectly good id, it can be picked up as
a NULL from userspace, avoid issues in API and user apps if stream
handle is zero.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/pmgr/dspapi.c |8 ++--
1 files changed, 6 insertions(+), 2 deletion
Send stream ids to the user instead of handles, then when
the id is coming from user dspbridge can retrive the handle
using id and avoid using invalid handles.
Signed-off-by: Ernesto Ramos
---
.../staging/tidspbridge/include/dspbridge/drv.h|5 +-
.../include/dspbridge/resourcecleanup.h
As 'zero' can be a perfectly good id, it can be picked up as
a NULL from userspace, avoid issues in API and user apps if node
handle is zero.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/pmgr/dspapi.c |6 --
1 files changed, 4 insertions(+), 2 deletions(-)
di
will make sure
the handle is valid by using the handle stored in process context.
Ernesto Ramos (5):
staging:ti dspbridge: use node id instead of kernel address
staging:ti dspbridge: avoid errors if node handle is zero
staging:ti dspbridge: use processor handle from context instead of
When dsp_notifications array is received from user,
dspbridge verifies the array has valid pointers
and dsp_notification structures. However, these
structures contain pointers that need to be
checked for valid handles.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/pmgr/dspapi.c
Remove find_gcf from nldr.c and use kernel function
gcd().
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/rmgr/nldr.c | 20 ++--
1 files changed, 2 insertions(+), 18 deletions(-)
diff --git a/drivers/staging/tidspbridge/rmgr/nldr.c
b/drivers/staging/tidspbridge
When a base image is being loaded or started and by some reason
the process fails, the IVA2 should be switched OFF.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/rmgr/proc.c |6 --
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/tidspbridge
right now, bridge_brd_stop is not changing the IVA2 power state
to OFF since PM_PWSTST_IVA2 is not 0 after calling this function.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/core/tiomap3430.c |8
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a
From: Ernesto Ramos
Remove bridge_brd_delete() function since it is
doing the same that bridge_brd_stop().
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/core/tiomap3430.c | 57 +
1 files changed, 1 insertions(+), 56 deletions(-)
diff --git a/drivers
Regardless the IVA2 power state before bridgedriver is
installed, the driver must ensure that IVA2 power
state is OFF when the device driver is created.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/core/tiomap3430.c |4 +++-
1 files changed, 3 insertions(+), 1 deletions
This series of patches fixes issues that prevent IVA2 to turn OFF when
there are issues to load the base image and makes sure IVA2 switched OFF
when dsp bridge driver is installed.
Ernesto Ramos (4):
staging:ti dspbridge: fix bridge_brd_stop so IVA2 is set OFF
staging:ti dspbridge: proc_load
Since status succeeded is now 0 macro DSP_FAILED
is not necessary anymore. This patch removes this
define.
Signed-off-by: Ernesto Ramos
---
.../staging/tidspbridge/include/dspbridge/dbdefs.h |3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/tidspbridge
Since status succeeded is now 0 macro DSP_SUCCEEDED
is not necessary anymore.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/pmgr/chnl.c |8 +-
drivers/staging/tidspbridge/pmgr/cmm.c| 135 +
drivers/staging/tidspbridge/pmgr/cod.c| 10
Since status succeeded is 0, DSP_FAILED macro
is not necessary anymore.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/pmgr/chnl.c |2 +-
drivers/staging/tidspbridge/pmgr/cmm.c|2 +-
drivers/staging/tidspbridge/pmgr/cod.c|8 +++---
drivers/staging/tidspbridge
Since status succeeded is now 0 macro DSP_SUCCEEDED
is not necessary anymore. This patch removes this
define.
Signed-off-by: Ernesto Ramos
---
.../staging/tidspbridge/include/dspbridge/dbdefs.h |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/staging
Since status succeeded is 0, DSP_FAILED macro
is not necessary anymore.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/rmgr/dbdcd.c | 24
drivers/staging/tidspbridge/rmgr/disp.c | 28
drivers/staging/tidspbridge/rmgr/drv.c |8
Since status succeeded is now 0 macro DSP_SUCCEEDED
is not necessary anymore.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/core/chnl_sm.c| 22
drivers/staging/tidspbridge/core/dsp-clock.c |4 +-
drivers/staging/tidspbridge/core/io_sm.c | 47
Since status succeeded is 0, DSP_FAILED macro
is not necessary anymore.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/core/chnl_sm.c| 20 +++---
drivers/staging/tidspbridge/core/io_sm.c | 64 ++--
drivers/staging/tidspbridge/core/msg_sm.c
Since status succeeded is 0, DSP_FAILED macro
is not necessary anymore.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/services/cfg.c | 13 ++---
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/tidspbridge/services/cfg.c
b/drivers/staging
This series of patches is targetted to remove macros DSP_FAILED
and DSP_SUCCEEDED since bridge driver currently uses standard kernel
error codes.
Ernesto Ramos (10):
staging:ti dspbridge: remove DSP_SUCCEEDED macro from core
staging:ti dspbridge: remove DSP_SUCCEEDED macro from pmgr
Since status succeeded is now 0 macro DSP_SUCCEEDED
is not necessary anymore.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/services/cfg.c | 10 +-
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/tidspbridge/services/cfg.c
b/drivers
Replace simple_strtoul by strict_strtoul in atoi function.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/rmgr/dbdcd.c |6 +-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/tidspbridge/rmgr/dbdcd.c
b/drivers/staging/tidspbridge/rmgr/dbdcd.c
Remove function delete_strm_mgr in strm.c and
use kfree instead.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/rmgr/strm.c | 16 ++--
1 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/drivers/staging/tidspbridge/rmgr/strm.c
b/drivers/staging
Remove unnecessary check for NULL pointer in cmm.c.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/pmgr/cmm.c |8 ++--
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/tidspbridge/pmgr/cmm.c
b/drivers/staging/tidspbridge/pmgr/cmm.c
index
Remove unnecessary volatile variables; use accessor
functions __raw_readl/__raw_writel instead when applicable.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/core/tiomap3430.c |8
drivers/staging/tidspbridge/dynload/tramp.c |4 ++--
drivers/staging/tidspbridge
Remove unused typedef REG16 in dspbridge.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/core/_tiomap.h |2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/tidspbridge/core/_tiomap.h
b/drivers/staging/tidspbridge/core/_tiomap.h
index b754e49
These patches are targetted to remove checkpatch errors within
dspbridge driver.
Ernesto Ramos (5):
staging:ti dspbridge: remove unused typedef REG16
staging:ti dspbridge: remove unnecessary check for NULL pointer in
cmm.c
staging:ti dspbridge: remove function delete_strm_mgr
When dsp_notifications array is received from user,
dspbridge verifies the array has valid pointers
and dsp_notification structures. However, these
structures contain pointers that need to be
checked for valid handles.
Signed-off-by: Ernesto Ramos
---
drivers/staging/tidspbridge/pmgr/dspapi.c
Remove unnecessary check for NULL pointer in cmm.c.
Signed-off-by: Ernesto Ramos
---
drivers/dsp/bridge/pmgr/cmm.c |5 +
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/drivers/dsp/bridge/pmgr/cmm.c b/drivers/dsp/bridge/pmgr/cmm.c
index 7aa4ca4..1134193 100644
--- a
Remove function delete_strm_mgr in strm.c and
use kfree instead.
Signed-off-by: Ernesto Ramos
---
drivers/dsp/bridge/rmgr/strm.c | 16 ++--
1 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/drivers/dsp/bridge/rmgr/strm.c b/drivers/dsp/bridge/rmgr/strm.c
index e537ee8
Remove unused typedefs in dspbridge.
Signed-off-by: Ernesto Ramos
---
arch/arm/plat-omap/include/dspbridge/dbtype.h |1 -
drivers/dsp/bridge/core/_tiomap.h |2 --
2 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/arch/arm/plat-omap/include/dspbridge/dbtype.h
b
Replace simple_strtoul by strict_strtoul in atoi function.
Signed-off-by: Ernesto Ramos
---
drivers/dsp/bridge/rmgr/dbdcd.c |6 +-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/dsp/bridge/rmgr/dbdcd.c b/drivers/dsp/bridge/rmgr/dbdcd.c
index e014600..ae85dc2
Remove unnecessary volatile variables; use accessor
functions __raw_readl/__raw_writel instead when applicable.
Signed-off-by: Ernesto Ramos
---
drivers/dsp/bridge/core/tiomap3430.c |8
drivers/dsp/bridge/dynload/tramp.c |4 ++--
drivers/dsp/bridge/pmgr/cmm.c|7
match low addresses in the hash table and are not useful to
print. Any address below DYNEXTBASE is not valid for the DSP.
Signed-off-by: Ernesto Ramos
---
drivers/dsp/bridge/core/io_sm.c | 72 +--
1 files changed, 54 insertions(+), 18 deletions(-)
diff --git a
Use idr kernel library to send/receive node ids to the
user instead of kernel address.
This id will be use to access the node handles at the
kernel side, if id does not match to any handle
DSP error DSP_EHANDlE is returned.
Signed-off-by: Ernesto Ramos
---
arch/arm/plat-omap/include/dspbridge
As 'zero' can be a perfectly good id, it can be picked up as
a NULL from userspace, avoid issues in API and user apps if stream
handle is zero.
Signed-off-by: Ernesto Ramos
---
drivers/dsp/bridge/pmgr/wcd.c |8 ++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git
Make sure dspbridge driver uses a valid processor handle by
using the handle stored in process context.
Signed-off-by: Ernesto Ramos
---
drivers/dsp/bridge/pmgr/wcd.c | 56 -
1 files changed, 33 insertions(+), 23 deletions(-)
diff --git a/drivers/dsp
Send stream ids to the user instead of handles, then when
the id is coming from user dspbridge can retrive the handle
using id and avoid using invalid handles.
Signed-off-by: Ernesto Ramos
---
arch/arm/plat-omap/include/dspbridge/drv.h |5 +-
.../plat-omap/include/dspbridge
As 'zero' can be a perfectly good id, it can be picked up as
a NULL from userspace, avoid issues in API and user apps if node
handle is zero.
Signed-off-by: Ernesto Ramos
---
drivers/dsp/bridge/pmgr/wcd.c |6 --
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/d
46 matches
Mail list logo