# Re: \[PATCH v11 09/12\] swiotlb: Add restricted DMA alloc/free support

- From: Christoph Hellwig \<hch@lst.de\>
- Date: 2021-06-16 04:59:29 
- List: linux-devicetree
- Page: https://ratatoskr.run/linux-devicetree/2021/06/1415857
- Thread: https://ratatoskr.run/linux-devicetree/2021/06/1415818/t.md

```text
On Wed, Jun 16, 2021 at 12:04:16PM +0800, Claire Chang wrote:
> Just noticed that after propagating swiotlb_force setting into
> io_tlb_default_mem->force, the memory allocation behavior for
> swiotlb_force will change (i.e. always skipping arch_dma_alloc and
> dma_direct_alloc_from_pool).

Yes, I think we need to split a "use_for_alloc" flag from the force flag.
```
