Received: by 10.192.165.156 with SMTP id m28csp348324imm; Tue, 17 Apr 2018 11:08:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/wIJj9vgDcGqlQbm0eTOHooe2tbEttKQI0ixiLZzRY6WkkAFVfVbRZ5p//R1AgbFuTb1zp X-Received: by 10.98.98.65 with SMTP id w62mr2897380pfb.256.1523988515792; Tue, 17 Apr 2018 11:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523988515; cv=none; d=google.com; s=arc-20160816; b=k9BbNxb07cWiY1RYTRboHZxRAoxxIpj6vSHAgHepTkDAfPN2qS4KWAQOMaffAPmQMq TQBzlp04NWq3Whe8b9ZTZVGTB45HfddXCNApqI62OmyanJXUPxgtv52kG3xYSy4UJMrh PcTUvrJl69adQvIMsWgtUblcyrtps2pubUER4QiAU40gpr0cz+nz4+zpY13cYJfO2WfZ ME1V4XcecNjv3ERoizfkZSjcptltJPh/yLeeH/A7kN1EXJVDuM0mW4VLU9llCYOacL90 pc7jCD2xbmuxev44TGzcdndEQDvV5naIbEpk+QVvXWPLxCUz6r4kKjpdzVPocq0HvH5m MBMA== 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=UTto6V+BXQAxVScbXTOLpBdrzknzA+7RQx1llcuDLzg=; b=EaeXQ2aZhCBHPsYpVwfAkyc1DfyBMLSs5yKHTXPPHMuGQWWfCfLztiZlpyjtGZeuH1 fql8QVamzxktlc087Ja/K8OE1EOIz9j9ZFODxMGqGDJUNWu1Hee/4WDR2Blcbbj8rPb0 Eb8fOZzwKMHapEXvZCgfxaR2OEVJCAKj+8jFho/jrlXzeQsDjkGTTNMnKZCklhoH3w3L kZxJYaEhxNs2XxmMY5gccureEr4id2Slcaf98N4zo5xjRSWATEf5jTDJUBlkNQKp7zIN m7DRlKRb0ZzGQM4FCftCR1jikvamNtetUUTXEkqieQK1cCfvCWtJ+pTXWA9qYELMCtUE sa2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=sNaJk1ZA; 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 t9-v6si4505469plo.592.2018.04.17.11.08.21; Tue, 17 Apr 2018 11:08:35 -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=sNaJk1ZA; 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 S1752658AbeDQSHM (ORCPT + 99 others); Tue, 17 Apr 2018 14:07:12 -0400 Received: from mail-sn1nam01on0056.outbound.protection.outlook.com ([104.47.32.56]:39859 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751270AbeDQSHJ (ORCPT ); Tue, 17 Apr 2018 14:07:09 -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=UTto6V+BXQAxVScbXTOLpBdrzknzA+7RQx1llcuDLzg=; b=sNaJk1ZABarz/1GELxKGCsmEmOuFq/x+tajoGA/DvIoit7fTIh+PeIGU1CSN/6my4dCmwpo4muim27R8/3md1LzB9+gHLrDk6zCLw31+KOZaIPTwAkjvn2I2L6vsJA7NQXUt12zELKgLvSz5W2jbBaif8BDiL6AAdyo9vbjooog= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Received: from [10.224.10.182] (165.204.77.1) by BY2PR12MB0694.namprd12.prod.outlook.com (2a01:111:e400:52df::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.11; Tue, 17 Apr 2018 18:07:05 +0000 Subject: Re: [PATCH v3 1/2] iommu - Enable debugfs exposure of the IOMMU To: Robin Murphy , "Mehta, Sohil" , "gary.hook@amd.com" , "iommu@lists.linux-foundation.org" Cc: "linux-kernel@vger.kernel.org" References: <152302042701.47565.17954813724758433858.stgit@sosxen2.amd.com> <152302066417.47565.4017200105445420643.stgit@sosxen2.amd.com> <1523663790.2747.4.camel@intel.com> <10e422dd-a3ca-8ecb-50fa-e7f131a55a12@amd.com> <80b1e9e5-3048-391a-6d7d-adeeece1bf46@arm.com> From: "Hook, Gary" Message-ID: Date: Tue, 17 Apr 2018 14:06:47 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <80b1e9e5-3048-391a-6d7d-adeeece1bf46@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: DM5PR12CA0064.namprd12.prod.outlook.com (2603:10b6:3:103::26) To BY2PR12MB0694.namprd12.prod.outlook.com (2a01:111:e400:52df::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020);SRVR:BY2PR12MB0694; X-Microsoft-Ex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zjp1DL16ZFq2+N1H77Dx8qi6o2v8PZNYrYn6rCy4B7OT53DwCHVzoD91u+VLp81M6JEoXPbMF6mxM3jdF1S1lpdTyQWniX4Ia/Abwzy+/CVIycFSwKG2NN9BpyQ4hHLU0bqfGtUREd7K+11lCyLyMPKRaoTA4Cdy/j+pN0DNU0Mopf2bbEhNYgqzpOrynxMhFwRA3PBtKpzmXm+guGIYwdivs610xfRB0sQLZ91kncd7qd7uh5vT3gYaVdpIqJ9vOb0/MrGSUsa4KZgpSyVhskIDtlWCZMY37bl0hr7nE5BrshwvVAPx01xwyxPKj0pYFy5t1HfJ5gA3m+PvNXu3Uj2gvKVsTjPk9Fon/qehZfNWi+oQQCyqg;4:2dSKwpm2o6tQDeq6u79JUZXoNO9hnAnFgi82858D4T+8BYNqHjQvTBYZ7A0Bq3CrpYFIp4FwsqwIVI4J2hPWWblG4gqOKC/COrIRBaiB2zRfrw/4Z8x0jQ9dVDqwGjnKzmNVVpSVhzy7ZwVo5pd3tCc3AKa4h4eY0+4/0JyckvlQo0b8sjk5Xz7mfax4omeMXjTOPDxvjNQQgnXmnHpvg72EVa+6HpCHgVnG9+SPvBr//c6jejBFMRC7ttQpOws12YSaFpu/JEceHiXW0eaScA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231232)(944501327)(52105095)(6055026)(6041310)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BY2PR12MB0694;BCL:0;PCL:0;RULEID:;SRVR:BY2PR12MB0694; X-Forefront-PRVS: 0645BEB7AA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(376002)(346002)(39860400002)(366004)(39380400002)(396003)(189003)(199004)(377424004)(486006)(36756003)(7736002)(25786009)(50466002)(4326008)(2616005)(3260700006)(956004)(72206003)(2906002)(966005)(476003)(67846002)(76176011)(52146003)(23676004)(52116002)(2486003)(8936002)(59450400001)(386003)(305945005)(53546011)(6116002)(64126003)(3846002)(81156014)(81166006)(105586002)(2201001)(478600001)(8676002)(65826007)(5660300001)(31686004)(106356001)(2501003)(31696002)(6666003)(6486002)(229853002)(316002)(16576012)(110136005)(68736007)(58126008)(77096007)(26005)(6246003)(97736004)(65956001)(66066001)(93886005)(16526019)(11346002)(446003)(186003)(6306002)(47776003)(2870700001)(53936002)(65806001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR12MB0694;H:[10.224.10.182];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTJQUjEyTUIwNjk0OzIzOlNxSUxsRlpra2dWd0UzL2NaelduTkh0Q3BN?= =?utf-8?B?MVE4U21DTXNZZWRLb0hKQWpsOWRYZVVBYVVGQlkzcTdVWERCWGl5NXVVWFIr?= =?utf-8?B?aDg1TEMrbU1SajRtaXAxS1IzZ3QvSC9UdE4xWUtrOFFjYXZpODJnTUI3dWI1?= =?utf-8?B?TVJ6RnBNdTBnMk43ZUNXTHoyaXdxTTF4NjdiZVlBN2FaYm9haG8wT3cwNTZD?= =?utf-8?B?MHBoUEZFSm00YTBjU2Y1Mkc3UFduK3lVSXlUOTN3VzhMOEgrMWF3QnRIcFEv?= =?utf-8?B?c3FONVFOWk04OEJrWWlFQTYxdUJRVldSaHRLR3pxRndMR0M1L3BESU9Jd3pL?= =?utf-8?B?N2xGZ2IrT2lxN0g5WG5WbnI4c0lsSTNCVVZYOVFzMkplR24yMTE0RW0zenk3?= =?utf-8?B?K25wQnR5RlF6RTlMWkszb2xwTGR3aUZRNlRPWjA1TWRYcHNCTTFhWERGWDRO?= =?utf-8?B?K0JMWVN1UFkveE9CWWRyWj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WLk/nNSZBsHkdCP4hOPux00hwyH3caJvCNxFv+JWgITJYwnkibelgKCUR664ThuGPWzRa0bfGWvHRlRXQxkoHJ5JMzKqMMQ7iDopggcDkCZh4HWs/AK3KHiWen6MacSDKAM+hlQrhUIPyVxd8yEzi/REQibmU+p2;20:xBquxJjJG6XI7BazLzARMzURfGUC5OVwftbqlhz2WCrHpx5/kFFn4r3gwBc+TCzx4vFaXQOJywDzPCrdd1KgBvyLv93U7Iy3YbQQlDuJXDrLd3cLXBaaBpJ+5LUwFOUHp5lVoV/eR/zhScbIgn5oBDt+qvTB3inM3E8M6ZAZT1lRHLT04jcIcF8plKFkewWlELXnYtX9z4AP7pVWIjjfRARrq3JkGkQ4X3shLLAC9dSoNEKVeNQm1j1ljjueGuS3 X-MS-Office365-Filtering-Correlation-Id: 6b322943-f6aa-431f-8f3c-08d5a48e0802 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2018 18:07:05.6989 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b322943-f6aa-431f-8f3c-08d5a48e0802 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0694 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/17/2018 1:55 PM, Robin Murphy wrote: > On 17/04/18 18:36, Hook, Gary wrote: >> On 4/13/2018 7:55 PM, Mehta, Sohil wrote: >>> On Fri, 2018-04-06 at 08:17 -0500, Gary R Hook wrote: >>>> +struct dentry *iommu_debugfs_setup(void) >>>> +{ >>>> +    if (!debugfs_initialized()) >>> >>> This check is probably not needed. >> >> Ah, so it isn't. Thank you. >> >>> >>>> +        return NULL; >>>> + >>>> +    if (!iommu_debugfs_dir) >>>> +        iommu_debugfs_dir = debugfs_create_dir("iommu", >>>> NULL); >>>> + >>>> +    if (iommu_debugfs_dir) >>>> +        pr_warn("WARNING: IOMMU DEBUGFS SUPPORT HAS BEEN >>>> ENABLED IN THIS KERNEL\n"); >>>> + >>> >>> As this gets called for each IOMMU, do you want to use pr_warn_once? >> >> That works, yes. > > Or I guess you could just roll the pr_warn() into the previous if() > condition, i.e. only warn when the singleton debugfs_dir is actually > created. That makes more sense for a code path this isn't going to be hit more than a few times at most. > > Robin. > >> >>> >>>> +    return iommu_debugfs_dir; >>>> +} >>>> +EXPORT_SYMBOL_GPL(iommu_debugfs_setup); >>> >>> -Sohil >>> >> >> _______________________________________________ >> iommu mailing list >> iommu@lists.linux-foundation.org >> https://lists.linuxfoundation.org/mailman/listinfo/iommu