Re: [Xen-devel] [PATCH 6/7] xen/arm: SMMU: Support generic IOMMU bindings

2017-07-05 Thread Wei Chen
> -Original Message- > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > Sent: 2017年7月6日 2:15 > To: Wei Chen > Cc: Julien Grall ; Stefano Stabellini > ; Kaly Xin ; nd ; > Steve > Capper ; xen-devel@lists.xen.org > Subject: Re: [Xen-devel] [PATCH

Re: [Xen-devel] [PATCH 6/7] xen/arm: SMMU: Support generic IOMMU bindings

2017-07-05 Thread Wei Chen
Hi Julien, > -Original Message- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 2017年7月5日 21:08 > To: Wei Chen ; Stefano Stabellini > Cc: xen-devel@lists.xen.org; Steve Capper ; Kaly Xin > ; nd ; Sameer Goel > Subject: Re: [Xen-devel] [PATCH 6/7] x

Re: [Xen-devel] [PATCH 6/7] xen/arm: SMMU: Support generic IOMMU bindings

2017-07-05 Thread Stefano Stabellini
On Wed, 5 Jul 2017, Wei Chen wrote: > > >> > +static int arm_smmu_of_xlate(struct device *dev, struct > > >> > of_phandle_args > > >> *args) > > >> > +{ > > >> > + struct arm_smmu_device *smmu; > > >> > + u32 mask = 0, fwid = 0; > > >> > + > > >> > + smmu = find_smmu(dt_to_dev(args->np)); >

Re: [Xen-devel] [PATCH 6/7] xen/arm: SMMU: Support generic IOMMU bindings

2017-07-05 Thread Julien Grall
On 05/07/17 08:04, Wei Chen wrote: Hi Julien, Hi Wei, Please avoid replying in HTML on the xen-devel. This kind of porting error could have been mitigated if this series was rebased as suggested multiple time on top of the fwspec work from QC (see [1]). Regardless that, I would much prefe

Re: [Xen-devel] [PATCH 6/7] xen/arm: SMMU: Support generic IOMMU bindings

2017-07-05 Thread Wei Chen
> >> Cc: xen-devel@lists.xen.org; sstabell...@kernel.org; Steve Capper > >> ; Kaly Xin ; Julien Grall > >> ; nd > >> Subject: Re: [Xen-devel] [PATCH 6/7] xen/arm: SMMU: Support generic IOMMU > >> bindings > >> > >> On Fri, 30 Jun 20

Re: [Xen-devel] [PATCH 6/7] xen/arm: SMMU: Support generic IOMMU bindings

2017-07-04 Thread Julien Grall
-devel] [PATCH 6/7] xen/arm: SMMU: Support generic IOMMU bindings On Fri, 30 Jun 2017, Wei Chen wrote: > The SMMU MasterIDs are placed at the master devices' DT node while > using the generic bindings. In this case, it's very hard for us to > register SMMU masters while probing SMMU

Re: [Xen-devel] [PATCH 6/7] xen/arm: SMMU: Support generic IOMMU bindings

2017-07-03 Thread Wei Chen
Hi Stefano, > -Original Message- > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > Sent: 2017年7月4日 7:00 > To: Wei Chen > Cc: xen-devel@lists.xen.org; sstabell...@kernel.org; Steve Capper > ; Kaly Xin ; Julien Grall > ; nd > Subject: Re: [Xen-devel] [

Re: [Xen-devel] [PATCH 6/7] xen/arm: SMMU: Support generic IOMMU bindings

2017-07-03 Thread Stefano Stabellini
On Fri, 30 Jun 2017, Wei Chen wrote: > The SMMU MasterIDs are placed at the master devices' DT node while > using the generic bindings. In this case, it's very hard for us to > register SMMU masters while probing SMMU as we had done for legacy > bindings. Because we have to go through whole device

[Xen-devel] [PATCH 6/7] xen/arm: SMMU: Support generic IOMMU bindings

2017-06-29 Thread Wei Chen
The SMMU MasterIDs are placed at the master devices' DT node while using the generic bindings. In this case, it's very hard for us to register SMMU masters while probing SMMU as we had done for legacy bindings. Because we have to go through whole device tree for all SMMU devices to find their maste