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=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 44AB0C0044D for ; Sat, 14 Mar 2020 19:03:13 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 C67C520789 for ; Sat, 14 Mar 2020 19:03:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C67C520789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=8bytes.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 83FDD25B9E; Sat, 14 Mar 2020 19:03:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BI9HxqdRKkwm; Sat, 14 Mar 2020 19:03:11 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id AF9C9207EF; Sat, 14 Mar 2020 19:03:11 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 919AFC18DA; Sat, 14 Mar 2020 19:03:11 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id B0852C0177 for ; Sat, 14 Mar 2020 19:03:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A6B8422DEC for ; Sat, 14 Mar 2020 19:03:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r9qCuS0RZILr for ; Sat, 14 Mar 2020 19:03:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from theia.8bytes.org (8bytes.org [81.169.241.247]) by silver.osuosl.org (Postfix) with ESMTPS id DAF05207EF for ; Sat, 14 Mar 2020 19:03:08 +0000 (UTC) Received: by theia.8bytes.org (Postfix, from userid 1000) id 9492235A; Sat, 14 Mar 2020 20:03:04 +0100 (CET) Date: Sat, 14 Mar 2020 20:03:01 +0100 From: Joerg Roedel To: Lu Baolu Subject: Re: [PATCH v2 1/1] iommu/vt-d: Populate debugfs if IOMMUs are detected Message-ID: <20200314190301.GR3794@8bytes.org> References: <20200314033959.21904-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200314033959.21904-1-baolu.lu@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Cc: iommu@lists.linux-foundation.org, Megha Dey , Dan Carpenter 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Sat, Mar 14, 2020 at 11:39:59AM +0800, Lu Baolu wrote: > From: Megha Dey > > Currently, the intel iommu debugfs directory(/sys/kernel/debug/iommu/intel) > gets populated only when DMA remapping is enabled (dmar_disabled = 0) > irrespective of whether interrupt remapping is enabled or not. > > Instead, populate the intel iommu debugfs directory if any IOMMUs are > detected. > > Cc: Dan Carpenter > Fixes: ee2636b8670b1 ("iommu/vt-d: Enable base Intel IOMMU debugfs support") > Signed-off-by: Megha Dey > Signed-off-by: Lu Baolu > --- > drivers/iommu/intel-iommu-debugfs.c | 11 ++++++++++- > drivers/iommu/intel-iommu.c | 4 +++- > 2 files changed, 13 insertions(+), 2 deletions(-) Applied, thanks. _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu