Re: [PATCH 4/8] iommu/arm-smmu-v3: Add support for Substream IDs

2019-09-19 Thread Jean-Philippe Brucker
On Mon, Jul 08, 2019 at 05:31:53PM +0200, Auger Eric wrote: > Hi Jean, > > On 6/10/19 8:47 PM, Jean-Philippe Brucker wrote: > > /* > > -* We don't need to issue any invalidation here, as we'll invalidate > > -* the STE when installing the new entry anyway. > > +* This function hand

Re: [PATCH 4/8] iommu/arm-smmu-v3: Add support for Substream IDs

2019-09-19 Thread Jean-Philippe Brucker
On Wed, Jun 26, 2019 at 07:00:26PM +0100, Will Deacon wrote: > On Mon, Jun 10, 2019 at 07:47:10PM +0100, Jean-Philippe Brucker wrote: > > In all stream table entries, we set S1DSS=SSID0 mode, making translations > > without an SSID use context descriptor 0. Although it would be possible by > > sett

Re: [PATCH 4/8] iommu/arm-smmu-v3: Add support for Substream IDs

2019-07-08 Thread Auger Eric
Hi Jean, On 6/10/19 8:47 PM, Jean-Philippe Brucker wrote: > At the moment, the SMMUv3 driver implements only one stage-1 or stage-2 > page directory per device. However SMMUv3 allows more than one address > space for some devices, by providing multiple stage-1 page directories. In > addition to th

Re: [PATCH 4/8] iommu/arm-smmu-v3: Add support for Substream IDs

2019-07-04 Thread Jean-Philippe Brucker
On 26/06/2019 19:00, Will Deacon wrote: > On Mon, Jun 10, 2019 at 07:47:10PM +0100, Jean-Philippe Brucker wrote: >> At the moment, the SMMUv3 driver implements only one stage-1 or stage-2 >> page directory per device. However SMMUv3 allows more than one address >> space for some devices, by providi

Re: [PATCH 4/8] iommu/arm-smmu-v3: Add support for Substream IDs

2019-06-26 Thread Will Deacon
On Mon, Jun 10, 2019 at 07:47:10PM +0100, Jean-Philippe Brucker wrote: > At the moment, the SMMUv3 driver implements only one stage-1 or stage-2 > page directory per device. However SMMUv3 allows more than one address > space for some devices, by providing multiple stage-1 page directories. In > ad

Re: [PATCH 4/8] iommu/arm-smmu-v3: Add support for Substream IDs

2019-06-11 Thread Jean-Philippe Brucker
On 11/06/2019 11:19, Jonathan Cameron wrote: >> +static int arm_smmu_alloc_cd_tables(struct arm_smmu_domain *smmu_domain, >> +struct arm_smmu_master *master) >> +{ >> +struct arm_smmu_device *smmu = smmu_domain->smmu; >> +struct arm_smmu_s1_cfg *cfg = &smmu_d

Re: [PATCH 4/8] iommu/arm-smmu-v3: Add support for Substream IDs

2019-06-11 Thread Jonathan Cameron
On Mon, 10 Jun 2019 19:47:10 +0100 Jean-Philippe Brucker wrote: > At the moment, the SMMUv3 driver implements only one stage-1 or stage-2 > page directory per device. However SMMUv3 allows more than one address > space for some devices, by providing multiple stage-1 page directories. In > additio

[PATCH 4/8] iommu/arm-smmu-v3: Add support for Substream IDs

2019-06-10 Thread Jean-Philippe Brucker
At the moment, the SMMUv3 driver implements only one stage-1 or stage-2 page directory per device. However SMMUv3 allows more than one address space for some devices, by providing multiple stage-1 page directories. In addition to the Stream ID (SID), that identifies a device, we can now have Substr