Re: [PATCH kernel v2] powerps/pseries/dma: Add support for 2M IOMMU page size

2021-10-11 Thread Michael Ellerman
On Wed, 6 Oct 2021 15:47:35 +1100, Alexey Kardashevskiy wrote: > The upcoming PAPR spec adds a 2M page size, bit 23 right after 16G page > size in the "ibm,query-pe-dma-window" call. > > This adds support for the new page size. Since the new page size is out > of sorted order, this changes the

[PATCH kernel v2] powerps/pseries/dma: Add support for 2M IOMMU page size

2021-10-05 Thread Alexey Kardashevskiy
The upcoming PAPR spec adds a 2M page size, bit 23 right after 16G page size in the "ibm,query-pe-dma-window" call. This adds support for the new page size. Since the new page size is out of sorted order, this changes the loop to not assume that shift[] is sorted. This has now been tested and is