[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4455459.GtiCHWk2CB@wuerfel>
Date: Fri, 27 Jun 2014 12:54:20 +0200
From: Arnd Bergmann <arnd@...db.de>
To: linux-arm-kernel@...ts.infradead.org
Cc: Hiroshi DOyu <hdoyu@...dia.com>,
Thierry Reding <thierry.reding@...il.com>,
Mark Rutland <mark.rutland@....com>,
Will Deacon <will.deacon@....com>,
Paul Walmsley <pwalmsley@...dia.com>,
Pawel Moll <pawel.moll@....com>,
Joerg Roedel <joro@...tes.org>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Marc Zyngier <marc.zyngier@....com>,
Dave Martin <Dave.Martin@....com>,
Olav Haugan <ohaugan@...eaurora.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
Stephen Warren <swarren@...dotorg.org>,
Grant Grundler <grundler@...omium.org>,
Allen Martin <AMartin@...dia.com>,
Rob Herring <robh+dt@...nel.org>,
"linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>,
Cho KyongHo <pullip.cho@...sung.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>,
Kumar Gala <galak@...eaurora.org>,
Rhyland Klein <rklein@...dia.com>
Subject: Re: [RFC 09/10] drm/tegra: Add IOMMU support
On Friday 27 June 2014 12:46:14 Hiroshi DOyu wrote:
>
> Thierry Reding <thierry.reding@...il.com> writes:
>
> > From: Thierry Reding <treding@...dia.com>
> >
> > When an IOMMU device is available on the platform bus, allocate an IOMMU
> > domain and attach the display controllers to it. The display controllers
> > can then scan out non-contiguous buffers by mapping them through the
> > IOMMU.
> >
> > Signed-off-by: Thierry Reding <treding@...dia.com>
> > ---
> > @@ -1283,8 +1284,18 @@ static int tegra_dc_init(struct host1x_client *client)
> > {
> > struct drm_device *drm = dev_get_drvdata(client->parent);
> > struct tegra_dc *dc = host1x_client_to_dc(client);
> > + struct tegra_drm *tegra = drm->dev_private;
> > int err;
> >
> > + if (tegra->domain) {
> > + err = iommu_attach_device(tegra->domain, dc->dev);
>
> I wanted to keep device drivers iommu-free with the following:
>
> http://patchwork.ozlabs.org/patch/354074/
>
We definitely need something like your series to make iommus work transparently
on ARM for normal devices, using the of_dma_configure() to look up the correct
iommu per device and initialize it.
However, any devices that work with multiple iommu domains cannot do that
and still need to use the iommu API directy. I believe the tegra drm code
falls into this category.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists