[PATCH 4/7] omap: iommu: PREFETCH_IOTLB cleanup

2011-08-17 Thread Ohad Ben-Cohen
prefetch_iotlb_entry to better reflect the purpose of that function. Signed-off-by: Ohad Ben-Cohen --- drivers/iommu/omap-iommu.c | 18 +- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c index ed81977..

[PATCH 3/7] omap: iommu: stop exporting local functions

2011-08-17 Thread Ohad Ben-Cohen
Stop exporting functions that are used only within the iommu driver itself. Eventually OMAP's iommu driver should only expose API via the generic IOMMU framework. Signed-off-by: Ohad Ben-Cohen --- arch/arm/plat-omap/include/plat/iommu.h |8 drivers/iommu/omap-io

[PATCH 2/7] omap: iommu/iovmm: move to dedicated iommu folder

2011-08-17 Thread Ohad Ben-Cohen
th OMAP's iommu). Eventually, iovmm will be completely replaced with the generic, iommu-based, dma-mapping API. Signed-off-by: Ohad Ben-Cohen --- arch/arm/plat-omap/Kconfig | 14 -- arch/arm/plat-omap/Makefile|2 -- arch/arm/pl

[PATCH 1/7] omap: iommu: migrate to the generic IOMMU API

2011-08-17 Thread Ohad Ben-Cohen
on't break. The plan is to eventually remove iovmm completely by replacing it with the (upcoming) IOMMU-based DMA-API. Tested on OMAP3 (with omap3isp) and OMAP4 (with rpmsg/remoteproc). Signed-off-by: Ohad Ben-Cohen --- arch/arm/plat-omap/Kconfig |4 +- arch/arm/plat-omap/inclu

[PATCH 0/7] omap: iommu migration, relocation and cleanups

2011-08-17 Thread Ohad Ben-Cohen
es its entire functionality via the generic IOMMU API). 2) omap-iovmm is removed. Changes: 1. Migrate iommu, iovmm and omap3isp in a single patch for bisectibility sake. 2. Apply Laurent Pinchart's comments (thanks Laurent!) 3. Rebase to 3.1-rc2 Ohad Ben-Cohen (7): omap: iommu: migrate

Re: Oops on ehci_hcd when booting 3.0.0-rc2 on panda

2011-08-11 Thread Ohad Ben-Cohen
+ Paul, Benoit, Rajendra On Tue, Aug 9, 2011 at 2:26 PM, Luciano Coelho wrote: > I'm again getting a very similar oops with 3.1-rc1 on my pandaboard: > > [    2.054351] usbcore: registered new interface driver cdc_ncm > [    2.061431] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver > [

Re: [RFC 7/8] drivers: introduce rpmsg, a remote-processor messaging bus

2011-07-18 Thread Ohad Ben-Cohen
Hi Pavel, On Thu, Jun 9, 2011 at 8:12 PM, Pavel Machek wrote: > So this is basically networking... right? Why not implement it as > sockets? (accept, connect, read, write)? This patch focuses on adding the core rpmsg kernel infrastructure. The next step, after getting the basic stuff in, would b

Re: [RFC 7/8] drivers: introduce rpmsg, a remote-processor messaging bus

2011-07-01 Thread Ohad Ben-Cohen
On Wed, Jun 29, 2011 at 6:43 PM, Grant Likely wrote: > So you are right that device_unregister drops the refcount to zero, > but the code still needs to be fixed to not call kfree() directly. Good point, thanks ! > It also looks like rpmsg_destroy_channel() needs to be fixed to remove > the kfre

Re: [GIT PULL] omap iommu fixes for v3.0-rc

2011-07-01 Thread Ohad Ben-Cohen
On Fri, Jul 1, 2011 at 10:00 AM, Tony Lindgren wrote: > These look like real fixes, but can you please update the commits > with something like "This fixes an issue with foo when doing bar". Done, please tell me if it's OK now. > Otherwise it's easy to claim that these are "fixes for features th

[GIT PULL] omap iommu fixes for v3.0-rc

2011-06-30 Thread Ohad Ben-Cohen
tory at: git://github.com/ohadbc/omap-iommu.git for-tony Ohad Ben-Cohen (2): OMAP4: iommu: fix clock name omap: iovmm: s/sg_dma_len(sg)/sg->length/ Suman Anna (1): omap: iommu: fix pte attributes for super section arch/arm/mach-omap2/iommu2.c |4 ++-- arch/arm/mach-

Re: [linux-pm] runtime PM usage_count during driver_probe_device()?

2011-06-30 Thread Ohad Ben-Cohen
On Fri, Jul 1, 2011 at 3:33 AM, Rafael J. Wysocki wrote: > In theory it is possible that a subsystem (e.g. bus type) will enable > runtime PM for devices without drivers and will (for example) put them > into low power states until the drivers are loaded.  Then, it makes > sense for the core to pr

Re: [RFC 2/8] remoteproc: add omap implementation

2011-06-29 Thread Ohad Ben-Cohen
On Tue, Jun 28, 2011 at 12:00 AM, Grant Likely wrote: > Very little for me to comment on here.  However, something I just > noticed.  Why is it necessary to pass in THIS_MODULE to the > rproc_register function?  Having a reference to the pdev gives you the > pointer to the driver, which has the TH

Re: [RFC 7/8] drivers: introduce rpmsg, a remote-processor messaging bus

2011-06-29 Thread Ohad Ben-Cohen
On Wed, Jun 29, 2011 at 2:59 PM, Arnd Bergmann wrote: > On Wednesday 29 June 2011, Ohad Ben-Cohen wrote: >> On Wed, Jun 29, 2011 at 2:44 AM, Randy Dunlap wrote: >> >> +hardware accelerators, and therefore are often used to offload >> >&g

Re: [RFC 7/8] drivers: introduce rpmsg, a remote-processor messaging bus

2011-06-28 Thread Ohad Ben-Cohen
Hi Randy, Thanks for your comments ! On Wed, Jun 29, 2011 at 2:44 AM, Randy Dunlap wrote: >> +hardware accelerators, and therefore are often used to offload cpu-intensive > > prefer:                                                           CPU- > throughout. Isn't that changing the meaning a b

Re: [RFC 7/8] drivers: introduce rpmsg, a remote-processor messaging bus

2011-06-28 Thread Ohad Ben-Cohen
On Wed, Jun 29, 2011 at 1:51 AM, Grant Likely wrote: > It's not the device_for_each_child() that you're 'putting' back from > here.  Its the original kref initialization when the device was > created. device_unregister() is already calling put_device(), doesn't that deal with the original kref in

Re: [RFC 7/8] drivers: introduce rpmsg, a remote-processor messaging bus

2011-06-28 Thread Ohad Ben-Cohen
Hi Grant, On Tue, Jun 28, 2011 at 1:21 AM, Grant Likely wrote: > Nice patch.  I'm quite thrilled to see this implemented.  Some > comments below, but otherwise I think it looks pretty good. Thanks ! >> +source "drivers/virtio/Kconfig" > > What happens when kvm and rpmsg both get enabled on the

Re: [RFC 1/8] drivers: add generic remoteproc framework

2011-06-28 Thread Ohad Ben-Cohen
On Tue, Jun 28, 2011 at 2:29 AM, Russell King - ARM Linux wrote: > (Don't have the original message to reply to...) Sorry about that. My recent emails to linux-arm-kernel were bounced with a "Message has a suspicious header" reason. not sure what am I doing wrong.. > Do we really want to end up

Re: [RFC 1/8] drivers: add generic remoteproc framework

2011-06-28 Thread Ohad Ben-Cohen
Hi Grant, Thanks a lot for the exhaustive review and comments ! On Mon, Jun 27, 2011 at 11:49 PM, Grant Likely wrote: >> +     my_rproc = rproc_get("ipu"); > > I tend to be suspicious of apis whose primary interface is by-name > lookup.  It works fine when the system is small, but it can get > u

Re: [RFC 0/8] Introducing a generic AMP/IPC framework

2011-06-28 Thread Ohad Ben-Cohen
On Tue, Jun 28, 2011 at 12:22 AM, Grosen, Mark wrote: > 2. We added a special section (resource table) that is interpreted as part > of the loading process. The tool that generates our simple format just > recognizes a named section (".resource_table"), so perhaps that could be > done with the PIL

Re: [RFC 0/8] Introducing a generic AMP/IPC framework

2011-06-25 Thread Ohad Ben-Cohen
Hi Stephen, On Fri, Jun 24, 2011 at 11:16 PM, Stephen Boyd wrote: > This sounds a lot like SMD (shared memory driver) on MSM. The main > difference I see is that SMD uses the platform bus instead of the virtio > bus and it has its own protocol for channel allocation. Yeah, virtio is a key factor

Re: [RFC 1/8] drivers: add generic remoteproc framework

2011-06-22 Thread Ohad Ben-Cohen
Hi Randy, On Wed, Jun 22, 2011 at 8:55 PM, Randy Dunlap wrote: > On Tue, 21 Jun 2011 10:18:27 +0300 Ohad Ben-Cohen wrote: > > Hi, > Just a few minor nits inline... Thanks! Ohad. -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body

Re: [RFC 0/8] Introducing a generic AMP/IPC framework

2011-06-22 Thread Ohad Ben-Cohen
On Wed, Jun 22, 2011 at 4:05 PM, Arnd Bergmann wrote: > Ok, I see. In that case I agree that using debugfs is fine, but I would > recommend trying to use fewer macros and just open-coding the file > operations for better readability. Sure thing. It didn't end up saving much code eventually, too,

Re: [RFC 0/8] Introducing a generic AMP/IPC framework

2011-06-22 Thread Ohad Ben-Cohen
Hi Arnd, On Tue, Jun 21, 2011 at 5:20 PM, Arnd Bergmann wrote: > This looks really nice overall, but I don't currently have time for a > more in-depth review. My feeling is that you are definitely on the right > track here, and the plans you list as TODO to continue are all good. Thanks ! > One

Re: [RFC 2/8] remoteproc: add omap implementation

2011-06-22 Thread Ohad Ben-Cohen
On Wed, Jun 22, 2011 at 1:05 PM, Will Newton wrote: > On Tue, Jun 21, 2011 at 8:18 AM, Ohad Ben-Cohen wrote: > >> +/* bootaddr isn't needed for the dual M3's */ >> +static inline int omap_rproc_start(struct rproc *rproc, u64 bootaddr) > >> +static inline in

Re: [RFC 7/8] drivers: introduce rpmsg, a remote-processor messaging bus

2011-06-22 Thread Ohad Ben-Cohen
On Wed, Jun 22, 2011 at 5:42 AM, Rusty Russell wrote: > On Tue, 21 Jun 2011 10:18:33 +0300, Ohad Ben-Cohen wrote: >> Add a virtio-based IPC bus, which enables kernel users to communicate >> with remote processors over shared memory using a simple messaging >> protocol. &

Re: [RFC 0/8] Introducing a generic AMP/IPC framework

2011-06-21 Thread Ohad Ben-Cohen
On Tue, Jun 21, 2011 at 10:50 AM, Ohad Ben-Cohen wrote: > root@omap4430-panda:~# cat /debug/remoteproc/omap-rproc.1/state > running (2) At this point, the two remote M3 cores also start dumping trace logs to shared memory buffers, which are exposed by debugfs entries: root@omap4430-panda:

[RFC 1/8] drivers: add generic remoteproc framework

2011-06-21 Thread Ohad Ben-Cohen
erved memory and handling IOMMUs, consider moving to the generic DMA mapping API (with a CMA backend) Signed-off-by: Ohad Ben-Cohen --- Documentation/remoteproc.txt| 170 + drivers/Kconfig |2 + drivers/Makefile|1 + drivers/remoteproc/Kconf

[RFC 2/8] remoteproc: add omap implementation

2011-06-21 Thread Ohad Ben-Cohen
specific component. This patch depends on OMAP's IOMMU API migration, as posted here: https://lkml.org/lkml/2011/6/2/369 [o...@wizery.com: commit log, generic iommu api migration, refactoring, cleanups] Signed-off-by: Guzman Lugo, Fernando Signed-off-by: Ohad Ben-Cohen --- arch/arm/pla

[RFC 4/8] omap: add remoteproc devices

2011-06-21 Thread Ohad Ben-Cohen
From: Guzman Lugo, Fernando Add omap remoteproc devices for the ipu and dsp remote processors. TODO: - rework to use CMA instead of reserving memory at boot [o...@wizery.com: commit log, refactored and simplified, still wip] Signed-off-by: Guzman Lugo, Fernando Signed-off-by: Ohad Ben-Cohen

[RFC 6/8] davinci: da850: add remoteproc dsp device

2011-06-21 Thread Ohad Ben-Cohen
From: Mark Grosen Add davinci remoteproc device for the da850's C674x dsp remote processor, and support it on the da850-evm and omapl138-hawk boards. Signed-off-by: Mark Grosen Signed-off-by: Ohad Ben-Cohen --- It'd be nice to split this patch to the different components it changes

[RFC 8/8] rpmsg: add omap host backend

2011-06-21 Thread Ohad Ben-Cohen
s omap implementation in a dedicated drivers/rpmsg/host folder, with the intention of stacking different rpmsg host implementations in one place. Signed-off-by: Ohad Ben-Cohen --- drivers/rpmsg/Kconfig |2 + drivers/rpmsg/Makefile |2 + drivers/rpmsg/host/Kconfig

[RFC 5/8] remoteproc: add davinci implementation

2011-06-21 Thread Ohad Ben-Cohen
From: Mark Grosen Add remoteproc implementation for da850, so we can boot its DSP. Signed-off-by: Mark Grosen Signed-off-by: Ohad Ben-Cohen --- arch/arm/mach-davinci/include/mach/remoteproc.h | 28 + drivers/remoteproc/Kconfig | 16 +++ drivers/remoteproc

[RFC 3/8] omap: add carveout memory support for remoteproc

2011-06-21 Thread Ohad Ben-Cohen
;). This patch also breaks tidspbridge. Use it only if you want to try out rpmsg/remoteproc on OMAP4, and you don't care too much about multi-board kernels. Signed-off-by: Ohad Ben-Cohen --- arch/arm/plat-omap/Kconfig|8 arch/arm/plat-omap/devices.c | 14

[RFC 0/8] Introducing a generic AMP/IPC framework

2011-06-21 Thread Ohad Ben-Cohen
d not wait until everything is finished. Guzman Lugo, Fernando (2): remoteproc: add omap implementation omap: add remoteproc devices Mark Grosen (2): remoteproc: add davinci implementation davinci: da850: add remoteproc dsp device Ohad Ben-Cohen (4): drivers: add generic remoteproc frame

[PATCH] OMAP4: iommu: fix clock name

2011-06-15 Thread Ohad Ben-Cohen
0e43327 "OMAP4: clock: Fix clock names and align with hwmod names" renamed ducati_ick to ipu_fck. Update OMAP4's iommu_device accordingly, so that omap_iommu_probe doesn't break when calling clk_get. Signed-off-by: Ohad Ben-Cohen --- arch/arm/mach-omap2/omap-iommu.c |2

Re: [PATCH v2 0/4] drivers/iommu/ relocations

2011-06-14 Thread Ohad Ben-Cohen
On Tue, Jun 14, 2011 at 1:29 PM, Roedel, Joerg wrote: > Btw, what tree do these patches apply against? v3.0-rc2 > I tried to apply them to v3.0-rc3 and got conflicts. What kind of conflicts ? I just tried rc3 and it applied cleanly. Just in case, I'm attaching the patches too. Tell me if you

Re: [PATCH 0/2] OMAP3 IOMMU fixes

2011-06-13 Thread Ohad Ben-Cohen
On Mon, Jun 13, 2011 at 7:41 PM, Laurent Pinchart wrote: >> > > Laurent Pinchart (2): ... >> > >   omap3: iovmm: Support non page-aligned buffers in iommu_vmap ... > OK. Ohad, could you please apply this patch to your tree and submit it with > the whole series for 3.1 ? Sure I can. I'll make sure

[PATCH v2 4/4] x86/ia64: intel-iommu: move to drivers/iommu/

2011-06-10 Thread Ohad Ben-Cohen
. This is handled in this patch, too. As suggested, also drop DMAR's EXPERIMENTAL tag while we're at it. Compile-tested on x86_64. Signed-off-by: Ohad Ben-Cohen --- sorry, not tested on ia64 (not even compiled) arch/ia64/Kconfig | 21 - arch/x

[PATCH v2 3/4] x86: amd_iommu: move to drivers/iommu/

2011-06-10 Thread Ohad Ben-Cohen
This should ease finding similarities with different platforms, with the intention of solving problems once in a generic framework which everyone can use. Compile-tested on x86_64. Signed-off-by: Ohad Ben-Cohen --- arch/x86/Kconfig | 28

[PATCH v2 2/4] msm: iommu: move to drivers/iommu/

2011-06-10 Thread Ohad Ben-Cohen
This should ease finding similarities with different platforms, with the intention of solving problems once in a generic framework which everyone can use. Compile-tested for MSM8X60. Signed-off-by: Ohad Ben-Cohen --- arch/arm/mach-msm/Kconfig | 16

[PATCH v2 1/4] drivers: iommu: move to a dedicated folder

2011-06-10 Thread Ohad Ben-Cohen
differently (or duplicated) in each driver. Signed-off-by: Ohad Ben-Cohen --- arch/arm/mach-msm/Kconfig |3 --- arch/ia64/Kconfig |3 --- arch/x86/Kconfig|5 ++--- drivers/Kconfig |2 ++ drivers/Makefile|1 + drivers

[PATCH v2 0/4] drivers/iommu/ relocations

2011-06-10 Thread Ohad Ben-Cohen
x27;s iommu_dev as well (David Brown) * dmar: depend on x86/ia64, fix ia64 Kconfig, drop EXPERIMENTAL (Chris Wright) Ohad Ben-Cohen (4): drivers: iommu: move to a dedicated folder msm: iommu: move to drivers/iommu/ x86: amd_iommu: move to drivers/iommu/ x86/ia64: intel-iommu: move to drivers/iom

Re: [PATCH 2/4] msm: iommu: move to drivers/iommu/

2011-06-10 Thread Ohad Ben-Cohen
On Thu, Jun 9, 2011 at 1:27 AM, David Brown wrote: > Moving the driver is good.  I'm wondering what we should do with > iommu_dev.c, though.  Wouldn't it make sense to move this file as well? Yeah, it does make sense. I'll move that one too, thanks. -- To unsubscribe from this list: send the line

Re: [RFC 2/6] omap: iovmm: generic iommu api migration

2011-06-08 Thread Ohad Ben-Cohen
On Wed, Jun 8, 2011 at 1:46 PM, Laurent Pinchart wrote: > On Tuesday 07 June 2011 15:46:26 Ohad Ben-Cohen wrote: >> Where do you take care of those potential offsets today ? Or do you >> simply ignore the offsets and map the entire page ? > > Here http://marc.info/?l=linux-o

Re: [PATCH 4/4] x86: intel-iommu: move to drivers/iommu/

2011-06-08 Thread Ohad Ben-Cohen
On Wed, Jun 8, 2011 at 8:47 PM, Chris Wright wrote: > You may want to further restrict to x86 and ia64 > And I think you'll need to fixup arch/ia64/Kconfig > > BTW, I think EXPERIMENTAL can be dropped by now. Sounds all good, thanks a lot ! -- To unsubscribe from this list: send the line "unsubsc

Re: [PATCH 0/4] drivers/iommu/ relocations

2011-06-08 Thread Ohad Ben-Cohen
On Wed, Jun 8, 2011 at 4:05 PM, Matthew Wilcox wrote: > You've missed at least parisc, ia64, alpha, sparc, powerpc and sh which > have IOMMUs. None of these seem to call register_iommu. > Not that they necessarily all need to be moved across in > one patchset, but saying "all iommu drivers" is c

Re: [PATCH 4/4] x86: intel-iommu: move to drivers/iommu/

2011-06-08 Thread Ohad Ben-Cohen
On Wed, Jun 8, 2011 at 12:17 PM, David Woodhouse wrote: > At least iova.o wants to go with it. That's one of the parts that is a > candidate for harmonisation across IOMMU implementations, either by > removing it or by having others use it too. It's how we allocate virtual > I/O address space. > >

[PATCH 2/4] msm: iommu: move to drivers/iommu/

2011-06-08 Thread Ohad Ben-Cohen
This should ease finding similarities with different platforms, with the intention of solving problems once in a generic framework which everyone can use. Compile-tested for MSM8X60. Signed-off-by: Ohad Ben-Cohen --- arch/arm/mach-msm/Kconfig | 12 arch

[PATCH 1/4] drivers: iommu: move to a dedicated folder

2011-06-08 Thread Ohad Ben-Cohen
differently (or duplicated) in each driver. Signed-off-by: Ohad Ben-Cohen --- arch/arm/mach-msm/Kconfig |3 --- arch/x86/Kconfig|5 ++--- drivers/Kconfig |2 ++ drivers/Makefile|1 + drivers/base/Makefile |1 - drivers

[PATCH 0/4] drivers/iommu/ relocations

2011-06-08 Thread Ohad Ben-Cohen
, in a generic framework, which everyone can use. OMAP's iommu will be moved too as soon as it's migrated. For previous discussions on this, please see: https://lkml.org/lkml/2011/6/2/369 Ohad Ben-Cohen (4): drivers: iommu: move to a dedicated folder msm: iommu: move to drivers/io

[PATCH 4/4] x86: intel-iommu: move to drivers/iommu/

2011-06-08 Thread Ohad Ben-Cohen
. This is handled in this patch, too. Compile-tested on x86_64. Signed-off-by: Ohad Ben-Cohen --- arch/x86/Kconfig | 11 --- drivers/iommu/Kconfig| 11 +++ drivers/iommu/Makefile |1 + drivers/{pci => iommu}/intel-iomm

[PATCH 3/4] x86: amd_iommu: move to drivers/iommu/

2011-06-08 Thread Ohad Ben-Cohen
This should ease finding similarities with different platforms, with the intention of solving problems once in a generic framework which everyone can use. Compile-tested on x86_64. Signed-off-by: Ohad Ben-Cohen --- arch/x86/Kconfig | 28

[PATCH] omap: iovmm: s/sg_dma_len(sg)/sg->length/

2011-06-07 Thread Ohad Ben-Cohen
iovmm is erroneously using sg_dma_len with unmapped (DMA API-wise) SG entries, and will break if CONFIG_NEED_SG_DMA_LENGTH is enabled. Fix that by using sg->length instead. Reported-by: Russell King Signed-off-by: Ohad Ben-Cohen --- arch/arm/plat-omap/iovmm.c |6 +++--- 1 files changed

Re: [RFC 2/6] omap: iovmm: generic iommu api migration

2011-06-07 Thread Ohad Ben-Cohen
Hi Laurent, On Tue, Jun 7, 2011 at 2:26 PM, Laurent Pinchart wrote: >> Right now we have a BUG_ON if pa is unaligned, but that can be changed >> if needed (do we want it to handle offsets ?). > > At least for the OMAP3 ISP we need to, as video buffers don't necessarily > start on page boundaries.

Re: [RFC 1/6] omap: iommu: generic iommu api migration

2011-06-07 Thread Ohad Ben-Cohen
On Tue, Jun 7, 2011 at 2:40 PM, Laurent Pinchart wrote: > My point is that if the allocator guarantees the alignment (not as a side > effect of the implementation, but per its API) there's no need to check it > again. As the alignement is required, we need an allocator that guarantees it > anyway.

Re: [RFC 1/6] omap: iommu: generic iommu api migration

2011-06-07 Thread Ohad Ben-Cohen
Hi Laurent, On Tue, Jun 7, 2011 at 12:22 PM, Laurent Pinchart wrote: >> +     BUG_ON(!IS_ALIGNED((long)omap_domain->pgtable, IOPGD_TABLE_SIZE)); > > Either __get_free_pages() guarantees that the allocated memory will be aligned > on an IOPGD_TABLE_SIZE boundary, in which case the BUG_ON() is unne

Re: [RFC 0/6] iommu: generic api migration and grouping

2011-06-07 Thread Ohad Ben-Cohen
On Tue, Jun 7, 2011 at 12:58 PM, Roedel, Joerg wrote: > Btw, mind to split out your changes which move the iommu-api into > drivers/iommu? I can merge them meanwhile into my iommu tree and start > working on a proposal for the generic large page-size support. Sure, that will be great. Thanks! --

Re: [RFC 2/6] omap: iovmm: generic iommu api migration

2011-06-07 Thread Ohad Ben-Cohen
Hi Laurent, On Tue, Jun 7, 2011 at 12:05 PM, Laurent Pinchart wrote: > pgsz isn't used anymore, you can remove it. Ok. >> +             order = get_order(bytes); > > Does iommu_map() handle offsets correctly, or does it expect pa to be aligned > to an order (or other) boundary ? Right now we h

Re: [RFC 0/6] iommu: generic api migration and grouping

2011-06-07 Thread Ohad Ben-Cohen
On Tue, Jun 7, 2011 at 10:52 AM, Roedel, Joerg wrote: > Yup. Btw, is there any IOMMU hardware which supports non-natural > alignment? In this case we need to expose these requirements somehow. Not sure there are. Let's start with natural alignment, and extend it only if someone with additional re

Re: [RFC 0/6] iommu: generic api migration and grouping

2011-06-06 Thread Ohad Ben-Cohen
On Mon, Jun 6, 2011 at 10:20 PM, Roedel, Joerg wrote: > Well, it certainly makes sense to have a single implementation for this. > But I want to hide this complexity to the user of the IOMMU-API. The > best choice is to put this into the layer between the IOMMU-API and the > backend implementation

Re: [RFC 0/6] iommu: generic api migration and grouping

2011-06-06 Thread Ohad Ben-Cohen
On Mon, Jun 6, 2011 at 6:35 PM, Roedel, Joerg wrote: > On Mon, Jun 06, 2011 at 11:15:30AM -0400, Ohad Ben-Cohen wrote: > >> This is insufficient; users need somehow to tell what page sizes are >> supported by the underlying hardware (we can't assume host page-sizes, >&

Re: [RFC 0/6] iommu: generic api migration and grouping

2011-06-06 Thread Ohad Ben-Cohen
On Mon, Jun 6, 2011 at 12:10 PM, Arnd Bergmann wrote: >> I'd still prefer us to take small steps here, and not gate the omap >> iommu cleanups with Marek's generic dma_map_ops work though. Let's go >> forward and migrate omap's iommu to the generic iommu API, so new code >> will be able to use it

Re: [RFC 0/6] iommu: generic api migration and grouping

2011-06-06 Thread Ohad Ben-Cohen
Hi Joerg, On Mon, Jun 6, 2011 at 1:09 PM, Roedel, Joerg wrote: > The IOMMU-API already supports multiple page-sizes. See the > 'order'-parameter of the map/unmap functions. This is insufficient; users need somehow to tell what page sizes are supported by the underlying hardware (we can't assume

Re: [RFC 0/6] iommu: generic api migration and grouping

2011-06-05 Thread Ohad Ben-Cohen
Hi Kyungmin, On Fri, Jun 3, 2011 at 2:57 AM, Kyungmin Park wrote: > Please see the RFC patch, ARM: DMA-mapping & IOMMU integration > http://www.spinics.net/lists/linux-mm/msg19856.html Marek's work somehow escaped me, thanks for the pointers ! Ohad. -- To unsubscribe from this list: send the li

Re: [RFC 0/6] iommu: generic api migration and grouping

2011-06-05 Thread Ohad Ben-Cohen
Hi Arnd, On Fri, Jun 3, 2011 at 6:53 PM, Arnd Bergmann wrote: > I think the future of iovmm is looking not so good. Marek Szyprowski > is working on a generic version of the dma-mapping API (dma_map_ops) > based on the iommu API. Nice! I missed Marek's work somehow. > As far as I can tell, once

[RFC 2/6] omap: iovmm: generic iommu api migration

2011-06-02 Thread Ohad Ben-Cohen
calls omap-specific iommu map/unmap api). Further generalizing of iovmm (or complete removal) should take place together with broader plans of providing a generic virtual memory manager and allocation framework (de-coupled from specific mappers). Signed-off-by: Ohad Ben-Cohen --- arch/arm/pl

[RFC 3/6] media: omap3isp: generic iommu api migration

2011-06-02 Thread Ohad Ben-Cohen
ual memory manager framework). Signed-off-by: Ohad Ben-Cohen --- drivers/media/video/omap3isp/isp.c | 41 +- drivers/media/video/omap3isp/isp.h |3 ++ drivers/media/video/omap3isp/ispccdc.c | 16 ++-- drivers/media/video/omap3isp/ispstat

[RFC 5/6] omap: iommu/iovmm: move to dedicated iommu folder

2011-06-02 Thread Ohad Ben-Cohen
the omap iommu), and exposing it will ease its generalization, consolidation, or removal (once a generic virtual memory manager and allocator would materialize). Move omap's iommu debug driver to the generic folder as well, for the same reasons. Signed-off-by: Ohad Ben-Cohen --- arch/a

[RFC 6/6] msm: iommu: move to dedicated iommu drivers folder

2011-06-02 Thread Ohad Ben-Cohen
This should ease finding similarities with other platforms, with the intention of solving problems once in a generic framework which everyone can use. Signed-off-by: Ohad Ben-Cohen --- arch/arm/mach-msm/Kconfig | 12 arch/arm/mach-msm/Makefile

[RFC 4/6] drivers: iommu: move to a dedicated folder

2011-06-02 Thread Ohad Ben-Cohen
differently (or duplicated) in each driver. Signed-off-by: Ohad Ben-Cohen --- arch/arm/mach-msm/Kconfig |3 --- arch/arm/plat-omap/Kconfig |3 --- arch/x86/Kconfig|5 ++--- drivers/Kconfig |2 ++ drivers/Makefile|1 + drivers

[RFC 1/6] omap: iommu: generic iommu api migration

2011-06-02 Thread Ohad Ben-Cohen
Migrate OMAP's iommu to the generic iommu api, so users can stay generic, and non-omap-specific code can be removed and eventually consolidated into a generic framework. Tested on both OMAP3 and OMAP4. Signed-off-by: Ohad Ben-Cohen --- arch/arm/plat-omap/Kconfig |7 +-

[RFC 0/6] iommu: generic api migration and grouping

2011-06-02 Thread Ohad Ben-Cohen
squashing the first three patches) - Based on and tested with 3.0-rc1 - OMAP's iommu code was tested on both OMAP3 and OMAP4 - omap3isp code was tested with a sensor-less OMAP3 (memory-to-memory only) (thanks Laurent Pinchart for showing me the magic needed to test omap3isp :) - MSM code wa

[PATCH] media: omap3isp: fix a pontential NULL deref

2011-06-01 Thread Ohad Ben-Cohen
Fix a potential NULL pointer dereference by skipping registration of external entities in case none are provided. This is useful at least when testing mere memory-to-memory scenarios. Signed-off-by: Ohad Ben-Cohen --- drivers/media/video/omap3isp/isp.c |2 +- 1 files changed, 1 insertions

Re: [PATCH] media: omap3isp: fix format string warning

2011-05-30 Thread Ohad Ben-Cohen
On Mon, May 30, 2011 at 5:57 PM, Laurent Pinchart wrote: > Thanks for the patch, but I've already applied something similar to my tree. > Sorry :-) np, thanks. I'm just playing with omap3isp a bit and wanted to get rid of that "hey what did I do wrong this time" feeling every time I recompiled it

[PATCH] media: omap3isp: fix format string warning

2011-05-29 Thread Ohad Ben-Cohen
Trivially fix this: drivers/media/video/omap3isp/isp.c: In function 'isp_isr_dbg': drivers/media/video/omap3isp/isp.c:394: warning: zero-length gnu_printf format string Signed-off-by: Ohad Ben-Cohen --- drivers/media/video/omap3isp/isp.c |2 +- 1 files changed, 1 insert

Re: [GIT PULL] omap changes for v2.6.39 merge window

2011-03-18 Thread Ohad Ben-Cohen
N'T ASK IT! > > No problem, let's make it depends on OMAP4. (patch also attached in case gmail eats my whitespace) >From d086e8f994b9272f8c999af0a4d32d870749c77a Mon Sep 17 00:00:00 2001 From: Ohad Ben-Cohen Date: Fri, 18 Mar 2011 10:01:11 +0200 Subject: [PATCH] hwspinlock: de

[PATCH] omap: zoom: host should not pull up wl1271's irq line

2011-03-14 Thread Ohad Ben-Cohen
The wl1271's irq line is completely controlled by the 1271 device, and the host does not not need to pull it up. While there's no functional effect, letting the host pull this line up is just redundant, and wastes power. Signed-off-by: Ohad Ben-Cohen --- arch/arm/mach-omap2/board-zoo

Re: [PATCH] staging: tidspbridge: protect dmm_map properly

2011-03-07 Thread Ohad Ben-Cohen
On Mon, Mar 7, 2011 at 8:02 PM, Felipe Contreras wrote: > On Mon, Dec 20, 2010 at 7:12 PM, Felipe Contreras > wrote: >> We need to protect not only the dmm_map list, but the individual >> map_obj's, otherwise, we might be building the scatter-gather list with >> garbage. So, use the existing proc

Re: Re: Ping-> Subject: [PATCH] omap: omap3evm: add support for the WL12xx WLAN module to the omap3evm

2011-02-24 Thread Ohad Ben-Cohen
Hi Eyal, On Thu, Feb 24, 2011 at 1:47 PM, Tony Lindgren wrote: > Sorry still can't get this one to apply. Can you please rebase > this on top of the current omap-for-linus branch? ... >> +#include ... >> +struct wl12xx_platform_data omap3evm_wlan_data __initdata = { >> +       .irq = OMAP_GPIO_I

Re: [PATCH 1/5] omap: panda: wlan board muxing

2011-02-13 Thread Ohad Ben-Cohen
Hi Pandu, On Mon, Feb 14, 2011 at 9:19 AM, wrote: > +       /* WLAN IRQ - GPIO 53 */ > +       OMAP4_MUX(GPMC_NCS3, OMAP_MUX_MODE3 | OMAP_PIN_INPUT_PULLUP), Actually we don't need to pull up the IRQ line - it is always held by the 1271 device, and there's no need for the host to pull it up (wa

[PATCH v5 4/4] omap: add hwspinlock device

2011-02-02 Thread Ohad Ben-Cohen
: Hari Kanigeri Signed-off-by: Ohad Ben-Cohen Cc: Benoit Cousson Cc: Kevin Hilman Cc: Paul Walmsley Acked-by: Tony Lindgren --- arch/arm/mach-omap2/Makefile |1 + arch/arm/mach-omap2/hwspinlock.c | 63 ++ 2 files changed, 64 insertions(+), 0

[PATCH v5 3/4] OMAP4: hwmod data: Add hwspinlock

2011-02-02 Thread Ohad Ben-Cohen
From: Benoit Cousson Add hwspinlock hwmod data for OMAP4 chip Signed-off-by: Cousson, Benoit Signed-off-by: Hari Kanigeri Signed-off-by: Ohad Ben-Cohen Cc: Paul Walmsley Acked-by: Tony Lindgren --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 63 1 files

[PATCH v5 1/4] drivers: hwspinlock: add framework

2011-02-02 Thread Ohad Ben-Cohen
Add a platform-independent hwspinlock framework. Hardware spinlock devices are needed, e.g., in order to access data that is shared between remote processors, that otherwise have no alternative mechanism to accomplish synchronization and mutual exclusion operations. Signed-off-by: Ohad Ben-Cohen

[PATCH v5 2/4] drivers: hwspinlock: add OMAP implementation

2011-02-02 Thread Ohad Ben-Cohen
hwspinlock framework, tidy up] Signed-off-by: Simon Que Signed-off-by: Hari Kanigeri Signed-off-by: Krishnamoorthy, Balaji T Signed-off-by: Ohad Ben-Cohen Cc: Benoit Cousson Cc: Kevin Hilman Cc: Grant Likely Cc: Arnd Bergmann Cc: Paul Walmsley Cc: Russell King Acked-by: Tony Lindgren

[PATCH v5 0/4] Introduce hardware spinlock framework

2011-02-02 Thread Ohad Ben-Cohen
8917 [3] http://thread.gmane.org/gmane.linux.ports.arm.omap/39187 [4] http://thread.gmane.org/gmane.linux.ports.arm.omap/39365 [5] http://thread.gmane.org/gmane.linux.ports.arm.omap/39815 [6] http://thread.gmane.org/gmane.linux.ports.arm.omap/40901 Benoit Cousson (1): OMAP4: hwmod data: Add hwspinlock O

Re: Setting MMC_CAP_POWER_OFF_CARD on mmc2 leads to filesystem problems on mmc1

2011-02-02 Thread Ohad Ben-Cohen
On Wed, Feb 2, 2011 at 2:11 AM, Tony Lindgren wrote: > * Ohad Ben-Cohen [110122 07:47]: >> On Sat, Jan 22, 2011 at 5:30 PM, Koen Kooi >> wrote: >> > That was indeed the problem, not I get: >> > >> > [   35.417053] wl1271: firmware booted (Rev

Re: [PATCH v4 1/4] drivers: hwspinlock: add framework

2011-02-01 Thread Ohad Ben-Cohen
On Tue, Feb 1, 2011 at 9:40 AM, Andrew Morton wrote: > On Tue, 1 Feb 2011 09:36:22 +0200 Ohad Ben-Cohen wrote: > >> On Tue, Feb 1, 2011 at 8:38 AM, Andrew Morton >> wrote: >> >> I'll do a quick respin of the patches with that and the >> >> hw

Re: [PATCH v4 1/4] drivers: hwspinlock: add framework

2011-01-31 Thread Ohad Ben-Cohen
On Tue, Feb 1, 2011 at 8:38 AM, Andrew Morton wrote: >> I'll do a quick respin of the patches with that and the >> hwspinlock_internal.h comment above. > > OK.. > > The patch series looks OK to me. Can I add your Acked-by on the non-omap parts when I respin the series ? Thanks, Ohad. -- To unsub

Re: [PATCH v4 1/4] drivers: hwspinlock: add framework

2011-01-31 Thread Ohad Ben-Cohen
On Tue, Feb 1, 2011 at 1:38 AM, Andrew Morton wrote: > It's a little irritating having two hwspinlock.h's. > hwspinlock_internal.h wold be a conventional approach.  But it's not a > big deal. ... >> +/** >> + * __hwspin_lock_timeout() - lock an hwspinlock with timeout limit >> + * @hwlock: the hw

[PATCH v4 4/4] omap: add hwspinlock device

2011-01-31 Thread Ohad Ben-Cohen
: Hari Kanigeri Signed-off-by: Ohad Ben-Cohen Cc: Benoit Cousson Cc: Kevin Hilman Cc: Paul Walmsley Acked-by: Tony Lindgren --- arch/arm/mach-omap2/Makefile |1 + arch/arm/mach-omap2/hwspinlock.c | 63 ++ 2 files changed, 64 insertions(+), 0

[PATCH v4 3/4] OMAP4: hwmod data: Add hwspinlock

2011-01-31 Thread Ohad Ben-Cohen
From: Benoit Cousson Add hwspinlock hwmod data for OMAP4 chip Signed-off-by: Cousson, Benoit Signed-off-by: Hari Kanigeri Signed-off-by: Ohad Ben-Cohen Cc: Paul Walmsley Acked-by: Tony Lindgren --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 63 1 files

[PATCH v4 2/4] drivers: hwspinlock: add OMAP implementation

2011-01-31 Thread Ohad Ben-Cohen
hwspinlock framework, tidy up] Signed-off-by: Simon Que Signed-off-by: Hari Kanigeri Signed-off-by: Krishnamoorthy, Balaji T Signed-off-by: Ohad Ben-Cohen Cc: Benoit Cousson Cc: Kevin Hilman Cc: Grant Likely Cc: Arnd Bergmann Cc: Paul Walmsley Acked-by: Tony Lindgren --- drivers/hwspinlock

[PATCH v4 1/4] drivers: hwspinlock: add framework

2011-01-31 Thread Ohad Ben-Cohen
Add a platform-independent hwspinlock framework. Hardware spinlock devices are needed, e.g., in order to access data that is shared between remote processors, that otherwise have no alternative mechanism to accomplish synchronization and mutual exclusion operations. Signed-off-by: Ohad Ben-Cohen

[PATCH v4 0/4] Introduce hardware spinlock framework

2011-01-31 Thread Ohad Ben-Cohen
tp://thread.gmane.org/gmane.linux.ports.arm.omap/38917 [3] http://thread.gmane.org/gmane.linux.ports.arm.omap/39187 [4] http://thread.gmane.org/gmane.linux.ports.arm.omap/39365 [5] http://thread.gmane.org/gmane.linux.ports.arm.omap/39815 [6] http://thread.gmane.org/gmane.linux.ports.arm.omap/40901 Benoit Cousson (

Re: Setting MMC_CAP_POWER_OFF_CARD on mmc2 leads to filesystem problems on mmc1

2011-01-22 Thread Ohad Ben-Cohen
On Sat, Jan 22, 2011 at 5:30 PM, Koen Kooi wrote: > That was indeed the problem, not I get: > > [   35.417053] wl1271: firmware booted (Rev 6.1.0.0.343) > > and > > root@beagleboard-xm-next:~# ifconfig wlan0 hw eth 00:11:22:33:44:55 > root@beagleboard-xm-next:~# iwlist wlan0 scanning | grep ESSID

Re: Setting MMC_CAP_POWER_OFF_CARD on mmc2 leads to filesystem problems on mmc1

2011-01-22 Thread Ohad Ben-Cohen
Hi Koen, On Fri, Jan 21, 2011 at 4:49 PM, Luciano Coelho wrote: >> My patch basically does: >> >> --- a/arch/arm/mach-omap2/board-omap3beagle.c >> +++ b/arch/arm/mach-omap2/board-omap3beagle.c >> @@ -270,7 +270,7 @@ static struct omap2_hsmmc_info mmc[] = { >>        { >>                .name    

Re: [PATCH v3 0/4] Introduce hardware spinlock framework

2011-01-04 Thread Ohad Ben-Cohen
On Tue, Jan 4, 2011 at 10:19 PM, Andrew Morton wrote: >> > Acked-by: Tony Lindgren >> >> Can you please have a look at this patch set (see link no. [1] below) ? > > I looked - it looks reasonable.  This is exactly the wrong time to be > looking at large new patchsets - please refresh, retest and

Re: [PATCH] omap: boards w/ wl12xx should select REGULATOR_FIXED_VOLTAGE

2011-01-04 Thread Ohad Ben-Cohen
On Tue, Jan 4, 2011 at 9:17 PM, Tony Lindgren wrote: > * Ohad Ben-Cohen [110104 10:04]: >> On Wed, Nov 24, 2010 at 12:04 PM, Ohad Ben-Cohen wrote: >> > Power to the wl12xx wlan device is controlled by a fixed regulator. >> > >> > Boards that have the wl12xx s

Re: [PATCH] omap: boards w/ wl12xx should select REGULATOR_FIXED_VOLTAGE

2011-01-04 Thread Ohad Ben-Cohen
On Wed, Nov 24, 2010 at 12:04 PM, Ohad Ben-Cohen wrote: > Power to the wl12xx wlan device is controlled by a fixed regulator. > > Boards that have the wl12xx should select REGULATOR_FIXED_VOLTAGE so > users will not be baffled. > > Signed-off-by: Ohad Ben-Cohen > --- Hi T

Re: [PATCH v3 0/4] Introduce hardware spinlock framework

2011-01-04 Thread Ohad Ben-Cohen
Hi Andrew, On Sat, Dec 18, 2010 at 2:53 AM, Tony Lindgren wrote: > * Ohad Ben-Cohen [101216 13:34]: >> Tony, Andrew, can you please have a look ? >> >> Any comment or suggestion is appreciated. > > Looks sane to me from omap point of view and it seems the locks

<    1   2   3   4   5   6   7   8   9   >