[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <77ee40c6-392c-5094-c945-a63dc370188d@linux.intel.com>
Date: Thu, 15 Aug 2019 12:46:01 +0800
From: Lu Baolu <baolu.lu@...ux.intel.com>
To: Joerg Roedel <joro@...tes.org>
Cc: baolu.lu@...ux.intel.com, corbet@....net, tony.luck@...el.com,
fenghua.yu@...el.com, tglx@...utronix.de, mingo@...hat.com,
bp@...en8.de, hpa@...or.com, x86@...nel.org,
linux-doc@...r.kernel.org, linux-ia64@...r.kernel.org,
iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org,
Thomas.Lendacky@....com, Suravee.Suthikulpanit@....com,
Joerg Roedel <jroedel@...e.de>
Subject: Re: [PATCH 03/10] iommu/vt-d: Request passthrough mode from IOMMU
core
Hi Joerg,
On 8/14/19 9:38 PM, Joerg Roedel wrote:
> From: Joerg Roedel <jroedel@...e.de>
>
> Get rid of the iommu_pass_through variable and request
> passthrough mode via the new iommu core function.
>
> Signed-off-by: Joerg Roedel <jroedel@...e.de>
Looks good to me.
Reviewed-by: Lu Baolu <baolu.lu@...ux.intel.com>
> ---
> drivers/iommu/intel-iommu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
> index bdaed2da8a55..234bc2b55c59 100644
> --- a/drivers/iommu/intel-iommu.c
> +++ b/drivers/iommu/intel-iommu.c
> @@ -3267,7 +3267,7 @@ static int __init init_dmars(void)
> iommu->flush.flush_iotlb(iommu, 0, 0, 0, DMA_TLB_GLOBAL_FLUSH);
> }
>
> - if (iommu_pass_through)
> + if (iommu_default_passthrough())
> iommu_identity_mapping |= IDENTMAP_ALL;
>
> #ifdef CONFIG_INTEL_IOMMU_BROKEN_GFX_WA
>
Powered by blists - more mailing lists