Re: [PATCH v2] iommu/arm-smmu-v3: poll cmdq until it has space

2021-10-01 Thread John Garry
On 26/09/2021 19:51, Fernand Sieber wrote: When a thread sends commands to the SMMU, it needs to allocate some space to write its commands in a ring buffer. The allocation algorithms works as follows: until enough free spaced is available in the queue, repeat the following outer loop. First, try

[PATCH v2] iommu/arm-smmu-v3: poll cmdq until it has space

2021-09-26 Thread Fernand Sieber via iommu
When a thread sends commands to the SMMU, it needs to allocate some space to write its commands in a ring buffer. The allocation algorithms works as follows: until enough free spaced is available in the queue, repeat the following outer loop. First, try to acquire an exclusive lock to read the con