Re: [RFC PATCH 07/30] iommu/arm-smmu-v3: Add second level of context descriptor table

2017-05-15 Thread Jean-Philippe Brucker
On 15/05/17 13:47, Tomasz Nowicki wrote: > Hi Jean, > > On 27.02.2017 20:54, Jean-Philippe Brucker wrote: >> @@ -1213,17 +1356,59 @@ static void arm_smmu_free_cd_tables(struct >> arm_smmu_master_data *master) >> __maybe_unused >> static int arm_smmu_alloc_cd(struct arm_smmu_master_data *master)

Re: [RFC PATCH 07/30] iommu/arm-smmu-v3: Add second level of context descriptor table

2017-05-15 Thread Tomasz Nowicki
Hi Jean, On 27.02.2017 20:54, Jean-Philippe Brucker wrote: @@ -1213,17 +1356,59 @@ static void arm_smmu_free_cd_tables(struct arm_smmu_master_data *master) __maybe_unused static int arm_smmu_alloc_cd(struct arm_smmu_master_data *master) { + int ssid; + int i, ret; struct

[RFC PATCH 07/30] iommu/arm-smmu-v3: Add second level of context descriptor table

2017-02-27 Thread Jean-Philippe Brucker
The SMMU can support up to 20 bits of SSID. Add a second level of page tables to accommodate this. Devices without support for SSID still have a single context descriptor, but the others now have a first table of 1024 entries (8kB), pointing to tables of 1024 context descriptors (64kB), allocated o