Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1368228ybt; Sun, 14 Jun 2020 20:49:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi4lBskmJ2IOf742eTI18+iubGDs5PhMgxMlpHOwly2ZQ8eACYyUaGOlgt3UPWdneG1qsi X-Received: by 2002:a50:fb86:: with SMTP id e6mr22866669edq.65.1592192952257; Sun, 14 Jun 2020 20:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592192952; cv=none; d=google.com; s=arc-20160816; b=yowZH4xmu22WcjZSHwZrUSvjBpImQhOwvBmyecoQw8awhyUqWpJXpWDVGkvJLHmNyu U4LgWGFDW0smVPe4Rh42UwOK6ihJOVIxk0ez+mnXq8XpHJKXGmWbz/M/KMiawf+QGhrp BeOQ7/XG3uO6aTgicgGp0ZiyY0+LOVcsHJTAdN82KZGPenKipRBbKFlsFdCCfTyS5Tx3 OX9mYwjoku+vacr5P7dPJEZvmKi0+lR1bzt8F4LV0Hp6EnT8lXtiVuk8Yk9pntwbXpqs s4gCdHFI/NAy/I4XhY6zEtsonZhaH6u8jpey7YrE3fqgrzlKqQOWS39ABnL76GRq3hfk sp0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version; bh=gLj1m6P/PsBOj+/yO4bax2TzGsrqf3sQFXrDZYfsUSU=; b=Tl7j1qjiAk0XwsoGn3N+E/fKyAS09oCbHdxCfpZmfhoMrd36YcyVkjLKDSQTvKRwO6 Cxm/Wgxb1sjoxD9hBvYgBOBnRCNFHuOITPKn7trtW+HKASe6FRj+eCK75cqci8cl7xoX wDGJIG2aSiFIrcgQGQFhUDY8G6PwPgNzcMQ1hzkeXbI/eyUQJzogc1UUo+pv2iAUlY1W 6029CXS6dZySb07woXcinbMc09doOMBeUEQqBDPGGpjHuhFRnC2WkHnAlXpehX6C3TBQ yCsUSU5YsCyQ9qEhyuTTpIdmBiLwdpgH3bra149QwWk+TnWz/38EvCu3t/54KgUGt2GI F4kQ== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm19si7894755edb.59.2020.06.14.20.48.48; Sun, 14 Jun 2020 20:49:12 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728206AbgFODrF (ORCPT + 99 others); Sun, 14 Jun 2020 23:47:05 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:48192 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728044AbgFODrF (ORCPT ); Sun, 14 Jun 2020 23:47:05 -0400 Received: from mail-oi1-f198.google.com ([209.85.167.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jkg5O-0004u4-NX for linux-kernel@vger.kernel.org; Mon, 15 Jun 2020 03:47:02 +0000 Received: by mail-oi1-f198.google.com with SMTP id q65so4515243oig.15 for ; Sun, 14 Jun 2020 20:47:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=gLj1m6P/PsBOj+/yO4bax2TzGsrqf3sQFXrDZYfsUSU=; b=T0EDTXVKF64BuOkHLkeVRdebioWm0x9COc/0iE5PCLjBYyq6XII4TOKgLdcjA1hfPl s04aWM3pV+g1+xHvYqRTd/Xa8IbxxzbE8Sngdkw56X9LnXhizqg7QFET6A+CfN4gsYRW QpoirK/vzOjeqqBn3dwB5/yI1Qed/ji1NbAWCyhe2zSSPfOy2dJakE4EePOTRGCLqmiH n0dDTxUAqkO6M0y3bS6iwPxmTW+kHjLR2HN/qd3f+/mDkeEFfvMlc5JnqNOw5FHeh4uo /OuefI4rxeM3G1SHNk7lvsu8Rn3OkgiZS8tPfsmNxKAF4itbd9dpI8E3a0UKcQFS0z2A A8oA== X-Gm-Message-State: AOAM5317V/S+ZqLkj9xhcNSRqNSOQ1tbHNyBY8fKc+p2DA0wbbJfS91F fZujvIi8hngW5GE9SOvuAbVGQwZBB1g68nNAyCChtkA4Z605cu+eG+1bJ1M4ocP2xqULsazEFsl /6Dl6KdgdXelqc9KtLwFKHGo+yinKsyuFhMLoLBmWQ8/rz+BfgH9Sa41Baw== X-Received: by 2002:aca:4dc3:: with SMTP id a186mr7707136oib.17.1592192821756; Sun, 14 Jun 2020 20:47:01 -0700 (PDT) X-Received: by 2002:aca:4dc3:: with SMTP id a186mr7707130oib.17.1592192821489; Sun, 14 Jun 2020 20:47:01 -0700 (PDT) MIME-Version: 1.0 From: Koba Ko Date: Mon, 15 Jun 2020 11:46:50 +0800 Message-ID: Subject: [Issue]platform/x86: iommu: System can't shutdown because iommu driver keeps checking the status of DMA_GSTS_TES To: David Woodhouse , Lu Baolu , Joerg Roedel Cc: iommu@lists.linux-foundation.org, Kai Heng Feng , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 the status of DMA_GSTS_TES until status of DMA_GSTS_TES is 0. If you need more information, I can provide it. Thanks Koba Ko