[PATCHv2] mailbox: change full flag per mailbox queue instead of global

2010-08-10 Thread Fernando Guzman Lugo
As pointed by Ohad Ben-Cohen, the variable rq_full flag is a global variable, so if there are multiple mailbox users there will be conflics. Now there is a full flag per mailbox queue. Version 2: - Rebase to the latest. Reported-by: Ohad Ben-Cohen o...@wizery.com Signed-off-by: Fernando Guzman

[PATCH] iommu: fix end address of vm area comparation in alloc_iovm_area

2010-08-17 Thread Fernando Guzman Lugo
it is used to get area size in several places. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Acked-by: Hiroshi DOYU hiroshi.d...@nokia.com --- arch/arm/plat-omap/iovmm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap

[PATCHv2 09/11] staging: tidspbridge - remove reserved memory clean up

2010-09-30 Thread Fernando Guzman Lugo
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 x0095...@ti.com --- .../staging/tidspbridge/include/dspbridge/drv.h|4 -- drivers/staging/tidspbridge/rmgr/drv.c | 11

[PATCHv2 00/11] staging tidspbridge: iommu migration

2010-09-30 Thread Fernando Guzman Lugo
will be sent. - Rebase to the latest tidspbridge. Fernando Guzman Lugo (11): staging: tidspbridge: replace iommu custom for opensource implementation staging: tidspbridge - move shared memory iommu maps to tiomap3430.c staging: tidspbridge - rename bridge_brd_mem_map/unmap to a proper name

[PATCHv2 06/11] staging: tidspbrge - remove hw directory

2010-09-30 Thread Fernando Guzman Lugo
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 x0095...@ti.com --- drivers/staging/tidspbridge/Makefile |3 +- drivers/staging/tidspbridge/core

[PATCHv2 10/11] staging: tidspbridge - deprecate reserve/unreserve_memory funtions

2010-09-30 Thread Fernando Guzman Lugo
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 x0095...@ti.com --- .../staging/tidspbridge/include/dspbridge/proc.h | 46 drivers/staging/tidspbridge/pmgr/dspapi.c

[PATCHv2 05/11] staging: tidspbridge - fix mmufault support

2010-09-30 Thread Fernando Guzman Lugo
With changes for iommu migration mmufault report and dsp track dump is broken, this patch fixes that. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/_deh.h |2 + drivers/staging/tidspbridge/core/tiomap3430.c |2 + drivers/staging

[PATCHv2 07/11] staging: tidspbridge - move all iommu related code to a new file

2010-09-30 Thread Fernando Guzman Lugo
Create dsp-mmu module and moves all the iommu code related to this module. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/Makefile |2 +- drivers/staging/tidspbridge/core/_deh.h|3 - drivers/staging/tidspbridge/core/_tiomap.h

[PATCHv2 02/11] staging: tidspbridge - move shared memory iommu maps to tiomap3430.c

2010-09-30 Thread Fernando Guzman Lugo
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 x0095...@ti.com --- drivers/staging/tidspbridge/core/_tiomap.h| 13 +++ drivers/staging/tidspbridge/core/io_sm.c | 125

[PATCHv2 01/11] staging: tidspbridge: replace iommu custom for opensource implementation

2010-09-30 Thread Fernando Guzman Lugo
Now the tidspbridge uses the API's from iovmm module. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/_tiomap.h |4 +- drivers/staging/tidspbridge/core/io_sm.c | 121 ++ drivers/staging/tidspbridge/core/tiomap3430.c | 522

[PATCHv2 04/11] staging: tidspbridge - remove custom mmu code from tiomap3430.c

2010-09-30 Thread Fernando Guzman Lugo
This patch removes all the custom mmu code remaining in tiomap3430.c which is not needed anymore. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/_tiomap.h|2 - drivers/staging/tidspbridge/core/tiomap3430.c | 425 - 2

[PATCH 2/4] iovmm: fix roundup for next area and end check for the last area

2010-09-30 Thread Fernando Guzman Lugo
As da_end does not belongs to the area the roundup should be done to da_end and not to da_end + 1. Also the end check for the last area should be ULONG_MAX - start + 1 = bytes. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |6 +++--- 1 files changed, 3

[PATCH 3/4] iovmm: add superpages support to fixed da address

2010-09-30 Thread Fernando Guzman Lugo
This patch adds superpages support to fixed ad address inside iommu_kmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c | 61 ++- 1 files changed, 37 insertions(+), 24 deletions(-) diff --git a/arch/arm/plat

[PATCH 1/4] iommu: remove CONFIG_MPU_BRIDGE_IOMMU

2010-09-30 Thread Fernando Guzman Lugo
remove CONFIG_MPU_BRIDGE_IOMMU in order to create iommu_device for iva2. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/mach-omap2/omap-iommu.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap

[PATCH 4/4] iovmm: replace __iounmap with omap_iounmap

2010-09-30 Thread Fernando Guzman Lugo
Omap platform is omap_iounmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) mode change 100644 = 100755 arch/arm/plat-omap/iovmm.c diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat

[PATCH 0/4] iovmm: fixes for iovmm module

2010-09-30 Thread Fernando Guzman Lugo
This patches are needed in order to tidspbridge can use iovmm with no issues. Fernando Guzman Lugo (4): iommu: remove CONFIG_MPU_BRIDGE_IOMMU iovmm: fix roundup for next area and end check for the last area iovmm: add superpages support to fixed da address iovmm: replace __iounmap

[PATCH] scatterlist: define SG chain for arm architecture

2010-09-30 Thread Fernando Guzman Lugo
Define SG chain for ARM architecture in order to work with big buffers. This patch is needed in order to iovmm users can pass a big buffer to map it and ARM architecture has not issues using SG chain. This change was suggested by FUJITA Tomonori. Signed-off-by: Fernando Guzman Lugo x0095

[PATCHv2 2/3] iovmm: add superpages support to fixed da address

2010-10-04 Thread Fernando Guzman Lugo
This patch adds superpages support to fixed ad address inside iommu_kmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c | 61 ++- 1 files changed, 37 insertions(+), 24 deletions(-) diff --git a/arch/arm/plat

[PATCHv2 1/3] iovmm: no gap checking for fixed address

2010-10-04 Thread Fernando Guzman Lugo
If some fixed da address is wanted to be mapped and the page is freed but it is used as gap, the mapping will fail. This patch is fixing that and olny keeps the gap for not fixed address. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |4 ++-- 1 files

[PATCHv2 0/3] iovmm: fixes for iovmm module

2010-10-04 Thread Fernando Guzman Lugo
. Fernando Guzman Lugo (3): iovmm: no gap checking for fixed address iovmm: add superpages support to fixed da address iovmm: replace __iounmap with omap_iounmap arch/arm/plat-omap/iovmm.c | 67 ++- 1 files changed, 40 insertions(+), 27 deletions

[PATCHv2 3/3] iovmm: replace __iounmap with omap_iounmap

2010-10-04 Thread Fernando Guzman Lugo
Omap platform is omap_iounmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index 8006a19..75965a1 100644 --- a/arch

[PATCHv3 03/11] staging: tidspbridge - rename bridge_brd_mem_map/unmap to a proper name

2010-10-05 Thread Fernando Guzman Lugo
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 x0095...@ti.com --- drivers/staging/tidspbridge/core/_tiomap.h | 24

[PATCHv3 08/11] staging: tidspbridge: remove dw_dmmu_base from cfg_hostres struct

2010-10-05 Thread Fernando Guzman Lugo
We don't need to map iva2 iommu register base address anymore. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/tiomap3430.c |3 --- drivers/staging/tidspbridge/core/tiomap_io.c |3 +-- .../tidspbridge/include/dspbridge/cfgdefs.h

[PATCHv3 10/11] staging: tidspbridge - deprecate reserve/unreserve_memory funtions

2010-10-05 Thread Fernando Guzman Lugo
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 x0095...@ti.com --- .../staging/tidspbridge/include/dspbridge/proc.h | 46 drivers/staging/tidspbridge/pmgr/dspapi.c

[PATCHv3 11/11] staging: tidspbridge - remove dmm custom module

2010-10-05 Thread Fernando Guzman Lugo
Dmm custom module is not needed anymore. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/Makefile |2 +- drivers/staging/tidspbridge/core/tiomap3430.c |1 - .../staging/tidspbridge/include/dspbridge/dev.h| 24 - .../staging

[PATCHv3 06/11] staging: tidspbridge - remove hw directory

2010-10-05 Thread Fernando Guzman Lugo
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 x0095...@ti.com --- drivers/staging/tidspbridge/Makefile |3 +- drivers/staging/tidspbridge/core

[PATCHv3 09/11] staging: tidspbridge - remove reserved memory clean up

2010-10-05 Thread Fernando Guzman Lugo
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 x0095...@ti.com --- .../staging/tidspbridge/include/dspbridge/drv.h|4 -- drivers/staging/tidspbridge/rmgr/drv.c | 11

[PATCHv3 01/11] staging: tidspbridge: replace iommu custom for opensource implementation

2010-10-05 Thread Fernando Guzman Lugo
Now the tidspbridge uses the API's from iovmm module. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/_tiomap.h |4 +- drivers/staging/tidspbridge/core/io_sm.c | 121 ++ drivers/staging/tidspbridge/core/tiomap3430.c | 522

[PATCHv3 04/11] staging: tidspbridge - remove custom mmu code from tiomap3430.c

2010-10-05 Thread Fernando Guzman Lugo
This patch removes all the custom mmu code remaining in tiomap3430.c which is not needed anymore. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/_tiomap.h|2 - drivers/staging/tidspbridge/core/tiomap3430.c | 425 - 2

[PATCHv3 07/11] staging: tidspbridge - move all iommu related code to a new file

2010-10-05 Thread Fernando Guzman Lugo
Create dsp-mmu module and moves all the iommu code related to this module. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/Makefile |2 +- drivers/staging/tidspbridge/core/_deh.h|3 - drivers/staging/tidspbridge/core/_tiomap.h

[PATCHv3 05/11] staging: tidspbridge - fix mmufault support

2010-10-05 Thread Fernando Guzman Lugo
With changes for iommu migration mmufault report and dsp track dump is broken, this patch fixes that. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/_deh.h |2 + drivers/staging/tidspbridge/core/tiomap3430.c |2 + drivers/staging

[PATCHv3 00/11] staging tidspbridge: iommu migration

2010-10-05 Thread Fernando Guzman Lugo
will be sent. - Rebase to the latest tidspbridge. Version2 - Rebase to the latest staging-next tree commit: a747d4b817daf95c64ac6396e27fddc66c83a811 Fernando Guzman Lugo (11): staging: tidspbridge: replace iommu custom for opensource implementation staging: tidspbridge - move shared

[PATCHv3 02/11] staging: tidspbridge - move shared memory iommu maps to tiomap3430.c

2010-10-05 Thread Fernando Guzman Lugo
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 x0095...@ti.com --- drivers/staging/tidspbridge/core/_tiomap.h| 13 +++ drivers/staging/tidspbridge/core/io_sm.c | 125

[PATCH] staging: tidspbridge - update Kconfig to select IOMMU module

2010-10-05 Thread Fernando Guzman Lugo
IOMMU module most be selected when using tidspbridge, because now tidsbridge depends on iommu module. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/staging/tidspbridge

[PATCH] iovmm: IVA2 MMU range is from 0x11000000 to 0xFFFFFFFF

2010-10-07 Thread Fernando Guzman Lugo
IV2 MMU capable addresses start from 0x1100 Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index 75965a1..c0344f4 100644

[PATCH 1/4] iovmm: no gap checking for fixed address

2010-10-13 Thread Fernando Guzman Lugo
If some fixed da address is wanted to be mapped and the page is freed but it is used as gap, the mapping will fail. This patch is fixing that and olny keeps the gap for not fixed address. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |4 ++-- 1 files

[PATCHv3 0/4] iovmm: fixes for iovmm module

2010-10-13 Thread Fernando Guzman Lugo
. Version 2: * Removed iovmm: fixes for iovmm module that patch was already sent. * Modified iovmm: fix roundup for next area and end check for the last area patch, base on Davin Cohen's comments and rename it to a proper name that describes what it is doing now. Fernando Guzman Lugo (4

[PATCH 2/4] iovmm: add superpages support to fixed da address

2010-10-13 Thread Fernando Guzman Lugo
This patch adds superpages support to fixed ad address inside iommu_kmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c | 62 +-- 1 files changed, 36 insertions(+), 26 deletions(-) diff --git a/arch/arm/plat

[PATCH 3/4] iovmm: replace __iounmap with omap_iounmap

2010-10-13 Thread Fernando Guzman Lugo
Omap platform is omap_iounmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index 93a34d9..5489ca9 100644 --- a/arch

[PATCH 4/4] iommu: create new api to set valid da range

2010-10-13 Thread Fernando Guzman Lugo
Some IOMMUs cannot use the whole 0x0 - 0x rage. With this new API the valid range can be set. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/plat/iommu.h |3 +++ arch/arm/plat-omap/iommu.c | 29 + arch/arm

[PATCHv4 2/4] iovmm: add superpages support to fixed da address

2010-10-19 Thread Fernando Guzman Lugo
This patch adds superpages support to fixed ad address inside iommu_kmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c | 62 +-- 1 files changed, 36 insertions(+), 26 deletions(-) diff --git a/arch/arm/plat

[PATCHv4 4/4] iommu: create new api to set valid da range

2010-10-19 Thread Fernando Guzman Lugo
Some IOMMUs cannot use the whole 0x0 - 0x range. With this new API the valid range can be set. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/plat/iommu.h |3 +++ arch/arm/plat-omap/iommu.c | 29 + arch

[PATCHv4 1/4] iovmm: no gap checking for fixed address

2010-10-19 Thread Fernando Guzman Lugo
If some fixed da address is wanted to be mapped and the page is freed but it is used as gap, the mapping will fail. This patch is fixing that and olny keeps the gap for not fixed address. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |4 ++-- 1 files

[PATCHv4 3/4] iovmm: replace __iounmap with omap_iounmap

2010-10-19 Thread Fernando Guzman Lugo
Omap platform is omap_iounmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index 93a34d9..5489ca9 100644 --- a/arch

[PATCHv4 0/4] iovmm: fixes for iovmm module

2010-10-19 Thread Fernando Guzman Lugo
. Version 2: * Removed iovmm: fixes for iovmm module that patch was already sent. * Modified iovmm: fix roundup for next area and end check for the last area patch, base on Davin Cohen's comments and rename it to a proper name that describes what it is doing now. Fernando Guzman Lugo (4): iovmm

[PATCH] omap: mailbox - fix missing mbox owner assignment when creating queue

2010-10-19 Thread Fernando Guzman Lugo
mbox field of omap_mbox_queue structure is never assigned to the mailbox owner. Causing kernel panic when dereference it. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/mailbox.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat

[PATCHv5 3/4] iovmm: replace __iounmap with omap_iounmap

2010-10-25 Thread Fernando Guzman Lugo
Omap platform is omap_iounmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index 93a34d9..5489ca9 100644 --- a/arch

[PATCHv5 2/4] iovmm: add superpages support to fixed da address

2010-10-25 Thread Fernando Guzman Lugo
This patch adds superpages support to fixed ad address inside iommu_kmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c | 62 +-- 1 files changed, 36 insertions(+), 26 deletions(-) diff --git a/arch/arm/plat

[PATCHv5 4/4] iommu: create new api to set valid da range

2010-10-25 Thread Fernando Guzman Lugo
Some IOMMUs cannot use the whole 0x0 - 0x rage. With this new API the valid range can be set. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/plat/iommu.h |3 ++ arch/arm/plat-omap/iommu.c | 33 +++ arch

[PATCHv5 0/4] iovmm: fixes for iovmm module

2010-10-25 Thread Fernando Guzman Lugo
on Davin Cohen's comments and rename it to a proper name that describes what it is doing now. *** BLURB HERE *** Fernando Guzman Lugo (4): iovmm: no gap checking for fixed address iovmm: add superpages support to fixed da address iovmm: replace __iounmap with omap_iounmap iommu: create new api

[PATCHv5 1/4] iovmm: no gap checking for fixed address

2010-10-25 Thread Fernando Guzman Lugo
If some fixed da address is wanted to be mapped and the page is freed but it is used as gap, the mapping will fail. This patch is fixing that and olny keeps the gap for not fixed address. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |4 ++-- 1 files

[PATCHv5 0/4] omap: iovmm - fixes for iovmm module

2010-10-25 Thread Fernando Guzman Lugo
on Davin Cohen's comments and rename it to a proper name that describes what it is doing now. *** BLURB HERE *** Fernando Guzman Lugo (4): iovmm: no gap checking for fixed address iovmm: add superpages support to fixed da address iovmm: replace __iounmap with omap_iounmap iommu: create new api

[PATCHv5 2/4] omap: iovmm - add superpages support to fixed da address

2010-10-25 Thread Fernando Guzman Lugo
This patch adds superpages support to fixed ad address inside iommu_kmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c | 62 +-- 1 files changed, 36 insertions(+), 26 deletions(-) diff --git a/arch/arm/plat

[PATCHv5 3/4] omap: iovmm - replace __iounmap with omap_iounmap

2010-10-25 Thread Fernando Guzman Lugo
Omap platform is omap_iounmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index 93a34d9..5489ca9 100644 --- a/arch

[PATCHv5 4/4] omap: iommu - create new api to set valid da range

2010-10-25 Thread Fernando Guzman Lugo
Some IOMMUs cannot use the whole 0x0 - 0x rage. With this new API the valid range can be set. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/plat/iommu.h |3 ++ arch/arm/plat-omap/iommu.c | 33 +++ arch

[PATCHv5 1/4] omap: iovmm - no gap checking for fixed address

2010-10-25 Thread Fernando Guzman Lugo
If some fixed da address is wanted to be mapped and the page is freed but it is used as gap, the mapping will fail. This patch is fixing that and olny keeps the gap for not fixed address. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c |4 ++-- 1 files

[PATCH 7/8] staging: tidspbridge - fix some issues after iommu patches

2010-10-25 Thread Fernando Guzman Lugo
-kernelm=128735502205183w=2 Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/dsp-mmu.c |2 +- drivers/staging/tidspbridge/rmgr/node.c|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/tidspbridge/core/dsp-mmu.c b

[PATCH 0/8] staging: tidspbridge - misc fixes

2010-10-25 Thread Fernando Guzman Lugo
This set of patches fix some issues found in lastest tree. Fernando Guzman Lugo (8): staging: tidspbridge - remove req_addr from proc_map staging: tidspbridge - add kconfig parameter for DMM size staging: tidspbridge - change mmufault tasklet to a workqueue staging: tidspbridge - fix

[PATCH 4/8] staging: tidspbridge - fix timeout in dsp_gpt_wait_overflow

2010-10-25 Thread Fernando Guzman Lugo
Timeout was not being initialized correctly and should use time_is-before_jiffies, also make it a parameter Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/dsp-clock.c | 13 +++-- drivers/staging/tidspbridge/core/dsp-mmu.c |5

[PATCH 6/8] staging: tidspbridge - remove disabling twl when printing DSP stack

2010-10-25 Thread Fernando Guzman Lugo
Now the SHM segments are not in lock tlbs, instead they are in translation tables. So we cannot disable twl in order to get the DSP stack dump. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/dsp-mmu.c |8 1 files changed, 0 insertions(+), 8

[PATCH 3/8] staging: tidspbridge - change mmufault tasklet to a workqueue

2010-10-25 Thread Fernando Guzman Lugo
We don't need to manage the mmufault inside a tasklet it is safer using a workqueue. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/dsp-mmu.c | 34 ++-- 1 files changed, 22 insertions(+), 12 deletions(-) diff --git a/drivers

[PATCH 5/8] staging: tidspbridge - use GTP7 for DSP stack dump

2010-10-25 Thread Fernando Guzman Lugo
DSP stack dump is changed to GTP7 due to GPT8 is used by DSP side apps Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/core/dsp-mmu.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/tidspbridge/core/dsp-mmu.c b

[PATCH 1/8] staging: tidspbridge - remove req_addr from proc_map

2010-10-25 Thread Fernando Guzman Lugo
The device address is assigned by tidspbridge no need for that parameter anymore. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- .../tidspbridge/include/dspbridge/dspapi-ioctl.h |1 - .../staging/tidspbridge/include/dspbridge/proc.h |3 -- drivers/staging/tidspbridge/pmgr

[PATCH 2/8] staging: tidspbridge - add kconfig parameter for DMM size

2010-10-25 Thread Fernando Guzman Lugo
: omap: iommu - create new api to set valid da range Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/staging/tidspbridge/Kconfig|8 drivers/staging/tidspbridge/core/tiomap3430.c | 20 ++-- .../tidspbridge/include/dspbridge/dsp

[PATCH 8/8] staging: tidspbridge - make sync_wait_on_event interruptible

2010-10-25 Thread Fernando Guzman Lugo
So that avoid non-killable process. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- .../staging/tidspbridge/include/dspbridge/sync.h | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/staging/tidspbridge/include/dspbridge/sync.h b/drivers

[PATCH 0/4] omap: iovmm - fixes for iovmm module

2010-12-14 Thread Fernando Guzman Lugo
Version 6: * Rebase on Russell King branch. - for details see: http://marc.info/?l=linux-omapm=129228495723001w=2 Version 5: * Changes in iommu: create new api to set valid da range - Change range variables to platform data structure. Version 4: * Changes in iommu: create new api to set valid

[PATCHv6 1/4] omap: iovmm - no gap checking for fixed address

2010-12-14 Thread Fernando Guzman Lugo
From: Guzman Lugo, Fernando x0095...@ti.com If some fixed da address is wanted to be mapped and the page is freed but it is used as gap, the mapping will fail. This patch is fixing that and olny keeps the gap for not fixed address. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Acked

[PATCHv6 2/4] omap: iovmm - add superpages support to fixed da address

2010-12-14 Thread Fernando Guzman Lugo
From: Guzman Lugo, Fernando x0095...@ti.com This patch adds superpages support to fixed ad address inside iommu_kmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Acked-by: Hiroshi DOYU hiroshi.d...@nokia.com --- arch/arm/plat-omap/iovmm.c | 62

[PATCHv6 3/4] omap: iovmm - replace __iounmap with iounmap

2010-12-14 Thread Fernando Guzman Lugo
From: Guzman Lugo, Fernando x0095...@ti.com __iounmap function is wrong for OMAP architecture, instead use iounmap which will call to the correct function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Acked-by: Hiroshi DOYU hiroshi.d...@nokia.com --- arch/arm/plat-omap/iovmm.c |2

[PATCHv6 4/4] omap: iommu - create new api to set valid da range

2010-12-14 Thread Fernando Guzman Lugo
From: Guzman Lugo, Fernando x0095...@ti.com Some IOMMUs cannot use the whole 0x0 - 0x rage. With this new API the valid range can be set. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Acked-by: Hiroshi DOYU hiroshi.d...@nokia.com --- arch/arm/plat-omap/include/plat/iommu.h |3

[PATCHv7 0/4] omap: iovmm - fixes for iovmm module

2010-12-14 Thread Fernando Guzman Lugo
Misc fixes found while working with iovmm module. They are needed in order to tidspbridge can work properly along with iovmm module. Version 7: * Change 4/4 patch base on Felipe Contreras comments about having start/end in platform data and struct iommu. Version 6: * Rebase on Russell King

[PATCHv7 2/4] omap: iovmm - add superpages support to fixed da address

2010-12-14 Thread Fernando Guzman Lugo
From: Guzman Lugo, Fernando x0095...@ti.com This patch adds superpages support to fixed ad address inside iommu_kmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Acked-by: Hiroshi DOYU hiroshi.d...@nokia.com --- arch/arm/plat-omap/iovmm.c | 62

[PATCHv7 4/4] omap: iommu - create new api to set valid da range

2010-12-14 Thread Fernando Guzman Lugo
From: Guzman Lugo, Fernando x0095...@ti.com Some IOMMUs cannot use the whole 0x0 - 0x range. With this new API the valid range can be set. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Acked-by: Hiroshi DOYU hiroshi.d...@nokia.com --- arch/arm/mach-omap2/omap-iommu.c|8

[PATCHv7 3/4] omap: iovmm - replace __iounmap with iounmap

2010-12-14 Thread Fernando Guzman Lugo
From: Guzman Lugo, Fernando x0095...@ti.com __iounmap function is wrong for OMAP architecture, instead use iounmap which will call to the correct function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Acked-by: Hiroshi DOYU hiroshi.d...@nokia.com --- arch/arm/plat-omap/iovmm.c |2

[PATCHv7 1/4] omap: iovmm - no gap checking for fixed address

2010-12-14 Thread Fernando Guzman Lugo
From: Guzman Lugo, Fernando x0095...@ti.com If some fixed da address is wanted to be mapped and the page is freed but it is used as gap, the mapping will fail. This patch is fixing that and olny keeps the gap for not fixed address. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Acked

[PATCH] staging: tidspbridge - configure full L1 MMU range

2011-01-04 Thread Fernando Guzman Lugo
Guzman Lugo fernando.l...@ti.com Signed-off-by: Felipe Contreras felipe.contre...@nokia.com --- drivers/staging/tidspbridge/core/tiomap3430.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/tidspbridge/core/tiomap3430.c b/drivers/staging/tidspbridge/core

[PATCHv2] staging: tidspbridge: configure full L1 MMU range

2011-01-05 Thread Fernando Guzman Lugo
-by: Felipe Contreras felipe.contre...@nokia.com Signed-off-by: Fernando Guzman Lugo fernando.l...@ti.com Signed-off-by: Felipe Contreras felipe.contre...@nokia.com --- drivers/staging/tidspbridge/core/tiomap3430.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH] DSPBRIDGE: cleanup of HW_MBOX_IsFull function

2009-03-04 Thread Fernando Guzman Lugo
This patch does a cleanup of the HW_MBOX_IsFull function; removing some unnecessary checks and changing the returned value to bool because the status value is not needed. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com Reviewed-by: Felipe Contreras felipe.contre...@gmail.com --- drivers/dsp

[PATCH] DSPBRIDGE: wait less and check the mailbox more.

2009-03-04 Thread Fernando Guzman Lugo
Performance is increased if we wait less and check the mailbox more when it's full. Signed-off-by: Felipe Contreras felipe.contre...@nokia.com Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/dsp/bridge/wmd/tiomap_sm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions

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

2009-03-04 Thread Fernando Guzman Lugo
This patch changes address resources to void __iomem * Signed-off-by: Guzman Lugo Fernando x0095...@ti.com --- arch/arm/plat-omap/include/dspbridge/cfgdefs.h | 16 drivers/dsp/bridge/hw/hw_dspssC64P.c |2 +- drivers/dsp/bridge/hw/hw_dspssC64P.h |2 +-

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

2009-03-04 Thread Fernando Guzman Lugo
This patch removes some variable that are not used. Signed-off-by: Guzman Lugo Fernando x0095...@ti.com --- arch/arm/plat-omap/include/dspbridge/cfgdefs.h | 10 -- drivers/dsp/bridge/rmgr/drv.c |2 -- 2 files changed, 0 insertions(+), 12 deletions(-) diff --git

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

2009-03-04 Thread Fernando Guzman Lugo
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 --- drivers/dsp/bridge/hw/MLBRegAcM.h| 41 drivers/dsp/bridge/hw/MMURegAcM.h| 66 ++--

[PATCH] DSPBRIDGE: Remove SEEK_* redefinitions

2009-03-04 Thread Fernando Guzman Lugo
This patch removes the SEEK_* redefinitions in host_os.h Signed-off-by: Guzman Lugo Fernando x0095...@ti.com --- arch/arm/plat-omap/include/dspbridge/host_os.h |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/arch/arm/plat-omap/include/dspbridge/host_os.h

[PATCH] mailbox: change full flag per mailbox queue instead of global

2010-06-11 Thread Fernando Guzman Lugo
As pointer by Ben Ohand, the variable rq_full flag is a global variable, so if there are multiple mailbox user there will be conflics. Now there is a full flag per mailbox queue. Reported-by: Ohad Ben-Cohen o...@wizery.com Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat

[PATCH] mailbox: change full flag per mailbox queue instead of global

2010-06-14 Thread Fernando Guzman Lugo
As pointed by Ben Ohand, the variable rq_full flag is a global variable, so if there are multiple mailbox users there will be conflics. Now there is a full flag per mailbox queue. Reported-by: Ohad Ben-Cohen o...@wizery.com Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat

[PATCHv3 1/9] dspbridge: replace iommu custom for opensource implementation

2010-06-30 Thread Fernando Guzman Lugo
This patch replace the call to custom dsp mmu implemenation for the once on iommu module. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/dsp/bridge/core/_tiomap.h| 16 + drivers/dsp/bridge/core/io_sm.c | 114 ++-- drivers/dsp/bridge/core/tiomap3430.c | 501

[PATCHv3 3/9] dspbridge: rename bridge_brd_mem_map/unmap to a proper name

2010-06-30 Thread Fernando Guzman Lugo
Now these functions only map user space addresses to dsp virtual addresses, so now the functions have a more meaningful name Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/dspbridge/dspdefs.h | 44 drivers/dsp/bridge/core/_tiomap.h

[PATCHv3 0/9] dspbridge: iommu migration

2010-06-30 Thread Fernando Guzman Lugo
This set of patches remove the dspbridge custom mmu implementation and use iommu module instead. NOTE: in order to dspbridge can work properly the patch 0001-iovmm-add-superpages-support-to-fixed-da-address.patch is needed (specifically iommu_kmap calls need this patch). Fernando Guzman Lugo (9

[PATCHv3 7/9] dspbridge: move all iommu related code to a new file

2010-06-30 Thread Fernando Guzman Lugo
This patch moves all the code related to iommu in the dsp-mmu.c file Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/dspbridge/dsp-mmu.h | 90 ++ arch/arm/plat-omap/include/dspbridge/dspdeh.h |1 - drivers/dsp/bridge/Makefile

[PATCHv3 5/9] dspbridge: add mmufault support

2010-06-30 Thread Fernando Guzman Lugo
With changes for iommu migration mmu fault report and dsp track dump is broken, this patch fixes that. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/dsp/bridge/core/mmu_fault.c | 93 ++--- drivers/dsp/bridge/core/mmu_fault.h |5 +- drivers

[PATCH] iovmm: add superpages support to fixed da address

2010-06-30 Thread Fernando Guzman Lugo
This patch adds superpages support to fixed ad address inside iommu_kmap function. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/iovmm.c | 52 +++- 1 files changed, 32 insertions(+), 20 deletions(-) diff --git a/arch/arm

[PATCHv3 9/9] dspbridge: cleanup bridge_dev_context and cfg_hostres structures

2010-06-30 Thread Fernando Guzman Lugo
this patch cleans up cfg_hostres and bridge_dev_context structures of custom mmu code not needed anymore. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/dspbridge/cfgdefs.h |1 - drivers/dsp/bridge/core/_tiomap.h |5 - drivers/dsp

[PATCHv3 8/9] dspbridge: add map support for big buffers

2010-06-30 Thread Fernando Guzman Lugo
due to a restriction in scatter gather lists, it can not be created a list for a buffer bigger than 1MB. This patch is spliting big mappings into 1MB mappings. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/dspbridge/dsp-mmu.h |2 +- drivers/dsp/bridge

[PATCHv3 4/9] dspbridge: remove custom mmu code from tiomap3430.c

2010-06-30 Thread Fernando Guzman Lugo
This patch removes all the custom mmu code remaining in tiomap3430.c which is not needed anymore. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/dsp/bridge/core/_tiomap.h|1 - drivers/dsp/bridge/core/tiomap3430.c | 470 -- 2 files changed

[PATCHv3 2/9] dspbridge: move shared memory iommu maps to tiomap3430.c

2010-06-30 Thread Fernando Guzman Lugo
Now the iommu map of shared memory segments are done in bridge_brd_start and unmaped in bridge_brd_stop. NOTE: video sequencer reset is not done in dspbridge anymore, due to dspbridge does not manage it. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- drivers/dsp/bridge/core/_tiomap.h

[PATCH 0/9] dspbridge: iommu migration

2010-06-30 Thread Fernando Guzman Lugo
This set of patches remove the dspbridge custom mmu implementation and use iommu module instead. NOTE: in order to dspbridge can work properly the patch 0001-iovmm-add-superpages-support-to-fixed-da-address.patch is needed (specifically iommu_kmap calls need this patch). Fernando Guzman Lugo (9

[PATCH 3/9] dspbridge: rename bridge_brd_mem_map/unmap to a proper name

2010-06-30 Thread Fernando Guzman Lugo
Now these functions only map user space addresses to dsp virtual addresses, so now the functions have a more meaningful name Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/dspbridge/dspdefs.h | 44 drivers/dsp/bridge/core/_tiomap.h

[PATCH 7/9] dspbridge: move all iommu related code to a new file

2010-06-30 Thread Fernando Guzman Lugo
This patch moves all the code related to iommu in the dsp-mmu.c file Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/dspbridge/dsp-mmu.h | 90 ++ arch/arm/plat-omap/include/dspbridge/dspdeh.h |1 - drivers/dsp/bridge/Makefile

[PATCH 8/9] dspbridge: add map support for big buffers

2010-06-30 Thread Fernando Guzman Lugo
due to a restriction in scatter gather lists, it can not be created a list for a buffer bigger than 1MB. This patch is spliting big mappings into 1MB mappings. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/dspbridge/dsp-mmu.h |2 +- drivers/dsp/bridge

[PATCH 9/9] dspbridge: cleanup bridge_dev_context and cfg_hostres structures

2010-06-30 Thread Fernando Guzman Lugo
this patch cleans up cfg_hostres and bridge_dev_context structures of custom mmu code not needed anymore. Signed-off-by: Fernando Guzman Lugo x0095...@ti.com --- arch/arm/plat-omap/include/dspbridge/cfgdefs.h |1 - drivers/dsp/bridge/core/_tiomap.h |5 - drivers/dsp

  1   2   >