Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5691338imm; Tue, 12 Jun 2018 11:40:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJhRV9XfPBuMBt94Z5rNTh55VsIhX9JycmbNl2vNE+wmaMRWRJNeUtrmgApIY+09FZYErjM X-Received: by 2002:a63:9e0a:: with SMTP id s10-v6mr1323768pgd.305.1528828830943; Tue, 12 Jun 2018 11:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528828830; cv=none; d=google.com; s=arc-20160816; b=XGDhP/Ay6f6iRZBknlaliVWExyyvFNynHRsUVZjGkm8joAsSv4gbKqltpmmvb0WRzM OkW0XVWpWe3ZJLe7c4OwIg3M4lNIHT9q748opI4LtklgO9Rk7mCIivTqdIjXD+M6UNhO 5TkOeJnfFJdV5URo4sFYbfTi9jHsx9qDI4bvJ0XbntFc+AvsERoun8nHPylheNomJD1i RxXm0aUGCac+pBOm0q3Q2cxWru/Aixq/4zoPKhpZp68qts8Pyk1uViDw1UQGElHOUErZ 7AdQmwpeBhMYrBPtl1p9uAXYzm+duYqnmQnXRbun1DeOm8nmyWv8jmt3wv8PwFcj9R+E sQzQ== 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=52cUGabUn0KMcQRFF1TOtmUWfEPT4dOSw7l/5JCZ6q4=; b=gGAkN0xbsnZztQL9SktYOy9vybOG9WEUz/uwupLBQpGWN2ijC/53yM+62FrRMQEJVs ZrG2D1mn6J5NhAo5VzMmTGdz1Vs07GApygVexk9wD8VFvByNP8ZiYXxZ9rSoUlGnjq5D lsYkF/toCX6Tj9cATXFNQ44xHP70nW46GbMcS/MTqwJpSVxWECTSU5K+Ii42n8HSliMC 0EdJAKENYg24NEjbe6KhFZtGRJL2dGRl6onfdrjjNZZq7qZnHpYmk2IP1+XklakFf+Ud R55N8l1rAKShvNoKx+uuWc+TJDU4n0fCdN9tawlWfWF/mFKbO1EmpbpYrDT8/4V6/zV8 0NfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=AVwJ7XMq; 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 a33-v6si704106plc.369.2018.06.12.11.40.16; Tue, 12 Jun 2018 11:40:30 -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=AVwJ7XMq; 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 S933011AbeFLSjN (ORCPT + 99 others); Tue, 12 Jun 2018 14:39:13 -0400 Received: from mail-bl2nam02on0087.outbound.protection.outlook.com ([104.47.38.87]:54816 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754087AbeFLSjL (ORCPT ); Tue, 12 Jun 2018 14:39:11 -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:X-MS-Exchange-SenderADCheck; bh=52cUGabUn0KMcQRFF1TOtmUWfEPT4dOSw7l/5JCZ6q4=; b=AVwJ7XMqsWDCMn7ewXwZHqAMmLNaUd79GZ+zbcrS4FSM3rcqTL5tLxUk6p/jnbmrTesKdB6G0JBazEP5sR5QKWVQ8z1KEhkWFwZCT818BqeSMIm1FiXblwtST7s5/CWeGofvUJDATYhETLX3/eAXphPIqSBNT05xdhRrZntBI3w= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Received: from [10.236.109.62] (165.204.78.1) by BN6PR12MB1443.namprd12.prod.outlook.com (2603:10b6:405:10::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.15; Tue, 12 Jun 2018 18:39:07 +0000 Subject: Re: [PATCH v8 1/2] iommu - Enable debugfs exposure of IOMMU driver internals To: Greg KH Cc: iommu@lists.linux-foundation.org, joro@8bytes.org, linux-kernel@vger.kernel.org References: <152761784341.2654.8609366076331539902.stgit@sosgrh1.amd.com> <152761819480.2654.5371070582955429468.stgit@sosgrh1.amd.com> <20180529184101.GB10618@kroah.com> <3249cc11-09d8-2078-28a6-efd3078ca0e9@amd.com> <20180605170824.GA11965@kroah.com> From: Gary R Hook Message-ID: Date: Tue, 12 Jun 2018 13:39:04 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180605170824.GA11965@kroah.com> 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: SN4PR0401CA0019.namprd04.prod.outlook.com (2603:10b6:803:21::29) To BN6PR12MB1443.namprd12.prod.outlook.com (2603:10b6:405:10::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BN6PR12MB1443; X-Microsoft-Exchange-Di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4o5h70R+lXux9abco3iRkc+XtbbtIq20o4A2NMaZvRYH1y6/dxbO184Gve4EBAjkucU8ro9PClTEmFKkdzy4ECOhF1uIcHt10+JEy3xS16+mjTBMVR+2E3fOEvhhOqk9vCR1v2oD7duQ772+JQc5nRBIOEsPCB1oq0orNF8uQABzFK173/Td++tzo6XZCgvCl4sYr6B72Llop4DFLonhusjkJpLvYzCnSKeIEZtW2iV+Vl5LgYFcnkpIm+nAW6YGv+9tH5q1WxRvRpDCM+dLhb9k+aD/akTspZK9H7N9Or80WgKy6s5zRleQ6HZ5FGe0ZC+exB33ryAPjSHxiXg3tFUVjgakzW4XZGZBKM22f7ncFlnRpZNuDHCj5Wt;4:gUo5Rfs7Q5k7TZyfZrQS0ry6tqNFEwjg5V0SuWtO5DDFBP82CILw+JzxD1tBLAXTdKS+ymiV6I5O2U9nZzUlM/u1BHkbWQK6a2DOuh2eJMkXjpFTJkC9oVQaWdGanTWNsj0O1JT3HNgcZKnW4v/S1K7XBUNBLRJHlXH/ufCyFAkMkl8z9bh0cymfVVLX3eXgBVG5GTi6I4fXfnAV1Y5Iti8VIdcJsbNTKq+saXgdQwwBiiToJoyRGTzR18adFoqusMOEBdknM6RgoI6DT2Ld+w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:BN6PR12MB1443;BCL:0;PCL:0;RULEID:;SRVR:BN6PR12MB1443; X-Forefront-PRVS: 07013D7479 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(39860400002)(346002)(39380400002)(366004)(396003)(376002)(199004)(189003)(64126003)(386003)(53546011)(81166006)(8936002)(106356001)(59450400001)(67846002)(50466002)(230700001)(52116002)(76176011)(3846002)(6116002)(6246003)(446003)(6486002)(23676004)(52146003)(316002)(2486003)(16576012)(105586002)(476003)(2616005)(11346002)(956004)(486006)(53936002)(31686004)(25786009)(47776003)(68736007)(36756003)(58126008)(229853002)(8676002)(4326008)(93886005)(6916009)(65956001)(65806001)(66066001)(72206003)(478600001)(77096007)(97736004)(26005)(5660300001)(86362001)(7736002)(2906002)(16526019)(6666003)(65826007)(81156014)(186003)(305945005)(31696002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1443;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?MTtCTjZQUjEyTUIxNDQzOzIzOllhNGJmMzBHc3Byd2FTdzlVblUrZTlJQzdP?= =?utf-8?B?SnBqTStrREZaWjA2SWdTVUZ3MzZpekdWeWRLZm4xaWFTY3Z1MWQ0SGpacUYv?= =?utf-8?B?Rlo3REkxWmlENFZ4eUJqZVF6YTZNSGtGL1BQVDk4R1JwVVgyQTY1SHoweUxL?= =?utf-8?B?ZW8xVnllZTNMNE1iVW40MlppUmsrYk1aekJSNmkvTW1kdENPV0dZdS9FWE52?= =?utf-8?B?SVFkbjQ3bnJsUHNHN0lhOCt2Mk1sSmNTK0FlaC81V1F5dDJjZ1VBZDIrekN4?= =?utf-8?B?VlpVS3F1a3lBclZhSnJheUxzZmVQOHpMMjN4S0ZYVk1Hb2FxR1JGRUNxalpB?= =?utf-8?B?WWN3N2FLTWxydDhiMFZIK1VTMXViQ2U5V2lHRFF5MVYxaFVlaGplOFk1L3J2?= =?utf-8?B?alYvTlNvMVhIVDA3TFhaWlREbi9vT0grdTd5aVJ5UTR5eUhNNHpGeXlpeHlw?= =?utf-8?B?YW5DMnNQQlZ3ekJz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TPEP0TnakU6dQQ+hKzYTNeoD7I7CTtpt3kiZwPXIil6pDgzAobFdfacabhfJqHmpeMOzoT9GvKDlFF6Ayb/4QL0+Pnf0T4qAFN0i4h24J/or8Eilxxdn9QoOYMaH4zqhRpoLw6EOYrV7bmLPj9SQ1fO2MoZI8tuHvFhbnLKABPrN9/xNqt5PoWUyS3Sup+oVuaAC0EpEB3qaz5WqY3djS8vZ8Ns07tpCGbNlXZGwaSH5KsipIUDy X-MS-Office365-Filtering-Correlation-Id: 22189586-32d6-4c52-3eee-08d5d093c84e X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2018 18:39:07.9008 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 22189586-32d6-4c52-3eee-08d5d093c84e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1443 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/05/2018 12:08 PM, Greg KH wrote: > On Tue, Jun 05, 2018 at 12:01:41PM -0500, Gary R Hook wrote: >>>> +/** >>>> + * iommu_debugfs_new_driver_dir - create a vendor directory under debugfs/iommu >>>> + * @vendor: name of the vendor-specific subdirectory to create >>>> + * >>>> + * This function is called by an IOMMU driver to create the top-level debugfs >>>> + * directory for that driver. >>>> + * >>>> + * Return: upon success, a pointer to the dentry for the new directory. >>>> + * NULL in case of failure. >>>> + */ >>>> +struct dentry *iommu_debugfs_new_driver_dir(const char *vendor) >>>> +{ >>>> + struct dentry *d_new; >>>> + >>>> + d_new = debugfs_create_dir(vendor, iommu_debugfs_dir); >>>> + >>>> + return d_new; >>>> +} >>>> +EXPORT_SYMBOL_GPL(iommu_debugfs_new_driver_dir); >>> >>> Why are you wrapping a debugfs call? Why not just export >>> iommu_debugfs_dir instead? >> >> It was a choice, as I stated in my other post. It is not a requirement. >> If you resolutely reject this approach, that's fine. I'll change it, no >> worries. > > Either is fine, but if it stays, it should stay a single line function > :) > > thanks, > > greg k-h > Then I shall leave it as a black-box function. Single line, of course. Thank you.