# Re: \[PATCH 1/1\] powerpc/pseries/iommu: Fix window size for direct mapping with pmem

- From: Michael Ellerman \<hidden\>
- Date: 2021-04-21 13:16:46 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/04/6346289
- Thread: https://ratatoskr.run/linuxppc-dev/2021/04/6344621/t.md

```text
On Tue, 20 Apr 2021 01:54:04 -0300, Leonardo Bras wrote:
> As of today, if the DDW is big enough to fit (1 << MAX_PHYSMEM_BITS) it's
> possible to use direct DMA mapping even with pmem region.
> 
> But, if that happens, the window size (len) is set to
> (MAX_PHYSMEM_BITS - page_shift) instead of MAX_PHYSMEM_BITS, causing a
> pagesize times smaller DDW to be created, being insufficient for correct
> usage.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/pseries/iommu: Fix window size for direct mapping with pmem
      https://git.kernel.org/powerpc/c/a9d2f9bb225fd2a764aef57738ab6c7f38d782ae

cheers
```
