Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4973362imm; Fri, 18 May 2018 14:03:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrWu9vHzSwRa5rhVienr3h29ofq/qxH9kKbDC2A6iub9BSjOPG7moh0zVZH9ui5BlJ6pi8S X-Received: by 2002:a63:7253:: with SMTP id c19-v6mr8809118pgn.453.1526677420084; Fri, 18 May 2018 14:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526677419; cv=none; d=google.com; s=arc-20160816; b=P3FtfpZWbNx+XqEhb2kUbNTH47q9MEvjkd2KbsNHTF2PIjKKCGEuwNip2RKMvtkbQh nn3aBuQlbhXUkxyL09DQ8nLuMRK3e3k2/TGTS3n+CTcMfwBtLtR+UhkE8rXTnA71d52Z qrOoaavk/wtVOqXj0R8qNutjFiMrwBYTCvM9bQbm12nVd3cztW0kiWOJsrJrPux7NLIZ wV2CHGRTDwPdNYt1tcBvct8QQw+2bbekxuVOz4vL2EcBPQjOXQw3gzb4b2z05Zpo1W22 ujbcbouo2vqEIKtyxY6FBdcQ6YAgNhWz+CvdZR00m8khE9yMuKWVCAhr/b+lrCLwyTAJ r+wg== 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=iCHTXF76X8pXPSwGLAE4r12fjkKELoqAcVry16UHg8c=; b=camoyg3fz/Wgmkrk8NDjenD5oge/AX4ZaPTH8aJz+0kln+puj09w28J82qZsp5TuZU 3+sk63bMLwlZrcH/7QegKYANljKsag59TSgyoSuzv7vq9BIyKq/+zwlHnzfDNRC8CveG kXc4fJwlUDKTGQFDF35d5up8CLQ/HCznCw/539JIyRVM4woJ0bcpnsCvS73qh+vCrM5A 1qzuOY++7f14CqF3egbrrP0B6nMhSTFsVnYw2eC8cXdAQikuCXzl5Bko2tRuSfDTgtJ1 Jma6ieKPcPUhZN8rr8WCDAKrwhej/NAXBqYXSFZ3011GSFiKiobF5NCVW8GTDJ0WGUvx p4pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=pVVbY0jT; 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 y185-v6si6509480pgd.316.2018.05.18.14.03.10; Fri, 18 May 2018 14:03:39 -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=pVVbY0jT; 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 S1751815AbeERVCz (ORCPT + 99 others); Fri, 18 May 2018 17:02:55 -0400 Received: from mail-dm3nam03on0058.outbound.protection.outlook.com ([104.47.41.58]:40576 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751298AbeERVCy (ORCPT ); Fri, 18 May 2018 17:02:54 -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=iCHTXF76X8pXPSwGLAE4r12fjkKELoqAcVry16UHg8c=; b=pVVbY0jTD4GkU+gcVPqrF7uqHp0UseTn/pYeXODfG17turtT8ntC3AEmqG1eVLWvoysFQTUY1uovj2fvRwmtzbqHfVfjG3dKecaddsJ2fvgEgzvd8vNA2+teezvnp7TPyty0Ea21dNWRS6fcL0Dd5T1jyT0qTwEfc04s6pbGBeA= 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.776.11; Fri, 18 May 2018 21:02:51 +0000 Subject: Re: [PATCH v7 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU To: Randy Dunlap , Joerg Roedel Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <152631818082.18929.13970142119193316487.stgit@sosxen2.amd.com> <152631842907.18929.8819955271544326298.stgit@sosxen2.amd.com> <5e45f38e-cb45-d4a1-f351-30543f787290@amd.com> <20180515134603.GD18595@8bytes.org> <4041cb33-19a2-5542-4211-1dce51de5e40@amd.com> <89a0e3af-8970-cd80-418d-630841795807@infradead.org> From: Gary R Hook Message-ID: <3eefbef8-142e-0a29-3e97-536717f63a98@amd.com> Date: Fri, 18 May 2018 16:02:46 -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: <89a0e3af-8970-cd80-418d-630841795807@infradead.org> 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: SN2PR01CA0065.prod.exchangelabs.com (2603:10b6:800::33) 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:rWV5Spl2h4ky0/KVTy/caTPPi9kzIiACm5K5lWJNaVM6F61dVDy7Df22yEU684geNt5s5K6DVPZ+UYaQ8obo8cwaTND4vmacFpTKJEkStZZx+wW/N/xu31ExXtyESmtUSuL6YgqfMKc70MGBj6/LwG7joO5NV3mfR0lJm7U0cRdlsLumKyjnk6dz+VttXLl0XcNSJW+F23As5sRpDjxxKG/d2miF9XNk06geMOlIbQGy3o4XMXXza/d4GJKwmKPH;25:/rMXkWmoHVg8LEtOFlLFd4ll/lGXNNCSnDPmJV6wSK5MBB8qO1ZYpunj/fkKfZFBkXyKxBn6nd0plPf84IvDrVO2QAkCMaxgPEm/0UrKGuPAdckFuqSfxYJHpuFAjwOOVcPJexmsKoEUe+iegF9k3yKHRqH9o5i50YmLH6Gr5qY4ER9UmsVDRI6/wRwZnOallXUx8Xz5w8fv7tOWyBQm4iC0/DYGt4JgjBobSGAtIVuSsscrkaZPeWiuMXaPhwNY/9y5aKz5ZQ7APzov9xn6h4BM8LIGvLQzcO5B/MpgRPV45sfy3W+WMcnRd+qhqy0GwkZPbRuRYJDCuH7aIevIww==;31:A1mgaXLFT69vyBwkz7JpnoA9ODXyiNlcdi2f8gcoIMON87upx+m7Sq+cZsCgXmVv8FkL6vZLqDexVAV+OI97v1gxmn1IPVvTvRJO2YTbUpTqvOZYV1VkrxwjV21YUDGdUEZln96Q3euZc2rbBHnTK6F5HxMvVoJk//+GXeCE66ReEm1+LFsAFmFkdFo6MfcC46sC2LYxx8XG7jVaQM8b2+bfvt/NIWiZOOpWJrhLV24= X-MS-TrafficTypeDiagnostic: MWHPR12MB1453: X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1453;20:5LCE5Z1HUy5ep6auKcDvWzP6H29xRrG02tfBzntjf+yHWnWlXaH3mLzxWEMFrspgfitmubisPrshSC7P8/EYkCiDyPtMGtMQ6f+qvASV47SXDkncniESPxp3tB6kXe9bgZM7brrsPeIS802okK47ELBI6WJEdIKrtno2nl95P4Wd7vifngsVftu8dS7Y6foJfd04+vMRO0XJ064LORBo3kufK3DxvMlkAgSImJ1fZrYIH+Eax4OvIYhld5yqaJMXjJVuRQp0+L+4AWpu8tIeveLMuF+ek31sMWEMDlHe1EJkeoLQf7MNRhwnco3tUYRSWXLoo1a8DHGNl5WiDlirmQK6IvPLvnW6krYzi5yVV8MV6mzLTt4FXPJSyKH8ROQv059JZXOIPQS/gePzqT9q1jk7ckmBj2iPwFbvbB4XMWONLas6h5Yahp85l5FSAUkS6+POrro+vnt0c13BxHrOhPKbs6CDMFsc7tRIEonTKD6Y8RMwq4tT5RPbtGIn+Umy;4:qwVCrUxfOPqEBOupP8gc89kzmd2WaTFxnI4B+x1dLkH6lwm6Pdb2EvQoVuIo5BinD6IvKqiuDA/jAUBzCA3dO//HG+05qAa6uUVUijqty+xFKYeOpLyZ2RzZ1f+WcxhSzOw5/Zr30J6xZ3QS6dLcFP0Er2EaOU6kSdub47oJ68PJUiN+mW8birBrWtA9k9IUPZYRJImZPhjdHctz84jkgiF7SFE8cWs1E3QC9bKDWIgfUO3U4ou4U2T4G8wRVRs1q5LjjYGDPFzViEDBQj5L5A== 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)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:MWHPR12MB1453;BCL:0;PCL:0;RULEID:;SRVR:MWHPR12MB1453; X-Forefront-PRVS: 0676F530A9 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(39860400002)(376002)(366004)(346002)(396003)(39380400002)(199004)(189003)(31686004)(3846002)(11346002)(486006)(23676004)(97736004)(52146003)(386003)(7736002)(76176011)(2906002)(2486003)(2616005)(305945005)(956004)(476003)(6246003)(5660300001)(8676002)(52116002)(81156014)(81166006)(8936002)(53546011)(4326008)(186003)(86362001)(229853002)(77096007)(446003)(6116002)(26005)(47776003)(66066001)(65806001)(65956001)(31696002)(16526019)(65826007)(230700001)(93886005)(25786009)(68736007)(50466002)(110136005)(58126008)(316002)(53936002)(16576012)(6486002)(67846002)(106356001)(105586002)(36756003)(478600001)(64126003)(72206003)(6666003);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?MTtNV0hQUjEyTUIxNDUzOzIzOmV6RjlVQk9nS1RieFFJU1QwN1RVWEVISU9t?= =?utf-8?B?MXBGSzAwQVVoazFvR3hxeVRydWRtYWhFU0MvYVVvb3habHRXQm90aHIxOUNH?= =?utf-8?B?Q1hXS2lJZ1dWSGVDMG9hUHc3aTdlUVFQSWlOWmVhamhFNFNPcUg4UUhENGZ3?= =?utf-8?B?VWUrd0gwRjU3T2dHYVQ2Vk9PSHdzUzBjSnFQbCthR0k0b3dzdjhyQmhDQTFQ?= =?utf-8?B?d3piYnkvODdSc1RhdWtFcmdtcktzbHQvNlAybmU4MGVuVHIxL3lyOEx1bWQ4?= =?utf-8?B?WXQ3eXVzOU5uMUEwV1NEa3E2cnNNZlZpZFdlYU1SR21YL3Nxa3JXWU50Njkz?= =?utf-8?B?MFNuTVZTQVFSdVRqNEFNRWxRaUozcHFjNXZpRkM3TG40a25QTVhxa0NwTDg1?= =?utf-8?B?dlR5K01sQ01MQys2akZYTzg5TXRNVkxhRm8vNWl5ako1bFkzejl3Rk1QVHc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OIZc8kiBdyOBL6XEjUfB3Mxt/5tENcgb+fY0tvhZUO+svMOW0HNjFZ0Nu7bAK/SPyWLw/zacmU4Dx8FZU9JDripCUg9b+VcShh77hKx/7mSsW2z2ITxf2WKamMnR+LQQcO1Te4ZcFMSW31k7yxTHQ04E3v+d/S+9B8E3D9FyQAbUmZ2gBG9pQMsi4LlsoO+hcCr+FPqpyEHlblZuypolneH6ztICysO7iK0UKGmgZ2F+fMle4Lr0Ak8e6GRWa/t X-MS-Office365-Filtering-Correlation-Id: a9ceaf2c-efb3-45b1-4c1b-08d5bd02b83d X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2018 21:02:51.7496 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9ceaf2c-efb3-45b1-4c1b-08d5bd02b83d 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/18/2018 11:49 AM, Randy Dunlap wrote: > On 05/18/2018 08:20 AM, Gary R Hook wrote: >> On 05/15/2018 08:46 AM, Joerg Roedel wrote: >>> On Mon, May 14, 2018 at 03:00:50PM -0500, Gary R Hook wrote: >>>> 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. >>> >>> You don't have this problem if you put the code in amd_iommu.c in an >>> IOMMU_DEBUGFS ifdef. >> >> Of course. My preference, however, is a separate file to avoid size creep. That's why I've done it this way. >> >> To whit: there have been threads discussing the advisability/acceptability of using #ifdefs for debug code. My take-away was to avoid them. Perhaps I misunderstood. >> >> So: I don't understand your comment. Is this an observation, or is it an imperative statement? I'd like for a maintainer to clearly indicate what is acceptable, and I'll do it. >> >> > > Hi, > I looked back at Robin Murphy's comments on April 17: > > > Well, you could do a makefile-level dependency i.e.: > > ifeq ($(CONFIG_IOMMU_DEBUG), y) > obj-$(CONFIG_AMD_IOMMU) += amd_iommu_debugfs.o > obj-$(CONFIG_BLAH_IOMMU) += blah_iommu_debugfs.o > ... > endif > > Or alternatively have an intermediate silent Kconfig option: > > config AMD_IOMMU_DEBUG > def_bool y > depends on AMD_IOMMU && IOMMU_DEBUG > > The makefile option is arguably ugly, but does at least scale better ;) > > > > I think the Kconfig option would have been the correct choice. "Preferred", perhaps. Neither is incorrect. And really, the Makefile/Kconfig choice is somewhat separate from the organization issue. So I've made the changes for this. Now I'm waiting on Joerg to make a decision on the code/file organization. I still prefer a separate file for the debug fs code.