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

2021-09-29 Thread Frederic Barrat
On 28/09/2021 12:15, Alexey Kardashevskiy wrote: The upcoming PAPR spec adds a 2M page size, bit 23 right after the 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

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

2021-09-28 Thread Leonardo BrĂ¡s
Hello Alexey, On Tue, 2021-09-28 at 20:15 +1000, Alexey Kardashevskiy wrote: > The upcoming PAPR spec adds a 2M page size, bit 23 right after the 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,

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

2021-09-28 Thread Alexey Kardashevskiy
The upcoming PAPR spec adds a 2M page size, bit 23 right after the 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. Signed-off-by: Alexey Kardas