Re: [PATCH V9 00/11] IOMMU probe deferral support

2017-03-28 Thread Sricharan R
00/11] IOMMU probe deferral support Hi, [...] From the logs its clear that when ixgbevf driver originally probes and adds the device to smmu the dma mask is 32, but when it binds to vfio-pci, it becomes 64 bit. Just to add to that, the mask is set to 64 bit in the ixgebvf driver probe[1

RE: [PATCH V9 00/11] IOMMU probe deferral support

2017-03-28 Thread Shameerali Kolothum Thodi
ion.org; linux-arm-ker...@lists.infradead.org; > linux-arm-...@vger.kernel.org; m.szyprow...@samsung.com; > bhelg...@google.com; linux-...@vger.kernel.org; linux- > a...@vger.kernel.org; t...@semihalf.com; hanjun@linaro.org; > ok...@codeaurora.org > Subject: Re: [PATCH V9 00

Re: [PATCH V9 00/11] IOMMU probe deferral support

2017-03-27 Thread Sricharan R
Hi, On 24/03/17 09:27, Shameerali Kolothum Thodi wrote: Hi Sricharan, -Original Message- From: Sricharan R [mailto:sricha...@codeaurora.org] [...] Looks like this triggers the start of the bug. So the below check in iommu_dma_init_domain fails, if

Re: [PATCH V9 00/11] IOMMU probe deferral support

2017-03-27 Thread Lorenzo Pieralisi
On Mon, Mar 27, 2017 at 05:18:15PM +0100, Robin Murphy wrote: [...] > >> [ 145.212351] iommu: Adding device :81:10.0 to group 5 > >> [ 145.212367] ixgbevf :81:10.0: 0x0 0x1, 0x0 0x, > >> 0x 0x > >> [ 145.213261] ixgbevf :81:10.0: enabling device

Re: [PATCH V9 00/11] IOMMU probe deferral support

2017-03-27 Thread Robin Murphy
.@google.com; linux-...@vger.kernel.org; linux- >>> a...@vger.kernel.org; t...@semihalf.com; hanjun@linaro.org; >>> ok...@codeaurora.org >>> Subject: Re: [PATCH V9 00/11] IOMMU probe deferral support >>> >>> On 24/03/17 09:27, Shameerali Koloth

RE: [PATCH V9 00/11] IOMMU probe deferral support

2017-03-27 Thread Shameerali Kolothum Thodi
ists.infradead.org; linux-arm- > m...@vger.kernel.org; m.szyprow...@samsung.com; > bhelg...@google.com; linux-...@vger.kernel.org; linux- > a...@vger.kernel.org; t...@semihalf.com; hanjun@linaro.org; > ok...@codeaurora.org > Subject: RE: [PATCH V9 00/11] IOMMU probe deferral suppor

Re: [PATCH V9 00/11] IOMMU probe deferral support

2017-03-24 Thread Robin Murphy
semihalf.com; hanjun@linaro.org; >> ok...@codeaurora.org >> Cc: Shameerali Kolothum Thodi >> Subject: Re: [PATCH V9 00/11] IOMMU probe deferral support >> >> Hi Zhou, >> >> On 3/24/2017 9:23 AM, Zhou Wang wrote: >>> On 2017/3/10 3:00, Sricharan R w

Re: [PATCH V9 00/11] IOMMU probe deferral support

2017-03-24 Thread Lorenzo Pieralisi
On Fri, Mar 24, 2017 at 09:27:51AM +, Shameerali Kolothum Thodi wrote: [...] > @@ -107,7 +107,7 @@ int of_dma_configure(struct device *dev, struct > device_node *np) > ret = of_dma_get_range(np, _addr, , ); > if (ret < 0) { > dma_addr = offset = 0; > -

RE: [PATCH V9 00/11] IOMMU probe deferral support

2017-03-24 Thread Shameerali Kolothum Thodi
org; linux-arm-ker...@lists.infradead.org; linux-arm- > m...@vger.kernel.org; m.szyprow...@samsung.com; > bhelg...@google.com; linux-...@vger.kernel.org; linux- > a...@vger.kernel.org; t...@semihalf.com; hanjun@linaro.org; > ok...@codeaurora.org > Cc: Shameerali Kolothum Thodi >

Re: [PATCH V9 00/11] IOMMU probe deferral support

2017-03-24 Thread Sricharan R
Hi Zhou, On 3/24/2017 9:23 AM, Zhou Wang wrote: On 2017/3/10 3:00, Sricharan R wrote: This series calls the dma ops configuration for the devices at a generic place so that it works for all busses. The dma_configure_ops for a device is now called during the device_attach callback just before