Re: [PATCH 2/4] iommu/arm-smmu-v3: Link domains and devices

2019-04-05 Thread Jean-Philippe Brucker
On 05/04/2019 17:39, Will Deacon wrote: >>> I'm wondering whether we can't take this a bit further and re-organise the >>> data structures to make this a little simpler overall. Something along the >>> lines of: >>> >>> struct arm_smmu_master_data { >>> struct list_head

Re: [PATCH 2/4] iommu/arm-smmu-v3: Link domains and devices

2019-04-05 Thread Will Deacon
On Fri, Apr 05, 2019 at 05:35:52PM +0100, Jean-Philippe Brucker wrote: > On 04/04/2019 15:39, Will Deacon wrote: > > On Wed, Mar 20, 2019 at 05:36:32PM +, Jean-Philippe Brucker wrote: > >> When removing a mapping from a domain, we need to send an invalidation to > >> all devices that might

Re: [PATCH 2/4] iommu/arm-smmu-v3: Link domains and devices

2019-04-05 Thread Jean-Philippe Brucker
On 04/04/2019 15:39, Will Deacon wrote: > Hi Jean-Philippe, > > First off, thanks for posting this: it's definitely something that I'm keen > to support, and getting bits in a piece at a time is probably a good idea. > > On Wed, Mar 20, 2019 at 05:36:32PM +, Jean-Philippe Brucker wrote: >>

Re: [PATCH 2/4] iommu/arm-smmu-v3: Link domains and devices

2019-04-04 Thread Will Deacon
Hi Jean-Philippe, First off, thanks for posting this: it's definitely something that I'm keen to support, and getting bits in a piece at a time is probably a good idea. On Wed, Mar 20, 2019 at 05:36:32PM +, Jean-Philippe Brucker wrote: > When removing a mapping from a domain, we need to send

[PATCH 2/4] iommu/arm-smmu-v3: Link domains and devices

2019-03-20 Thread Jean-Philippe Brucker
When removing a mapping from a domain, we need to send an invalidation to all devices that might have stored it in their Address Translation Cache (ATC). In addition when updating the context descriptor of a live domain, we'll need to send invalidations for all devices attached to it. Maintain a