Re: [RFC 09/10] drm/tegra: Add IOMMU support

2014-11-05 Thread Thierry Reding
On Wed, Oct 01, 2014 at 11:54:11AM -0400, Sean Paul wrote: On Tue, Sep 30, 2014 at 2:48 PM, Sean Paul seanp...@google.com wrote: On Thu, Jun 26, 2014 at 4:49 PM, Thierry Reding thierry.red...@gmail.com wrote: diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c [...]

Re: [RFC 09/10] drm/tegra: Add IOMMU support

2014-11-05 Thread Thierry Reding
On Tue, Sep 30, 2014 at 02:48:35PM -0400, Sean Paul wrote: On Thu, Jun 26, 2014 at 4:49 PM, Thierry Reding thierry.red...@gmail.com wrote: From: Thierry Reding tred...@nvidia.com When an IOMMU device is available on the platform bus, allocate an IOMMU domain and attach the display

Re: [RFC 09/10] drm/tegra: Add IOMMU support

2014-10-02 Thread Thierry Reding
On Wed, Oct 01, 2014 at 11:54:11AM -0400, Sean Paul wrote: On Tue, Sep 30, 2014 at 2:48 PM, Sean Paul seanp...@google.com wrote: On Thu, Jun 26, 2014 at 4:49 PM, Thierry Reding thierry.red...@gmail.com wrote: From: Thierry Reding tred...@nvidia.com When an IOMMU device is available on

Re: [RFC 09/10] drm/tegra: Add IOMMU support

2014-10-02 Thread Sean Paul
On Thu, Jun 26, 2014 at 4:49 PM, Thierry Reding thierry.red...@gmail.com wrote: From: Thierry Reding tred...@nvidia.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

Re: [RFC 09/10] drm/tegra: Add IOMMU support

2014-10-02 Thread Sean Paul
On Tue, Sep 30, 2014 at 2:48 PM, Sean Paul seanp...@google.com wrote: On Thu, Jun 26, 2014 at 4:49 PM, Thierry Reding thierry.red...@gmail.com wrote: From: Thierry Reding tred...@nvidia.com When an IOMMU device is available on the platform bus, allocate an IOMMU domain and attach the display

Re: [RFC 09/10] drm/tegra: Add IOMMU support

2014-06-27 Thread Hiroshi DOyu
Thierry Reding thierry.red...@gmail.com writes: From: Thierry Reding tred...@nvidia.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

Re: [RFC 09/10] drm/tegra: Add IOMMU support

2014-06-27 Thread Arnd Bergmann
On Friday 27 June 2014 12:46:14 Hiroshi DOyu wrote: Thierry Reding thierry.red...@gmail.com writes: From: Thierry Reding tred...@nvidia.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

Re: [RFC 09/10] drm/tegra: Add IOMMU support

2014-06-27 Thread Thierry Reding
On Fri, Jun 27, 2014 at 12:46:14PM +0300, Hiroshi DOyu wrote: Thierry Reding thierry.red...@gmail.com writes: [...] diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c [...] + if (tegra-domain) { + err = iommu_attach_device(tegra-domain, dc-dev); I

Re: [RFC 09/10] drm/tegra: Add IOMMU support

2014-06-27 Thread Hiroshi Doyu
Arnd Bergmann a...@arndb.de writes: On Friday 27 June 2014 12:46:14 Hiroshi DOyu wrote: Thierry Reding thierry.red...@gmail.com writes: From: Thierry Reding tred...@nvidia.com When an IOMMU device is available on the platform bus, allocate an IOMMU domain and attach the display