Hi Alexey, Do we need a seperate patch to allow this to be used? Last time I tried calling dma_set_mask(52) on powernv it returned an error and there doesn't seem to be anything obvious to me in this series to change that behaviour, but perhaps I missed something.
- Alistair On Wednesday, 1 May 2019 3:28:20 PM AEST Alexey Kardashevskiy wrote: > This is an attempt to allow DMA masks between 32..59 which are not large > enough to use either a PHB3 bypass mode or a sketchy bypass. Depending > on the max order, up to 40 is usually available. > > > This is based on sha1 > 37624b58542f Linus Torvalds "Linux 5.1-rc7". > > Please comment. Thanks. > > > > Alexey Kardashevskiy (2): > powerpc/powernv/ioda2: Allocate TCE table levels on demand for default > DMA window > powerpc/powernv/ioda2: Create bigger default window with 64k IOMMU > pages > > arch/powerpc/include/asm/iommu.h | 8 ++- > arch/powerpc/platforms/powernv/pci.h | 2 +- > arch/powerpc/kernel/iommu.c | 58 +++++++++++++------ > arch/powerpc/platforms/powernv/pci-ioda-tce.c | 20 +++---- > arch/powerpc/platforms/powernv/pci-ioda.c | 40 +++++++++++-- > 5 files changed, 90 insertions(+), 38 deletions(-)