Re: Failure to shutdown/reboot with intel_iommu=on
From: Uwe Kleine-KÃnig
Date: Mon May 11 2020 - 15:59:41 EST
On 5/9/20 3:58 AM, Lu Baolu wrote:
> Hi Uwe,
>
> Have you tried commenting out intel_disable_iommus() in
> intel_iommu_shutdowan()?
>
> diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
> index 0182cff2c7ac..532e62600f95 100644
> --- a/drivers/iommu/intel-iommu.c
> +++ b/drivers/iommu/intel-iommu.c
> @@ -4928,8 +4928,10 @@ void intel_iommu_shutdown(void)
> ÂÂÂÂÂÂÂ for_each_iommu(iommu, drhd)
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ iommu_disable_protect_mem_regions(iommu);
>
> +#if 0
> ÂÂÂÂÂÂÂ /* Make sure the IOMMUs are switched off */
> ÂÂÂÂÂÂÂ intel_disable_iommus();
> +#endif
>
> ÂÂÂÂÂÂÂ up_write(&dmar_global_lock);
> Â}
I just tested that and it didn't help. The machine still hangs with the
same symptoms as reported before.
Best regards
Uwe
Attachment:
signature.asc
Description: OpenPGP digital signature