Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4673413imm; Mon, 14 May 2018 10:58:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrmf8oqcUjN3nM0073BHFZyVKt725Sm2uFBNU/SnKCaaF49uHajcZwVWz7vJTn+KuuoHT+7 X-Received: by 2002:a17:902:20e8:: with SMTP id v37-v6mr510400plg.354.1526320708745; Mon, 14 May 2018 10:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526320708; cv=none; d=google.com; s=arc-20160816; b=sB8BKO7QR5vykuIK5+Cn6YDJrZs7ILnHqWidG/tfm8G0jTznoJuCWeeSYJMREjbn3H oc8SSJth5aZjiDdj3KJ5YGV2h9OknvU0BBfvJK7COI4xO7q0N0p74V0g8U1ndTRXSAxg z2yYPJiO2oKh8lkJ+eSOWUuwP01cP1iqZiA44Q+XmygZ1+iobjAlXmSf428nzLJRk1l/ bq9KQBSzwBe2qm9ZiEZf2a7sLnVe27fpHAMYPtW16raWkdFEb9PcpFYSPgrDuXbLB6YA fVciWTHfWL+C3LYuADQmH/iTBhvwbH0eL3EeOPEmEEzY5TLqutuJ5cYUFoOw/CbrtFpu aqzA== 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:cc:to:subject:dkim-signature :arc-authentication-results; bh=So/D8CTd4En0i6o3CfvJKy7KGe+FoF/lu+oNmMX21kc=; b=ck5oQTGU2FmuLQ57naHGoIB/LyoP9YGVxXxIOD4bmS2k1/JJccM2T9pVKgGC0EDI42 Pooex5PZTJ+bPINR6OIKPMvO8iqk4T4PGRkcql9hGNYYJh1HSr7DAyX/fHok+yWdCzVn 5YQG1i9z2SZj+Vo0yJhcgEr+DD9eSQlarOejaCHwVk8tyrrV2W3+ErNyKvE/AMdQxcGy yjGhuuV/4X6LePbmxWIT2sidORbwZyU6aIC70kAQIRskAMHMAeXHmIry7wpBFV5QhcDp dnTGb1xjQz9iDGUUzeuZTzuBbEG8SFglmNXz72LWmR7ZsDQhRLyQ5B6jhl8YMd0DzGZn M5Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=BTOmATwn; 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 g5-v6si9686283pfh.271.2018.05.14.10.58.02; Mon, 14 May 2018 10:58:28 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=BTOmATwn; 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 S1752127AbeENRuf (ORCPT + 99 others); Mon, 14 May 2018 13:50:35 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37412 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752045AbeENRue (ORCPT ); Mon, 14 May 2018 13:50:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=So/D8CTd4En0i6o3CfvJKy7KGe+FoF/lu+oNmMX21kc=; b=BTOmATwnn8iYcKOMPau37jBEn FwYEB7UWphqNiawSWBaaW9gyKIkbgYRPBFDbwWGaXcQLC6Uof9IlkP8g87dy0Mr13vlFICxQJ0Ruo X1ZGvu+pLNMwM6uNSVYmeQUF14/beLD1Xo2Phf9AljbNZOGYAVUogpJ2Rl55VJQqh2D5S7fRsu/6d UtHEvKMMODaqYmCsbzlysX8Ak3863IXXG0M9B9uxyL8cwWlnHO9/GbykflcWZGkcQz0snCEwMtFnR jPmEDbcqL010vn8llu0niVJfK3aoJpuK43dwgDPkDbKTSPpsU1D0a1iI/CwlaWsHP7YFX2YowbW6L 1gCCoAwaw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIHcE-0003eL-5s; Mon, 14 May 2018 17:50:30 +0000 Subject: Re: [PATCH v7 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU To: Gary R Hook , iommu@lists.linux-foundation.org Cc: joro@8bytes.org, linux-kernel@vger.kernel.org References: <152631818082.18929.13970142119193316487.stgit@sosxen2.amd.com> <152631842907.18929.8819955271544326298.stgit@sosxen2.amd.com> From: Randy Dunlap Message-ID: Date: Mon, 14 May 2018 10:50:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <152631842907.18929.8819955271544326298.stgit@sosxen2.amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/14/2018 10:20 AM, Gary R Hook wrote: > Implement a skeleton framework for debugfs support in the > AMD IOMMU. > > Signed-off-by: Gary R Hook > --- > drivers/iommu/Makefile | 5 +++++ > drivers/iommu/amd_iommu_debugfs.c | 39 +++++++++++++++++++++++++++++++++++++ > drivers/iommu/amd_iommu_init.c | 6 ++++-- > drivers/iommu/amd_iommu_proto.h | 6 ++++++ > drivers/iommu/amd_iommu_types.h | 3 +++ > 5 files changed, 57 insertions(+), 2 deletions(-) > create mode 100644 drivers/iommu/amd_iommu_debugfs.c > > diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile > index 74cfbc392862..dd980f7dd8b6 100644 > --- a/drivers/iommu/Makefile > +++ b/drivers/iommu/Makefile > @@ -30,3 +30,8 @@ obj-$(CONFIG_EXYNOS_IOMMU) += exynos-iommu.o > obj-$(CONFIG_FSL_PAMU) += fsl_pamu.o fsl_pamu_domain.o > obj-$(CONFIG_S390_IOMMU) += s390-iommu.o > obj-$(CONFIG_QCOM_IOMMU) += qcom_iommu.o > + > +# This ensures that only the required files are compiled > +ifeq ($(CONFIG_IOMMU_DEBUGFS), y) Most Makefiles don't use a space before the 'y', but since you tested it, I guess either way works. But why do this in the Makefile at all? Why not just add another Kconfig symbol and simplify the Makefile? > +obj-$(CONFIG_AMD_IOMMU) += amd_iommu_debugfs.o > +endif -- ~Randy