Re: [PATCH v4 0/6] normalize IOMMU dma mode boot options
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Zhen Lei <thunder.leizhen@xxxxxxxxxx>, Jean-Philippe Brucker <jean-philippe.brucker@xxxxxxx>, John Garry <john.garry@xxxxxxxxxx>, "Robin Murphy" <robin.murphy@xxxxxxx>, Will Deacon <will.deacon@xxxxxxx>, "Joerg Roedel" <joro@xxxxxxxxxx>, Jonathan Corbet <corbet@xxxxxxx>, linux-doc <linux-doc@xxxxxxxxxxxxxxx>, Sebastian Ott <sebott@xxxxxxxxxxxxx>, "Gerald Schaefer" <gerald.schaefer@xxxxxxxxxx>, Martin Schwidefsky <schwidefsky@xxxxxxxxxx>, Heiko Carstens <heiko.carstens@xxxxxxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Paul Mackerras <paulus@xxxxxxxxx>, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, "H . Peter Anvin" <hpa@xxxxxxxxx>, David Woodhouse <dwmw2@xxxxxxxxxxxxx>, iommu <iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx>, linux-kernel <linux-kernel@xxxxxxxxxxxxxxx>, linux-s390 <linux-s390@xxxxxxxxxxxxxxx>, linuxppc-dev <linuxppc-dev@xxxxxxxxxxxxxxxx>, x86 <x86@xxxxxxxxxx>, linux-ia64 <linux-ia64@xxxxxxxxxxxxxxx>
- Subject: Re: [PATCH v4 0/6] normalize IOMMU dma mode boot options
- From: Hanjun Guo <guohanjun@xxxxxxxxxx>
- Date: Mon, 8 Apr 2019 09:14:42 +0800
- In-reply-to: <20190407124147.13576-1-thunder.leizhen@huawei.com>
- References: <20190407124147.13576-1-thunder.leizhen@huawei.com>
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
Hi Zhen,
On 2019/4/7 20:41, Zhen Lei wrote:
> As Robin Murphy's suggestion:
> "It's also not necessarily obvious to the user how this interacts with
> IOMMU_DEFAULT_PASSTHROUGH, so if we really do go down this route, maybe it
> would be better to refactor the whole lot into a single selection of something
> like IOMMU_DEFAULT_MODE anyway."
>
> In this version, I tried to normalize the IOMMU dma mode boot options for all
> ARCHs. When IOMMU is enabled, there are 3 dma modes: paasthrough(bypass),
> lazy(mapping but defer the IOTLB invalidation), strict. But currently each
> ARCHs defined their private boot options, different with each other. For
> example, to enable/disable "passthrough", ARM64 use iommu.passthrough=1/0,
> X86 use iommu=pt/nopt, PPC/POWERNV use iommu=nobypass.
>
>
> Zhen Lei (6):
> iommu: use iommu.dma_mode to replace iommu.passthrough and
> iommu.strict
> iommu: keep dma mode build options consistent with cmdline options
> iommu: add iommu_default_dma_mode_get() helper
> s390/pci: use common boot option iommu.dma_mode
> powernv/iommu: use common boot option iommu.dma_mode
> x86/iommu: use common boot option iommu.dma_mode
This will break systems using boot options as now, and I think
this is unacceptable. If you want to do so, just introduce iommu.dma_mode
on top of those iommu boot options with dma mode boot options unchanged,
and iommu.dma_mode is for all archs but compatible with them.
Thanks
Hanjun
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]