Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
* [RFC/PATCH 0/3] omap3-iommu: cleanups and remote registration
@ 2009-05-16 10:05 Felipe Contreras
  2009-05-16 10:05 ` [RFC/PATCH 1/3] omap3-iommu: reorganize Felipe Contreras
  2009-05-16 16:36 ` [RFC/PATCH 0/3] omap3-iommu: cleanups and remote registration Russell King - ARM Linux
  0 siblings, 2 replies; 26+ messages in thread
From: Felipe Contreras @ 2009-05-16 10:05 UTC (permalink / raw)
  To: linux-omap
  Cc: Hiroshi DOYU, Hari Kanigeri, linux-arm-kernel, Felipe Contreras

This patch series cleanups up a bit the opap3-iommu device registration and
then allows registration from other parts of the code.

Currently the iva2 code (tidspbridge) is not using iommu, therefore it can't be
used as-is with the current omap iommu. By allowing devies to be registered
externaly (either isp, or iva2) this problem goes away.

Felipe Contreras (3):
  omap3-iommu: reorganize
  omap3-iommu: split init function into omap_iommu_add
  omap3-iommu: remote registration

 arch/arm/mach-omap2/omap3-iommu.c       |  130 ++++++++++++++-----------------
 arch/arm/plat-omap/include/mach/iommu.h |    2 +
 2 files changed, 62 insertions(+), 70 deletions(-)


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: [PATCH 3/6] omap iommu: omap3 iommu device registration
@ 2009-05-07 20:02 Felipe Contreras
  2009-05-07 20:11 ` [RFC/PATCH 0/3] omap3-iommu: cleanups and remote registration Felipe Contreras
  0 siblings, 1 reply; 26+ messages in thread
From: Felipe Contreras @ 2009-05-07 20:02 UTC (permalink / raw)
  To: Hiroshi DOYU
  Cc: linux-arm-kernel, linux-omap, h-kanigeri2, omar.ramirez,
	sakari.ailus, tony

On Wed, May 6, 2009 at 9:00 AM, Hiroshi DOYU <Hiroshi.DOYU@nokia.com> wrote:
> From: ext Felipe Contreras <felipe.contreras@gmail.com>
> Subject: Re: [PATCH 3/6] omap iommu: omap3 iommu device registration
> Date: Tue, 5 May 2009 21:32:34 +0200
>
>> On Tue, May 5, 2009 at 3:47 PM, Hiroshi DOYU <Hiroshi.DOYU@nokia.com> wrote:
>> > Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
>> > ---
>> >
>> >  arch/arm/mach-omap2/omap3-iommu.c |  105 +++++++++++++++++++++++++++++++++++++
>> >  1 files changed, 105 insertions(+), 0 deletions(-)
>> >  create mode 100644 arch/arm/mach-omap2/omap3-iommu.c
>> >
>> > diff --git a/arch/arm/mach-omap2/omap3-iommu.c b/arch/arm/mach-omap2/omap3-iommu.c
>> > new file mode 100644
>> > index 0000000..367f36a
>> > --- /dev/null
>> > +++ b/arch/arm/mach-omap2/omap3-iommu.c
>> > @@ -0,0 +1,105 @@
>> > +/*
>> > + * omap iommu: omap3 device registration
>> > + *
>> > + * Copyright (C) 2008-2009 Nokia Corporation
>> > + *
>> > + * Written by Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
>> > + *
>> > + * This program is free software; you can redistribute it and/or modify
>> > + * it under the terms of the GNU General Public License version 2 as
>> > + * published by the Free Software Foundation.
>> > + */
>> > +
>> > +#include <linux/platform_device.h>
>> > +
>> > +#include <mach/iommu.h>
>> > +
>> > +#define OMAP3_MMU1_BASE        0x480bd400
>> > +#define OMAP3_MMU2_BASE        0x5d000000
>> > +#define OMAP3_MMU1_IRQ 24
>> > +#define OMAP3_MMU2_IRQ 28
>> > +
>> > +static struct resource omap3_iommu_res[] = {
>> > +       { /* Camera ISP MMU */
>> > +               .start          = OMAP3_MMU1_BASE,
>> > +               .end            = OMAP3_MMU1_BASE + MMU_REG_SIZE - 1,
>> > +               .flags          = IORESOURCE_MEM,
>> > +       },
>> > +       {
>> > +               .start          = OMAP3_MMU1_IRQ,
>> > +               .flags          = IORESOURCE_IRQ,
>> > +       },
>> > +       { /* IVA2.2 MMU */
>> > +               .start          = OMAP3_MMU2_BASE,
>> > +               .end            = OMAP3_MMU2_BASE + MMU_REG_SIZE - 1,
>> > +               .flags          = IORESOURCE_MEM,
>> > +       },
>> > +       {
>> > +               .start          = OMAP3_MMU2_IRQ,
>> > +               .flags          = IORESOURCE_IRQ,
>> > +       },
>> > +};
>>
>> This will break TI's bridgedriver, right?
>
> Working around is easy, but let's go forward, correcting TI's bridgedriver;-)
>
> http://marc.info/?l=linux-omap&m=124148814309478&w=2

*sigh*

I can't recall how many times I've asked for this, I'm sending a patch
series (RFC) that allows exactly what I want.

-- 
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2009-06-28  0:18 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-16 10:05 [RFC/PATCH 0/3] omap3-iommu: cleanups and remote registration Felipe Contreras
2009-05-16 10:05 ` [RFC/PATCH 1/3] omap3-iommu: reorganize Felipe Contreras
2009-05-16 10:05   ` [RFC/PATCH 2/3] omap3-iommu: split init function into omap_iommu_add Felipe Contreras
2009-05-16 10:05     ` [RFC/PATCH 3/3] omap3-iommu: remote registration Felipe Contreras
2009-05-18 12:11       ` Russell King - ARM Linux
2009-05-18 12:46         ` Felipe Contreras
2009-05-18 13:02           ` Russell King - ARM Linux
2009-05-18 13:21             ` Felipe Contreras
2009-05-18 13:40               ` Russell King - ARM Linux
2009-05-18 14:00                 ` Felipe Contreras
2009-05-18 13:35         ` Hiroshi DOYU
2009-05-18 13:52           ` Felipe Contreras
2009-05-18 13:59             ` Hiroshi DOYU
2009-05-18 13:54           ` Hiroshi DOYU
2009-05-18 12:07   ` [RFC/PATCH 1/3] omap3-iommu: reorganize Russell King - ARM Linux
2009-05-18 12:59     ` Felipe Contreras
2009-05-18 13:03       ` Russell King - ARM Linux
2009-05-16 16:36 ` [RFC/PATCH 0/3] omap3-iommu: cleanups and remote registration Russell King - ARM Linux
2009-05-16 18:32   ` Felipe Contreras
2009-05-18  5:16     ` Hiroshi DOYU
2009-05-18  5:33       ` Hiroshi DOYU
2009-05-18 11:51         ` Felipe Contreras
2009-05-18 11:48       ` Felipe Contreras
2009-05-18 13:48         ` Hiroshi DOYU
2009-06-28  0:18           ` Felipe Contreras
  -- strict thread matches above, loose matches on Subject: below --
2009-05-07 20:02 [PATCH 3/6] omap iommu: omap3 iommu device registration Felipe Contreras
2009-05-07 20:11 ` [RFC/PATCH 0/3] omap3-iommu: cleanups and remote registration Felipe Contreras
2009-05-07 20:11   ` [RFC/PATCH 1/3] omap3-iommu: reorganize Felipe Contreras
2009-05-07 20:11     ` [RFC/PATCH 2/3] omap3-iommu: split init function into omap_iommu_add Felipe Contreras
2009-05-07 20:11       ` [RFC/PATCH 3/3] omap3-iommu: remote registration Felipe Contreras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox