Re: [PATCH 1/5] driver core: Introduce device_iommu_mapped() function

2018-12-06 Thread Joerg Roedel
On Thu, Dec 06, 2018 at 01:55:20PM +0100, Greg Kroah-Hartman wrote: > On Tue, Dec 04, 2018 at 06:25:00PM +0100, Joerg Roedel wrote: > > Cc: Greg Kroah-Hartman > > Signed-off-by: Joerg Roedel > > --- > > include/linux/device.h | 10 ++ > > 1 file changed, 10 insertions(+) > > Acked-by: G

Re: [PATCH 1/5] driver core: Introduce device_iommu_mapped() function

2018-12-06 Thread Greg Kroah-Hartman
On Tue, Dec 04, 2018 at 06:25:00PM +0100, Joerg Roedel wrote: > From: Joerg Roedel > > Some places in the kernel check the iommu_group pointer in > 'struct device' in order to find ot whether a device is > mapped by an IOMMU. > > This is not good way to make this check, as the pointer will > be

[PATCH 1/5] driver core: Introduce device_iommu_mapped() function

2018-12-04 Thread Joerg Roedel
From: Joerg Roedel Some places in the kernel check the iommu_group pointer in 'struct device' in order to find ot whether a device is mapped by an IOMMU. This is not good way to make this check, as the pointer will be moved to 'struct dev_iommu_data'. This way to make the check is also not very