Re: [PATCH 06/10] iommu: Remember when default domain type was set on kernel command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
- Subject: Re: [PATCH 06/10] iommu: Remember when default domain type was set on kernel command line
- From: Joerg Roedel <joro@xxxxxxxxxx>
- Date: Thu, 15 Aug 2019 09:19:54 +0200
- Cc: corbet@xxxxxxx, tony.luck@xxxxxxxxx, fenghua.yu@xxxxxxxxx, tglx@xxxxxxxxxxxxx, mingo@xxxxxxxxxx, bp@xxxxxxxxx, hpa@xxxxxxxxx, x86@xxxxxxxxxx, linux-doc@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Thomas.Lendacky@xxxxxxx, Suravee.Suthikulpanit@xxxxxxx, Joerg Roedel <jroedel@xxxxxxx>
- In-reply-to: <754a526e-a6d4-8a3f-0b35-9dd3def5d24b@linux.intel.com>
- References: <20190814133841.7095-1-joro@8bytes.org> <20190814133841.7095-7-joro@8bytes.org> <754a526e-a6d4-8a3f-0b35-9dd3def5d24b@linux.intel.com>
- User-agent: Mutt/1.9.4 (2018-02-28)
Hey Lu Baolu,
thanks for your review!
On Thu, Aug 15, 2019 at 01:01:57PM +0800, Lu Baolu wrote:
> > +#define IOMMU_CMD_LINE_DMA_API (1 << 0)
>
> Prefer BIT() micro?
Yes, I'll change that.
> > + iommu_set_cmd_line_dma_api();
>
> IOMMU command line is also set in other places, for example,
> iommu_setup() (arch/x86/kernel/pci-dma.c). Need to call this there as
> well?
You are right, I'll better add a 'bool cmd_line' parameter to the
iommu_set_default_*() functions and tell the IOMMU core this way. That
will also fix iommu=pt/nopt.
Thanks,
Joerg
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]