Re: [PATCH v2] iommu: add support for drivers that manage iommu explicitly

2019-07-24 Thread Rob Clark
On Wed, Jul 24, 2019 at 3:51 AM Will Deacon wrote: > > On Tue, Jul 23, 2019 at 10:40:55AM -0700, Rob Clark wrote: > > On Tue, Jul 23, 2019 at 8:38 AM Will Deacon wrote: > > > > > > On Mon, Jul 22, 2019 at 09:23:48AM -0700, Rob Clark wrote: > > > > On Mon, Jul 22, 2019 at 8:48 AM Joerg Roedel wro

Re: [PATCH v2] iommu: add support for drivers that manage iommu explicitly

2019-07-24 Thread Will Deacon
On Tue, Jul 23, 2019 at 10:40:55AM -0700, Rob Clark wrote: > On Tue, Jul 23, 2019 at 8:38 AM Will Deacon wrote: > > > > On Mon, Jul 22, 2019 at 09:23:48AM -0700, Rob Clark wrote: > > > On Mon, Jul 22, 2019 at 8:48 AM Joerg Roedel wrote: > > > > > > > > On Mon, Jul 22, 2019 at 08:41:34AM -0700, Ro

Re: [PATCH v2] iommu: add support for drivers that manage iommu explicitly

2019-07-23 Thread Rob Clark
On Tue, Jul 23, 2019 at 8:38 AM Will Deacon wrote: > > On Mon, Jul 22, 2019 at 09:23:48AM -0700, Rob Clark wrote: > > On Mon, Jul 22, 2019 at 8:48 AM Joerg Roedel wrote: > > > > > > On Mon, Jul 22, 2019 at 08:41:34AM -0700, Rob Clark wrote: > > > > It is set by the driver: > > > > > > > > https:/

Re: [PATCH v2] iommu: add support for drivers that manage iommu explicitly

2019-07-23 Thread Will Deacon
On Mon, Jul 22, 2019 at 09:23:48AM -0700, Rob Clark wrote: > On Mon, Jul 22, 2019 at 8:48 AM Joerg Roedel wrote: > > > > On Mon, Jul 22, 2019 at 08:41:34AM -0700, Rob Clark wrote: > > > It is set by the driver: > > > > > > https://patchwork.freedesktop.org/patch/315291/ > > > > > > (This doesn't r

Re: [PATCH v2] iommu: add support for drivers that manage iommu explicitly

2019-07-22 Thread Rob Clark
On Mon, Jul 22, 2019 at 8:48 AM Joerg Roedel wrote: > > On Mon, Jul 22, 2019 at 08:41:34AM -0700, Rob Clark wrote: > > It is set by the driver: > > > > https://patchwork.freedesktop.org/patch/315291/ > > > > (This doesn't really belong in devicetree, since it isn't a > > description of the hardwar

Re: [PATCH v2] iommu: add support for drivers that manage iommu explicitly

2019-07-22 Thread Joerg Roedel
On Mon, Jul 22, 2019 at 08:41:34AM -0700, Rob Clark wrote: > It is set by the driver: > > https://patchwork.freedesktop.org/patch/315291/ > > (This doesn't really belong in devicetree, since it isn't a > description of the hardware, so the driver is really the only place to > set this.. which is

Re: [PATCH v2] iommu: add support for drivers that manage iommu explicitly

2019-07-22 Thread Rob Clark
On Mon, Jul 22, 2019 at 7:28 AM Joerg Roedel wrote: > > On Wed, Jul 10, 2019 at 11:28:30AM -0700, Rob Clark wrote: > > --- a/include/linux/device.h > > +++ b/include/linux/device.h > > @@ -282,7 +282,8 @@ struct device_driver { > > struct module *owner; > > const char

Re: [PATCH v2] iommu: add support for drivers that manage iommu explicitly

2019-07-22 Thread Joerg Roedel
On Wed, Jul 10, 2019 at 11:28:30AM -0700, Rob Clark wrote: > --- a/include/linux/device.h > +++ b/include/linux/device.h > @@ -282,7 +282,8 @@ struct device_driver { > struct module *owner; > const char *mod_name; /* used for built-in modules */ > > - b

[PATCH v2] iommu: add support for drivers that manage iommu explicitly

2019-07-10 Thread Rob Clark
From: Rob Clark Avoid attaching any non-driver managed domain if the driver indicates that it manages the iommu directly. This avoids a problem on devices where the bootloader takes the SMMU out of bypass and enables scanout, such as is the case on snapdragon aarch64 laptops and newer snapdragon