Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2143273ybk; Mon, 11 May 2020 13:01:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxi659rz2humk/IPis1oc/CMQ5dMwWHd/q7l1D9HP6YkZFoF+I75JyqUGtB4HGnpE1HBwuv X-Received: by 2002:a17:906:404a:: with SMTP id y10mr5749740ejj.130.1589227291097; Mon, 11 May 2020 13:01:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589227291; cv=none; d=google.com; s=arc-20160816; b=GathN8tTasnp0mtFXXPtjtf5HNC1H2Cl19mkmVbg8OhIy7QTpcf5JSx1mjhHRxJtAq KxWd9Vw8apRWS8xJQn38mP+VhvFJoBbtvMifJLOolT5lJKq2RFK7CH8TaXMlxv8B890M c2Ipo248dk3BCxunb2/AyoIXXrbKewDAvfPi0KWa1r6iGf+dt8rg3cg7haZ8Tp92V2lG xL5WVRNpCBVIz42NbQnW5SgclkWhz+mUj5e4dZ9YEus8QUzpp+2GZzgkFMZ0nrMBSTTJ zEamB9Fxcxp7MKJes7aFS2YIJNETF5nFFdxKDL7CVF0yjZKQNUuQesC4s4Bn7UgiLvug 6AEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=4+vlk7OUUML8j0oYtCGwi6P/VCbSkhYL2SD6aQhiX54=; b=ewZqOpFAv+FJdhaAPa8dih4kZqqq/eQa6i4tRxjd0Gl38e4Csk2UJUF6VDbdegC4eo 3F5jMto3LE7t5zijMQD8xWCt4ku7ENRrQnZWJ6lngfMpMn3JvDsMHSBVk1Ab422bsp4q FqaJZF3R9DpcpI5omM7F+K6qvxFTcsCSDQDoKyuZ9KDMA9zAphhnkfjbchTrBWJ8SdOH PbVlEmx4sk+IlGVvr6/W64GLad9TgFZn+YCpw9eOybypAnzaypULBPRlRMlkYshatOU0 +tsE7SjgYN6M84KzgWqQIIGOY5R2Q/6Lt6ZIXbsvJFPgkD0ZJlTYMgBSjSYnAn1ERR87 UHBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si6240223edx.30.2020.05.11.13.01.06; Mon, 11 May 2020 13:01:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731006AbgEKT7j (ORCPT + 99 others); Mon, 11 May 2020 15:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727873AbgEKT7i (ORCPT ); Mon, 11 May 2020 15:59:38 -0400 Received: from antares.kleine-koenig.org (antares.kleine-koenig.org [IPv6:2a01:4f8:c0c:3a97::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D3D9C061A0C for ; Mon, 11 May 2020 12:59:38 -0700 (PDT) Received: from antares.kleine-koenig.org (localhost [127.0.0.1]) by antares.kleine-koenig.org (Postfix) with ESMTP id 4CE23981F37; Mon, 11 May 2020 21:59:36 +0200 (CEST) Received: from antares.kleine-koenig.org ([94.130.110.236]) by antares.kleine-koenig.org (antares.kleine-koenig.org [94.130.110.236]) (amavisd-new, port 10024) with ESMTP id 3Ip4xBYKo8r1; Mon, 11 May 2020 21:59:35 +0200 (CEST) Received: from taurus.defre.kleine-koenig.org (unknown [IPv6:2a02:8071:b5ad:20fc:b16d:97d8:dc6:6810]) by antares.kleine-koenig.org (Postfix) with ESMTPSA; Mon, 11 May 2020 21:59:35 +0200 (CEST) Subject: Re: Failure to shutdown/reboot with intel_iommu=on To: Lu Baolu , Joerg Roedel Cc: linux-kernel@vger.kernel.org, rafael.j.wysocki@intel.com, tglx@linutronix.de, x86@kernel.org References: <20200506144558.GA4019@taurus.defre.kleine-koenig.org> <20200508150734.GP8135@suse.de> From: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= Autocrypt: addr=uwe@kleine-koenig.org; prefer-encrypt=mutual; keydata= mQINBEwXmCYBEACoJSJcKIlkQcTYia0ymmMOBk2veFoy/a0LlqGUEjQ4WECBL19F2BYX1dSp 5/ZdfKuV605usI6oq4x6k/LKmqZDl6YnqW/YmN/iZVCRunBRfvpTlL4lcNUu5Va/4GBRzBRr rrIhCIVL5zMV6hKywhHKTdOHVSZRftf+eRSBwENKXahmfOMDmekyf585etDPdzkFrLHNVFOC sFOU0gCK0uVPyY0LH13eo4qEEMi88RCOfwYCFQqKXDdo41DWoDPB5OGCMaphIx9wC/nvtdcv MowsGde5iGgmHWK6sdC/O/xaV7fnz1sJzoJB1eT91LkGbdGxsLAT6nqlaNJiJtiBoRhscguV xVbn/I9mnUu7bLmTFBEAlaQGU/J7uQ4w94FXfosNGROt/otqltetMZlPbNvNhKnXv8U6eRyA P3ZMKTJa4hGr3UdYdt4+MIiHcsANWp8T7oLYVxRbHPXPG49IURnhXUoGbscZmpptWcl29ebo qCxL9n3KIyUT3ZB1xHbW3Sk/Dqzf52tQOxZubzrpUJ8zaGIwYVUjfcPFwf3R3zrQvJq7mI4S ddNIE8w3WJOPXDOYx7GjOa+IubhSpCrr74NbN8q9oS3hnsqWw16i3HSUuPuYeZo1t6D5p/mX EVyZ2QrS1kGgGi7bmlQMSFkb6g1T8aWSYuX3PBYq2VntnWAXPwARAQABtClVd2UgS2xlaW5l LUvDtm5pZyA8dXdlQGtsZWluZS1rb2VuaWcub3JnPokCVwQT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iq2Wbz5mqTkDzQyGyHfAsYcHLhxU05WP2vZZL5njrV0PxsF4d7rJ36c 8zbvKvWfouPyeBXhXc4LNWwoopOa/+p+qJ+JBehURYaTu1U0UL9v4KhDIBPpHMI3Ia/yOe8x NgaAqD54tC3LAtxbOAq1jQBnBOAMInyioFDCP1bscVqePHILf33qCZG8PUZrFR4h8xIXFp5U 6uMoO1VgFtcQHWHTtbSYLQ8YHVFZMQ== Message-ID: <11a3945a-f743-ac32-135c-1de026da66c9@kleine-koenig.org> Date: Mon, 11 May 2020 21:59:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="c7xWBYgS2Jj9YrH84kW6uZ6LrEiWz3fr9" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --c7xWBYgS2Jj9YrH84kW6uZ6LrEiWz3fr9 Content-Type: multipart/mixed; boundary="HmNwS4eaVciVELKESsxF3anwMslmteeFd"; protected-headers="v1" From: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= To: Lu Baolu , Joerg Roedel Cc: linux-kernel@vger.kernel.org, rafael.j.wysocki@intel.com, tglx@linutronix.de, x86@kernel.org Message-ID: <11a3945a-f743-ac32-135c-1de026da66c9@kleine-koenig.org> Subject: Re: Failure to shutdown/reboot with intel_iommu=on References: <20200506144558.GA4019@taurus.defre.kleine-koenig.org> <20200508150734.GP8135@suse.de> In-Reply-To: --HmNwS4eaVciVELKESsxF3anwMslmteeFd Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 5/9/20 3:58 AM, Lu Baolu wrote: > Hi Uwe, >=20 > Have you tried commenting out intel_disable_iommus() in > intel_iommu_shutdowan()? >=20 > 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) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for_each_iommu(iommu, drhd) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 iommu_disable_protect_mem_regions(iommu); >=20 > +#if 0 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* Make sure the IOMMUs are = switched off */ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 intel_disable_iommus(); > +#endif >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 up_write(&dmar_global_lock);= > =C2=A0} I just tested that and it didn't help. The machine still hangs with the same symptoms as reported before. Best regards Uwe --HmNwS4eaVciVELKESsxF3anwMslmteeFd-- --c7xWBYgS2Jj9YrH84kW6uZ6LrEiWz3fr9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAl65rqMACgkQwfwUeK3K 7Al7tgf9EVdAdUDtHHR0SFi2yKFDXJyY34UAQl0706eCgjSTCx8I1t+kmDS4mSqI F3Xk/tpo1JPMheIK3w1HmE18u25znOSRDy6AEqmx5VFX5qpE/CWsyCZJLZf3vWtz ZPb22WPXSZOj2EMWwGv/2QqeInpTtcGSVt11TLHJEd79qL5R4GhGOehW3Z6oFGZ2 wzAkdCL3wE3eh4venscTVvv9+DXfdzGohSGTBVlJHV7pT09PHkEHtcM9sM1R7rR9 kasSNn5gIh6azBMRxYExaSNomPAbOf4ii6B+8MGFleD7yUGaEzwm1zKBn3H/TaAn 0e1RHmLR/XL4yLAYvdFWZCtzcmwiKg== =7Iko -----END PGP SIGNATURE----- --c7xWBYgS2Jj9YrH84kW6uZ6LrEiWz3fr9--