Re: [Patch v3 1/3] iommu: avoid unnecessary magazine allocations

2020-01-22 Thread Cong Wang
On Wed, Jan 22, 2020 at 9:07 AM Robin Murphy wrote: > > On 21/01/2020 5:21 pm, Cong Wang wrote: > > On Tue, Jan 21, 2020 at 3:11 AM Robin Murphy wrote: > >> > >> On 18/12/2019 4:39 am, Cong Wang wrote: > >>> The IOVA cache algorithm implemented in IOMMU code does not > >>> exactly match the origi

Re: [Patch v3 1/3] iommu: avoid unnecessary magazine allocations

2020-01-22 Thread Robin Murphy
On 21/01/2020 5:21 pm, Cong Wang wrote: On Tue, Jan 21, 2020 at 3:11 AM Robin Murphy wrote: On 18/12/2019 4:39 am, Cong Wang wrote: The IOVA cache algorithm implemented in IOMMU code does not exactly match the original algorithm described in the paper "Magazines and Vmem: Extending the Slab A

Re: [Patch v3 1/3] iommu: avoid unnecessary magazine allocations

2020-01-21 Thread Cong Wang
On Tue, Jan 21, 2020 at 3:11 AM Robin Murphy wrote: > > On 18/12/2019 4:39 am, Cong Wang wrote: > > The IOVA cache algorithm implemented in IOMMU code does not > > exactly match the original algorithm described in the paper > > "Magazines and Vmem: Extending the Slab Allocator to Many > > CPUs and

Re: [Patch v3 1/3] iommu: avoid unnecessary magazine allocations

2020-01-21 Thread Robin Murphy
On 18/12/2019 4:39 am, Cong Wang wrote: The IOVA cache algorithm implemented in IOMMU code does not exactly match the original algorithm described in the paper "Magazines and Vmem: Extending the Slab Allocator to Many CPUs and Arbitrary Resources". Particularly, it doesn't need to free the loade

[Patch v3 1/3] iommu: avoid unnecessary magazine allocations

2019-12-17 Thread Cong Wang
The IOVA cache algorithm implemented in IOMMU code does not exactly match the original algorithm described in the paper "Magazines and Vmem: Extending the Slab Allocator to Many CPUs and Arbitrary Resources". Particularly, it doesn't need to free the loaded empty magazine when trying to put it bac

[Patch v3 1/3] iommu: avoid unnecessary magazine allocations

2019-12-06 Thread Cong Wang
The IOVA cache algorithm implemented in IOMMU code does not exactly match the original algorithm described in the paper "Magazines and Vmem: Extending the Slab Allocator to Many CPUs and Arbitrary Resources". Particularly, it doesn't need to free the loaded empty magazine when trying to put it bac