# Re: \[PATCH v7 05/15\] swiotlb: Add a new get\_io\_tlb\_mem getter

- From: Konrad Rzeszutek Wilk \<hidden\>
- Date: 2021-05-24 15:58:06 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/05/1390067
- Thread: https://ratatoskr.run/linux-devicetree/2021/05/1381603/t.md

```text
On Tue, May 18, 2021 at 02:51:52PM +0800, Claire Chang wrote:
> Still keep this function because directly using dev->dma_io_tlb_mem
> will cause issues for memory allocation for existing devices. The pool
> can't support atomic coherent allocation so we need to distinguish the
> per device pool and the default pool in swiotlb_alloc.

This above should really be rolled in the commit. You can prefix it by
"The reason it was done this way was because directly using .."


```
