Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1460970ybt; Mon, 15 Jun 2020 00:22:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/Mu3EGOXzoIiUSQ3y7B4+1ooW/JUulThP1QhgIZehAtMkTsUMwUm1LOwmWpWJiKJ3J3cb X-Received: by 2002:a17:906:4756:: with SMTP id j22mr25422903ejs.490.1592205774747; Mon, 15 Jun 2020 00:22:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592205774; cv=none; d=google.com; s=arc-20160816; b=ggOjKE5h1kmiCTlVjUlfZ0ZCdyGRl/EVmkm/caDv4pR8M7PZkb4zXES6FJQd/y9Zdy v7sl5WkEH4pfxiFEBJKBeFrRJRogT4A5IPDttzXoWaO6dP6SFPdJ4yxhXXN8leQqZU8y RQqf+EqZfO7QQZ/oW/KWm5B0TywqTqF7GvMryBOHoz/xDrHhE2zFpUF75+lI+9Q7i+5n Ys954e0SSLVAfNHkCkb8J1sUk39SxUx0hZUrrvW79sOrdZF9XsLfaDJRr8m+wigd7aOr FNUbH71WBuEm11jfofUyed4qSKQQe5id8PZHA0uJt4e/TGdX8EUhZl65/aI6Hy5MbecZ WmsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:ironport-sdr:ironport-sdr; bh=54R+egEKVHGLTpp1ZC8fORQnTJTFj9T54OG4//jcStM=; b=IYm0CrkvXXtrIc0BANfByTu9fBLOOjVfwNstRmsAS9WnxSjT0jqT73mT3kiqUhqoy8 jgSR+IRGBlvi3VoUSZt882Z3pHbn0QLvnnl6yu1fuFqrnZFatx996xnm5Mo9EdmmIERp lP3nhwYConP1qCtwnlwODq3LxuyD4o4ziOrPdsR0VnFFS4xiS421RytyC4qzvJBILsDq 3F3IyjL3XruZV86xyjjJX6WY3QaJlN6Bnd8XwA+ipSCpfhsNwhVcTJhtXPGFrKRjPYLL kSlG39p28TbINH54xflAIAEqaEhFR8iOa1llE2J4WPoRR/mey6JZcNyVr5W4Ymjjka3s 0X8Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si1148129edf.460.2020.06.15.00.22.32; Mon, 15 Jun 2020 00:22:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728504AbgFOHUG (ORCPT + 99 others); Mon, 15 Jun 2020 03:20:06 -0400 Received: from mga06.intel.com ([134.134.136.31]:46777 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728268AbgFOHUG (ORCPT ); Mon, 15 Jun 2020 03:20:06 -0400 IronPort-SDR: N33jDiy6WlRnjBigzHEbGB1ze3x9aiOb6JyNGy3os0Hsg3qQ4RN2XKSZXsMRBXVKWGG40qxe4D m/ld/TkDIGmg== 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 Cc: baolu.lu@linux.intel.com, iommu@lists.linux-foundation.org, Linux Kernel Mailing List , Kai Heng Feng , "Raj, Ashok" , "Sun, Jian" 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-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Koba Ko, On 2020/6/15 11:19, Koba Ko wrote: > hi All, > I have a machine and there's only intel gpu. > the secureboot and vt-d is enabled in BIOS. > On the Ubuntu desktop, I do s2idle first and restart the machine. > The machine can't restart successfully, so I need to press the > power button to shutdown. > I tried  each of the following and the issue can't be triggered. > 1. disable secure boot in BIOS. > 2. intel_iommu=off. > 3. intel_iomm=igfx_off. > 4. nomodeset > 5. i915.modeset=0. > > After I investigate further, find inte_iommu keeps checking the status > of DMA_GSTS_TES. > During the procedure of restart, the driver would disable iommu > translation and > check status of DMA_GSTS_TES until status of DMA_GSTS_TES is 0. > > If you need more information, I can provide it. Do you mind telling what platform is it? Best regards, baolu