Received: by 10.223.176.46 with SMTP id f43csp1309988wra; Fri, 26 Jan 2018 16:01:40 -0800 (PST) X-Google-Smtp-Source: AH8x224eWi4jpjuaWh9/RrlwWFPcb2mFMVztskjzYDbZxwM3zao7BCJaFqqSAtsgV1QobXtuIrFO X-Received: by 2002:a17:902:9044:: with SMTP id w4-v6mr15715411plz.354.1517011300179; Fri, 26 Jan 2018 16:01:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517011300; cv=none; d=google.com; s=arc-20160816; b=JLCCXJB/WpUlP0gru7K7+K+WsaYhm9SGiWFF384c9vTHMxwOwUDHSyUsLV4ockSzvA IrrwMZCbBnxADobzbBN3p/6PQEgnhWCHjJaGGMbqBkyvZteaYtNmadbzq/A/O8APwugh /Los1ypma3fHF7lTQJ+91SkUU3MT7z1PlKNIXgvnZYzCEs3JlUem8/I2fIEIZKTfykoV kJHwBQTp5wH8SlGdl7w49jHr/Qt2npDvtyiby2vN7CaVnEqmHU1ux3qhwDV/lJ8eQ3A5 ZFA9IYhYRTRGnr/NC4+fFDav61NLTT3tMHu82OTfH1CgWFWYMXEtt+7iiH7VBosgrJeb QFEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=WQO4u1Lkwz7E4gwO0pquiQfHFga/u11oP4yr6Ly8Geg=; b=maRTtnBHmu8BFewLA/tOwSfffW+iVNYbVDfpE6c9KYz/WTR2N7vylb5MNt6BDAUXy9 Kuz3/5IEhM2g4SyOyDRBYbHQJI8bdTRpKo/POGWgyU303OEL/SQSE7wH7jT4yD6cmxeJ cKlBXcD9OXXpz9zgBXhk91IXZF219wzaoEoqts9noRX2N0oX1glwhv4j5WIr3vGzJ72Q 03Rp/qm8dMDBisc0Ik4euTQu7uIYVMOA5imMoIgS1L8RuoTD7jmtpnMdzs3zpdy/dTLo W0dI+kNYB8ILmpnfWZcY2VwqfbDcPcD9F1JI9gbgIrdonID+oYCLhA4iGhR8Il5OGfNe abMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb5-v6si1794075plb.93.2018.01.26.16.01.25; Fri, 26 Jan 2018 16:01:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752022AbeA0ABA (ORCPT + 99 others); Fri, 26 Jan 2018 19:01:00 -0500 Received: from mail.skyhub.de ([5.9.137.197]:54554 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbeA0AA7 (ORCPT ); Fri, 26 Jan 2018 19:00:59 -0500 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id n9q3yGBrZceu; Sat, 27 Jan 2018 01:00:57 +0100 (CET) Received: from pd.tnic (p200300EC2BCF3A0024194793E6CFFC7A.dip0.t-ipconnect.de [IPv6:2003:ec:2bcf:3a00:2419:4793:e6cf:fc7a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id AB1A11EC03EA; Sat, 27 Jan 2018 01:00:57 +0100 (CET) Date: Sat, 27 Jan 2018 01:00:45 +0100 From: Borislav Petkov To: Gary R Hook Cc: iommu@lists.linux-foundation.org, joro@8bytes.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] iommu/amd - Add debugfs support Message-ID: <20180127000045.gatkndpu64no3o3j@pd.tnic> References: <151701071164.16448.3611271062222336838.stgit@taos> <151701073560.16448.7715293076458740364.stgit@taos> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <151701073560.16448.7715293076458740364.stgit@taos> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 26, 2018 at 05:52:15PM -0600, Gary R Hook wrote: > Create the basic debugfs functions. Expose a count of IOMMU device > table entries that appear to be in use. > > Signed-off-by: Gary R Hook > --- > drivers/iommu/Kconfig | 9 +++ > drivers/iommu/Makefile | 2 - > drivers/iommu/amd_iommu_debugfs.c | 112 +++++++++++++++++++++++++++++++++++++ > drivers/iommu/amd_iommu_init.c | 7 ++ > drivers/iommu/amd_iommu_proto.h | 6 ++ > drivers/iommu/amd_iommu_types.h | 3 + > 6 files changed, 136 insertions(+), 3 deletions(-) > create mode 100644 drivers/iommu/amd_iommu_debugfs.c > > diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig > index f3a21343e636..7753989b6be7 100644 > --- a/drivers/iommu/Kconfig > +++ b/drivers/iommu/Kconfig > @@ -135,6 +135,15 @@ config AMD_IOMMU_V2 > hardware. Select this option if you want to use devices that support > the PCI PRI and PASID interface. > > +config AMD_IOMMU_DEBUG > + bool "Expose AMD IOMMU internals in DebugFS" > + depends on AMD_IOMMU && DEBUG_FS > + default n > + help > + With this option you can enable access to AMD IOMMU registers and > + data structures through debugfs. Select this to see information > + about the internal state of the device. > + > # Intel IOMMU support > config DMAR_TABLE > bool > diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile > index 1fb695854809..d9e9ed5f6cfc 100644 > --- a/drivers/iommu/Makefile > +++ b/drivers/iommu/Makefile > @@ -9,7 +9,7 @@ obj-$(CONFIG_IOMMU_IO_PGTABLE_LPAE) += io-pgtable-arm.o > obj-$(CONFIG_IOMMU_IOVA) += iova.o > obj-$(CONFIG_OF_IOMMU) += of_iommu.o > obj-$(CONFIG_MSM_IOMMU) += msm_iommu.o > -obj-$(CONFIG_AMD_IOMMU) += amd_iommu.o amd_iommu_init.o > +obj-$(CONFIG_AMD_IOMMU) += amd_iommu.o amd_iommu_init.o amd_iommu_debugfs.o That looks like it needs to be: obj-$(CONFIG_AMD_IOMMU_DEBUG) += amd_iommu_debugfs.o -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.