From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D506C433E0 for ; Mon, 15 Jun 2020 07:20:11 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 605E52068E for ; Mon, 15 Jun 2020 07:20:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 605E52068E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 32360888F6; Mon, 15 Jun 2020 07:20:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fKa9CtG-3FFA; Mon, 15 Jun 2020 07:20:10 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id 0C79B888EC; Mon, 15 Jun 2020 07:20:10 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id D6726C0890; Mon, 15 Jun 2020 07:20:09 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7CAE7C016E for ; Mon, 15 Jun 2020 07:20:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 641A686EFD for ; Mon, 15 Jun 2020 07:20:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g0whaXi3Wav1 for ; Mon, 15 Jun 2020 07:20:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 3DC1286E8F for ; Mon, 15 Jun 2020 07:20:07 +0000 (UTC) IronPort-SDR: ZexomesUp1Km56ETKYRekswgvDjL9SDxXYtx7XvXPMlwZ265kChhvtpQ1DTllOLd5WRnR/6WUv Egn6v+SINdFg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2020 00:20:05 -0700 IronPort-SDR: pVjKcvD5DUuXyhgZT/+naM0K/wlrsMopD51B8UUhQTP3hZZFhEZH31f+pgYgEtpm5B0DDhvfBj ZNbGfr7bb5DA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,514,1583222400"; d="scan'208";a="382433255" Received: from blu2-mobl3.ccr.corp.intel.com (HELO [10.249.172.204]) ([10.249.172.204]) by fmsmga001.fm.intel.com with ESMTP; 15 Jun 2020 00:20:03 -0700 Subject: Re: [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES To: Koba Ko , David Woodhouse , Joerg Roedel References: From: Lu Baolu Message-ID: <111dde48-8018-6d74-5df8-1534143f4de6@linux.intel.com> Date: Mon, 15 Jun 2020 15:20:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Cc: "Sun, Jian" , "Raj, Ashok" , Linux Kernel Mailing List , iommu@lists.linux-foundation.org, Kai Heng Feng X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" SGkgS29iYSBLbywKCk9uIDIwMjAvNi8xNSAxMToxOSwgS29iYSBLbyB3cm90ZToKPiBoaSBBbGws Cj4gSSBoYXZlIGEgbWFjaGluZSBhbmQgdGhlcmUncyBvbmx5IGludGVsIGdwdS4KPiB0aGUgc2Vj dXJlYm9vdMKgYW5kIHZ0LWQgaXMgZW5hYmxlZMKgaW4gQklPUy4KPiBPbiB0aGUgVWJ1bnR1IGRl c2t0b3AsIEkgZG8gczJpZGxlIGZpcnN0IGFuZCByZXN0YXJ0IHRoZSBtYWNoaW5lLgo+IFRoZSBt YWNoaW5lIGNhbid0IHJlc3RhcnQgc3VjY2Vzc2Z1bGx5LCBzbyBJIG5lZWQgdG8gcHJlc3MgdGhl IAo+IHBvd2VywqBidXR0b24gdG8gc2h1dGRvd24uCj4gSSB0cmllZMKgIGVhY2ggb2YgdGhlIGZv bGxvd2luZyBhbmQgdGhlIGlzc3VlIGNhbid0IGJlIHRyaWdnZXJlZC4KPiAxLiBkaXNhYmxlIHNl Y3VyZSBib290wqBpbiBCSU9TLgo+IDIuIGludGVsX2lvbW11PW9mZi4KPiAzLiBpbnRlbF9pb21t PWlnZnhfb2ZmLgo+IDQuIG5vbW9kZXNldAo+IDUuIG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