Re: [PATCH 1/5] iova: Move fast alloc size roundup into alloc_iova_fast()

2021-10-27 Thread John Garry
On 11/10/2021 03:06, Jason Wang wrote: On Fri, Sep 24, 2021 at 6:07 PM John Garry wrote: It really is a property of the IOVA rcache code that we need to alloc a power-of-2 size, so relocate the functionality to resize into alloc_iova_fast(), rather than the callsites. Signed-off-by: John Garry

Re: [PATCH 1/5] iova: Move fast alloc size roundup into alloc_iova_fast()

2021-10-18 Thread Michael S. Tsirkin
On Fri, Sep 24, 2021 at 06:01:53PM +0800, John Garry wrote: > It really is a property of the IOVA rcache code that we need to alloc a > power-of-2 size, so relocate the functionality to resize into > alloc_iova_fast(), rather than the callsites. > > Signed-off-by: John Garry for vdpa code: Acke

Re: [PATCH 1/5] iova: Move fast alloc size roundup into alloc_iova_fast()

2021-10-10 Thread Jason Wang
On Fri, Sep 24, 2021 at 6:07 PM John Garry wrote: > > It really is a property of the IOVA rcache code that we need to alloc a > power-of-2 size, so relocate the functionality to resize into > alloc_iova_fast(), rather than the callsites. > > Signed-off-by: John Garry Acked-by: Jason Wang > ---

Re: [PATCH 1/5] iova: Move fast alloc size roundup into alloc_iova_fast()

2021-10-08 Thread Yongji Xie
On Sat, Oct 9, 2021 at 12:17 AM John Garry wrote: > > On 04/10/2021 12:31, Will Deacon wrote: > > On Fri, Sep 24, 2021 at 06:01:53PM +0800, John Garry wrote: > >> It really is a property of the IOVA rcache code that we need to alloc a > >> power-of-2 size, so relocate the functionality to resize i

Re: [PATCH 1/5] iova: Move fast alloc size roundup into alloc_iova_fast()

2021-10-08 Thread John Garry
On 04/10/2021 12:31, Will Deacon wrote: On Fri, Sep 24, 2021 at 06:01:53PM +0800, John Garry wrote: It really is a property of the IOVA rcache code that we need to alloc a power-of-2 size, so relocate the functionality to resize into alloc_iova_fast(), rather than the callsites. Signed-off-by:

Re: [PATCH 1/5] iova: Move fast alloc size roundup into alloc_iova_fast()

2021-10-04 Thread Will Deacon
On Fri, Sep 24, 2021 at 06:01:53PM +0800, John Garry wrote: > It really is a property of the IOVA rcache code that we need to alloc a > power-of-2 size, so relocate the functionality to resize into > alloc_iova_fast(), rather than the callsites. > > Signed-off-by: John Garry > --- > drivers/iomm

[PATCH 1/5] iova: Move fast alloc size roundup into alloc_iova_fast()

2021-09-24 Thread John Garry
It really is a property of the IOVA rcache code that we need to alloc a power-of-2 size, so relocate the functionality to resize into alloc_iova_fast(), rather than the callsites. Signed-off-by: John Garry --- drivers/iommu/dma-iommu.c| 8 drivers/iommu/iova.c