Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4783659imm; Mon, 14 May 2018 13:01:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrcHGk8HL3aGwt3i+y2Usph2cu9F6KGAhLKM86GhTYg07P312c3YIvQZ+B+k3LTLa0GrhU5 X-Received: by 2002:a63:a74a:: with SMTP id w10-v6mr9757698pgo.109.1526328083512; Mon, 14 May 2018 13:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526328083; cv=none; d=google.com; s=arc-20160816; b=LOvy7YqguX0nO6tXyuf/qWa8iHqnE3/6OQT20OCiAbT/46gxjFWDn1W2jYm3vXITQh kuk3HHR9ucIvGT+AY9njf5qn1QqOnXqXH5rI5PQVMPD7Uutw1bBA6BjRXJhNDk/2N1TI 6jUftNBXgHWByNCgRLUNg8lkmb3RrZaRSuBs6GLwRNTapCtqCo6EEw1B+4ZigFumabGG dHoKp26CGUwXV/e/gi1f9aBm49AkJCPwBLQ3CaOedqUyOm2nusxMT7T5liVApMjYD6KH N50BkQ7qZEHf+JPkzyHUu/l3kW6CIxPwQJWpX32hIjSVD8+7uBq7SgYXgAcsxwYWgxgC 5eFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput: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=KTImzdEuzzMIBT5SrgzHL4UJAIxHSuxUExnhpSPYCd4=; b=efuiyGu1pFtH85QL7lbxsmleD7dIPuFETWnRRRvOxXLv8LwX91pmaBemDNIhZiRWmU zajiJVyrLX+FJW1947aRrMU8CsZv0KR/x8ohEUXNnJJhf8AjBKdk81eKqxShhOWtFBkf lnPpAaVwRTIA2q8UJ9KcoKcR0q5UybP2BfeGN8OlOaRgGiNuLIRdN76ZA9RC8hW/ADKB 5EZosqdYV09mg+sP4QnDtA1Fz5rF9DvPzLvwJPnIP/CQNVf6P+zIkbdigvOMcqhKcSE6 SKE2Y1OnByZVlNPL0fekKiibVn9DtC/82PcsUA0XzSLob7DaC9E2HtAGR95u7v41OmC4 Kflg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=jnSRXYIk; 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 e11-v6si2467817pgf.469.2018.05.14.13.01.08; Mon, 14 May 2018 13:01:23 -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=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=jnSRXYIk; 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 S1752070AbeENUBA (ORCPT + 99 others); Mon, 14 May 2018 16:01:00 -0400 Received: from mail-dm3nam03on0045.outbound.protection.outlook.com ([104.47.41.45]:55723 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751422AbeENUA6 (ORCPT ); Mon, 14 May 2018 16:00:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=KTImzdEuzzMIBT5SrgzHL4UJAIxHSuxUExnhpSPYCd4=; b=jnSRXYIkEoj34rKurgZXR+yLy8LB1j/epF62fkXWLunoW6ZXbLaWtvhRyk+UQGKQmnS1XUd55+lFYnOZeGAKchFlCmI+EbC10KU4MYXDpOjq666DOBbWRC4JTyjqb/vGpOnEyEmuaCDFE/lriJPJPUUY0VCZ5Z/Jne3Bt47gRV0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Received: from [10.236.109.62] (165.204.78.1) by MWHPR12MB1453.namprd12.prod.outlook.com (2603:10b6:301:e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Mon, 14 May 2018 20:00:55 +0000 Subject: Re: [PATCH v7 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU To: Randy Dunlap , 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: Gary R Hook Message-ID: <5e45f38e-cb45-d4a1-f351-30543f787290@amd.com> Date: Mon, 14 May 2018 15:00:50 -0500 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: SN4PR0201CA0053.namprd02.prod.outlook.com (2603:10b6:803:20::15) To MWHPR12MB1453.namprd12.prod.outlook.com (2603:10b6:301:e::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:MWHPR12MB1453; X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1453;3:w4mdgpRFVifPuJCFSIoBtun4lUXM7Dx3pcCWeksgojP5MHzBGfTwPcOQUO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L2qCm1iNeIY1DXBuHx789YhSaf6tA6ZHvwdRLucm/MrU3MWx6IXp2UTfcXy9AzBkZl3uGlF3HEV4s+HGo2jmAQQc50xS7HjB0SBWjB286T1hmgIRHwVajyzVjC3E7CinQWw9ehVr5ckZ7dzB6jLeNAb5YqmUD/hmVyxZRB3vkgxVCjNd/pRs7U3SB1SNRIx9KtRT0T8eBSyWubhqlXsEL4mqScRVXbqLOrK0kpNw2XSQV4N3sgDAZ09/A8TJr+pTFNPciJ8AbVr1ibhwr57/2HQX+TAa;4:n3q8ObKHIpUH1awGjuHXprpP3XwaKzFYs/yU3+9kuPhoxo11B/+Z8LWzXWiM7BLMNyM2zyzQHq32CVsV5CQSEHRb78yvx4xWJOmlc70UkPr28XMLXmUukwzic9cFJ0tFhymEyQ8AdSn+YhpeNKINMG5r5Qp5kpFO7E3tiSEuppJNnfszTkzqvQpUVbB8PJ5uVB6v89wb3oa68RTKOsjQ6gPltx2F8Icm+Ufdg49YFPptCTcESGF8XN4lytOC82PPhx5DZNxwHWhBHQdcJDrBF5vQPSq32Kj/gZ7xnhldtd5de85LjG+ejzsCt83puIIq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:MWHPR12MB1453;BCL:0;PCL:0;RULEID:;SRVR:MWHPR12MB1453; X-Forefront-PRVS: 067270ECAF X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(346002)(366004)(376002)(396003)(39860400002)(39380400002)(199004)(189003)(97736004)(6116002)(31696002)(186003)(230700001)(53936002)(316002)(47776003)(6246003)(67846002)(3846002)(77096007)(23676004)(2486003)(52146003)(52116002)(72206003)(26005)(11346002)(446003)(956004)(478600001)(2616005)(476003)(86362001)(16526019)(76176011)(486006)(53546011)(386003)(229853002)(36756003)(81156014)(7736002)(81166006)(8676002)(8936002)(6666003)(106356001)(58126008)(105586002)(31686004)(6486002)(25786009)(5660300001)(65826007)(64126003)(16576012)(4326008)(2906002)(50466002)(68736007)(66066001)(65806001)(65956001)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR12MB1453;H:[10.236.109.62];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjEyTUIxNDUzOzIzOjErb3BFZlRBZFhOdXNKdWxucmNqODU0NkIy?= =?utf-8?B?WFJzT3F1cHVKc2dLd28xbnVPYmltQXNWRVk5akN5VjB5dU8zR05td29rMng5?= =?utf-8?B?SDJURXkvZENQbTR1M085Y3VCMjJBMGZHTFdXRUttNjJWM3ZFTC9RYldFY3JF?= =?utf-8?B?ZkVnSy9lVjcwUzNmYk1HN0pRbXNsZitoKzFBbzlGbXhwcGR0dXoyKzRVcmhh?= =?utf-8?B?WUlJSkl3WmpyemlvbmZpQXV3MmI1bkhUNGExSS9oWXgvaUduQkgrTnVoSi9t?= =?utf-8?B?ODBzNU1pSzJRd0lQUHByMnphMENvelFsV2h3aGQwdE1rMVVnVk9SaXpLMzlU?= =?utf-8?B?ZFcxVGJCSmduWmh6ZUlVemQ0d3piUGliT3FOWlIvUFVFZ1c1MDdoeiswK0pz?= =?utf-8?B?OEszM1F1SmRDOTRiM3BTdVEzbWF0RjFiWVhBa2s3RkoxV1lGZDJXSDVLU3Rz?= =?utf-8?B?RWVpT1Y0VklkZXdwMVBLa0RvWFBKQjlqRFdQRi9OSThVSy9HRzZFR1lodldK?= =?utf-8?B?RjhURHpneW83R1ZLMm9aOEZjVV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G8gPuRfsrqda5ist2qsayJMqqYT57hcKtNtMKR+LURjIBwORnap6n0b4yUO8E4LJWxs1Aco65pqxUJADaEOwe9LtnWSMpCRm90Iei4RsAPeW86N5F1U09WZwxL8KyM+cq1SUcqTzqI+PWB04ziO7DyGai4sTbmJVKWgQIcZjXdRq1jLQOgQg318dAECyDvtFIPYX2hvbUWy+6cdACC5Y/sFxA0vMXLl/ATwjA==;5:k2yC9HPdqib6fc5tky5N5PEiQlTwUJUV904HdQQhNnUCz0AlvDoXA+RwomSDRWTSBEDosD0ae6XAciOfZ8ISRvd6yPh8CB1VLIA0gd3pEtHed1xyunOtAizm+V9gpJb1bNKkIFb//8n96T7d4phz7elKoMAXIaa/DeXKUyu9Wc0=;24:C1b8DH5JOXW8YXF5s6VR6oUyZj39EYaNgD9kJaYq7hzXqUOKlTKG+M7OgsAWY7JBqUZjaJRJ1QwgHgOaHaNeAvsc8VglonTShTousSTmIEw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1453;7:MplqADNdB/ZUw7dpls0y5giDYNzU6wgq/aH/3mAxNycemSlViZS0rsa873JWjcRJn46DcbJJ4jY9Ti6sMXndO/cKvrJwtGduk+6Oti/i4eYmjFy7R72OSs+6Waedu3MGLAuhYhV0ZRNUInWh9G+NPnQLusxboE8C8OYVELauGBp62lPWKGutjPuJcH0mxg9gXuJqPWPUgHOd4HErmiJOxqpY77Ombmn6aFEOOOSkjILsxeDttcNzUA8i6iI9yDAK;20:RYH9V14rT6wuP1d6kcLWYqRTYR2bqcW6EQEVEKxXE6UgdQQBigmSDe0Zt42sDsOkgIoAbkzLeHs5ORwhUJDImQI7hgFsTLWGWMYT5agPfl1d0KpGFljw+x4pgcDTTjGdE0S1tOCHdMf3A06hAhqApj6IlRuOgeFjjoVU0MqThOL7EO6eoSop3K8pjmWZQqZHP6hcPAT9cMcj4IIiQDQMUJ2s5dkEl7VbWc6geWWTFKn2E6GMOOrVUdVAx6M04v2n X-MS-Office365-Filtering-Correlation-Id: 3b9f8d75-5cb9-4b23-4115-08d5b9d567cd X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2018 20:00:55.9564 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b9f8d75-5cb9-4b23-4115-08d5b9d567cd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1453 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/14/2018 12:50 PM, Randy Dunlap wrote: > 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. Pretty sure whitespace isn't used as a delimiter in this construct. I could be mistaken. But yes, it's perfectly serviceable. > 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 This was brought up a few weeks ago in, I believe, version 3 of this patch. That question was discussed (because that's what I did the first time out), and _someone_ _else_ asked about why I didn't just do it the way I've done it here. Everyone has a preference. I chose to simplify the choices and avoid multiple symbols, instead opting for two switches: choose your device, and decide on Debug FS enablement for it. IMO Very simple. I can't fathom a scenario where this wouldn't work. Is there one?