Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5690338imm; Tue, 12 Jun 2018 11:39:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ0FxuE+XfyHUqh8vuXXg93IIXQ8YagTJGWguzHSz1JLBVyFW9G6wtWycJFsXMY3oJY0XbF X-Received: by 2002:a17:902:44a4:: with SMTP id l33-v6mr1677910pld.134.1528828763563; Tue, 12 Jun 2018 11:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528828763; cv=none; d=google.com; s=arc-20160816; b=Zz5Yt/ZPVjUDsrXlJyFORFTRN+zkHq/NpMNMiDbNptoUgwI+fEvXxWhUFuTU49qrEU Jm4bmbXmVVHvonlpW1GK/dKgkVX6kbm8yOrNamywRlFT30WSX2k1nGhkX5OqIJtXY3cN LcoA6d6gyoJIASkkOjnN2e21QzGYPPhHdM4f48HXO4q519PmTYZi1wIYDx2NUqLruCH9 AlrWnhzKwpIX3L3Hx8JarfR1zjXDp0tq3WKGbp+KAotJdorXUFyg89xvy7csjqNJoQg+ ksVn/UMCQpaVXznAp7jNWhGTNbpFIBwl1pBzdkbpwd5q6/owM58PuZ2xevh93oT0pga9 Nlhg== 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=SYU6QO00974ATpkfDhnNxaStdMNWYwkU/9uxwK6EA6g=; b=yYZSEutnFvDgDnA34Z77IfKYIrYKdKs2qNv+KLY0iOyX0qOa1fExFpmrR/0F6jlStx aVx1BA5PhnRlXOsNxNeuDrxerW950K2a2deXdiri3Uun6KEMw1sQuAvtsIERhm6kxXYS rFjma0GE/h8bIMsKpgObUHl8qh0oW3fRABq9Lznj8dCyJGC64SxmQDUaHsECv0i4Ltxa DgKnyk/EvPCcewNIC5LzjI4jldb/tvQZS2Oy9zktqYICgnQsCns2EzKzz266Y1WfQltu 4YYTRU4si3qz/utNv6MXzTMhMWNtnDaRAV+b5VPcPzMd6n5jBhk5Pj7LIae76Fd4l3Ne 8W5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=RnhFLJVp; 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 w1-v6si707739ply.425.2018.06.12.11.39.08; Tue, 12 Jun 2018 11:39: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=RnhFLJVp; 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 S932768AbeFLShv (ORCPT + 99 others); Tue, 12 Jun 2018 14:37:51 -0400 Received: from mail-sn1nam02on0062.outbound.protection.outlook.com ([104.47.36.62]:9056 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932343AbeFLSht (ORCPT ); Tue, 12 Jun 2018 14:37:49 -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=SYU6QO00974ATpkfDhnNxaStdMNWYwkU/9uxwK6EA6g=; b=RnhFLJVpB/+QpOE+1qAxp3AzTWIY62ejoo8TQuVpUIw/nXSpLne4mYm5VSe3K9i30EfFhUemQxc2iTkvn2uGAGobh+hdvGfkwBNUDh2dFCwGFYpTccFCaNB6QFBG0AqQk4MLMSot5+SiDrGfJAB/NQNZqPt6c43kkrUmx4NRjmI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Received: from [10.236.109.62] (165.204.78.1) by CY4PR12MB1447.namprd12.prod.outlook.com (2603:10b6:910:f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.17; Tue, 12 Jun 2018 18:37:47 +0000 Subject: Re: [PATCH v8 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU 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> <152761820371.2654.4551405686504157036.stgit@sosgrh1.amd.com> <20180529183917.GA10618@kroah.com> <20180605170624.GB10834@kroah.com> From: Gary R Hook Message-ID: Date: Tue, 12 Jun 2018 13:37:43 -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: <20180605170624.GB10834@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: SN6PR06CA0025.namprd06.prod.outlook.com (2603:10b6:805:8e::38) To CY4PR12MB1447.namprd12.prod.outlook.com (2603:10b6:910:f::11) 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:CY4PR12MB1447; X-Microsoft-Exchange-Diagnostics: 1;CY4PR12MB1447;3:zAUQFGCr7Fd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OCLdzPlhi2d6WDsOxiN+KeFidQZN8A53GIDpYE7onV4L/wlxVIC1OrPazlmqkl3RJfh9xpcKJnHp6lCgHO0L/MjqVuclHAwZMwxFNcnHotDpF7wlt/lgiTaato4xCmoeQXEDd5HAyADuKJRglQ+hMz7jS5fPRx4pz5mHfWgZjdGQtL0g0RTmHmle6swnesE1jIZANEkVWBCdtloTU+F195CkjwBw3mLUmMw/Rfy9K5br6yFW0FN8XJ/sdcyG6+op7Y6lQVrLlBCjpuIPE0+6V7yFCWrqWVWiqthxoNw94PFiEeqI4dlP3ccp7i9V2UOFqp8Zwtm3Iy;4:BGq3e+lnV5RMqjys+jbBRfds4QgPoEIP+Tp31siEPKf3qvs4qWriXAecmV1DNHvFNL/h98EiDxsVI8y9sbFsB3MxZbitFAWS+UEVm/M8SSu/gqvBypZ6/DA4dh+WPVZoSW+a63x1hA5QtdsRpKZEp1udfXEjiNdtbsMTZfV1rZch7idBDXayIq0N93MFufDtN/TsrPmfjbVYUgvhn7nfPxXwql7j7uRQepshl5egL647VWzBYn4JmsnSBYe0AljzTn7eaMXFRUowZCMjIG6F4fBnktQ3bVRHjko5funRdHNIsZy25z8dK4gWKQmqcixs 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)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:CY4PR12MB1447;BCL:0;PCL:0;RULEID:;SRVR:CY4PR12MB1447; X-Forefront-PRVS: 07013D7479 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(376002)(346002)(366004)(396003)(39860400002)(39380400002)(199004)(189003)(6486002)(6116002)(3846002)(229853002)(6916009)(486006)(476003)(64126003)(6666003)(478600001)(11346002)(446003)(230700001)(2616005)(72206003)(86362001)(31696002)(97736004)(8936002)(53936002)(956004)(81156014)(8676002)(81166006)(36756003)(4326008)(6246003)(50466002)(25786009)(47776003)(65806001)(65956001)(66066001)(67846002)(16526019)(26005)(106356001)(2906002)(68736007)(77096007)(16576012)(58126008)(93886005)(31686004)(52116002)(23676004)(2486003)(105586002)(52146003)(316002)(186003)(305945005)(386003)(53546011)(76176011)(65826007)(5660300001)(59450400001)(7736002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR12MB1447;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?MTtDWTRQUjEyTUIxNDQ3OzIzOlR5RFZpVTRNSW9vT1Y0OGVwZ3kwdC9Fb3Vu?= =?utf-8?B?WGg2RlRRZ0c1Wmdkb3NqdUdkQ3FPendYZHpKb25zOXFXTm55OHJsRElUUHZj?= =?utf-8?B?MkticDZWdXJ6dEpiL3JnSVFUSGZXUzdhMWVXZU5COWIzYXB1bTQxZnZVSUc5?= =?utf-8?B?eEdiUzNnZTJxdlNWQjRHSm1vek5xUE9WcHV1YzVQa1N1akRHaG5sbDBsOFBs?= =?utf-8?B?UStkVEY0Vm1weDZpWFFiV1hCM2JPQ0xlczk2azFZMmYwS3UzenZnbTI1UkVH?= =?utf-8?B?S3dHTVlkOGtBa2l4TVNTcy9lc0hIcFdKQUI2U1MxQmFkZG9aVVpkWXVHSmNl?= =?utf-8?B?QTQ1aENnZU5WSlc4L0tjc2hESGlkeFp1WmY5VFVCam9sMEhDejBtKzhMS0xh?= =?utf-8?B?OFNtV3FmZlVTQ3k4Q2FpWEJNaXBiL1lvZWxOcE5LODYzRXJaYnhVOTZibllh?= =?utf-8?B?WG54c0V2M3IrNE5Wblg1T2h5ZF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57I3TAVluOpKaq3zdhAFNCDgZqludql+PHQNYP2v2eKLNyCMOJ/6r/qaLRecdvLmkMbVGMGkI2dUHMa+X/HPmrOn77rwRCbZXzzE4ifvL86aVBmWGscvhG+lGcRuLej6WfpMpI0WV12Qp1AGOcWfwKHlzc4IzC8QMFRyrYetx/7U9tXOaR22z/VnDeURWc6Sql5Jz75fNfelYv9BhkJZy6hmiP8/klBL+FzR3mVII9lI2IlqEU/EpCI3l4F40l X-MS-Office365-Filtering-Correlation-Id: 6a5887c2-196d-42a9-807a-08d5d0939827 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2018 18:37:47.1506 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6a5887c2-196d-42a9-807a-08d5d0939827 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1447 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/05/2018 12:06 PM, Greg KH wrote: > On Tue, Jun 05, 2018 at 11:58:13AM -0500, Gary R Hook wrote: >> On 05/29/2018 01:39 PM, Greg KH wrote: >>> On Tue, May 29, 2018 at 01:23:23PM -0500, Gary R Hook wrote: >>>> Implement a skeleton framework for debugfs support in the >>>> AMD IOMMU. Add a hidden boolean to Kconfig that is defined >>>> for the AMD IOMMU when general IOMMY DebugFS support is >>>> enabled. >>>> >>>> Signed-off-by: Gary R Hook >>>> --- >>>> drivers/iommu/Kconfig | 4 ++++ >>>> drivers/iommu/Makefile | 1 + >>>> 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 | 5 +++++ >>>> 6 files changed, 59 insertions(+), 2 deletions(-) >>>> create mode 100644 drivers/iommu/amd_iommu_debugfs.c >>>> >>>> diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig >>>> index f9af25ac409f..ec223f6f4ad4 100644 >>>> --- a/drivers/iommu/Kconfig >>>> +++ b/drivers/iommu/Kconfig >>>> @@ -137,6 +137,10 @@ config AMD_IOMMU >>>> your BIOS for an option to enable it or if you have an IVRS ACPI >>>> table. >>>> +config AMD_IOMMU_DEBUGFS >>>> + def_bool y >>> >>> Why default y? Can you not boot a box without this? If not, it should >>> not be Y. >> >> Again, apologies for not seeing this sooner. >> >> Yes, the system can boot without this. The idea of a hidden option was >> surfaced by Robin, and after my first approach was shot down, I tried this. >> >> Logic: If the over-arching IOMMU debugfs option is enabled, then >> AMD_IOMMU_DEBUGFS gets defined, and AMD IOMMU code gets included. >> >> This issue was discussed a few weeks ago. No single approach appears to >> satisfy everyone. I like this because it depends upon one switch: Do you >> want DebugFS support enabled in the IOMMU driver, period? Vendor-specific >> code can then choose to implement support or not, and a builder doesn't have >> to worry about enabling/disabling multiple Kconfig options. >> >> At least, that was my line of reasoning. >> >> I'm not married to any approach, and I don't find clever use of Kconfig >> options too terribly challenging. And I'm not defending, I'm just >> explaining. > > The issue is, no one sets Kconfig options except a very tiny subset of > kernel developers. Distros allways enable everything, as they have to > do that. > > If you are creating something here that is so dangerous that you spam > the kernel log with big warning messages, you should not be making it > easy to enable, let alone be enabled by default :) Okay, I get that. Totally understand. > Just make it an option, have it rely on the kernel debugging option, and > say "DO NOT ENABLE THIS UNLESS YOU REALLY REALLY REALLY KNOW WHAT YOU > ARE DOING!" Nah, Randy voted for separate options per device, on top of the IOMMU option. So I'll go with that. With loud messages, of course.