Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5580761imm; Sun, 26 Aug 2018 23:59:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ2FGQwqGIEwfDFFGvDMR3YL+xcRGHRM/jyHKzJeKooMElVy6dB+QCqQdOxjTC4es0uMVtY X-Received: by 2002:a62:9f85:: with SMTP id v5-v6mr12956270pfk.27.1535353141125; Sun, 26 Aug 2018 23:59:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535353141; cv=none; d=google.com; s=arc-20160816; b=PbSoV7UxGz+RQSoYYenCshLUItfIhCWP23Z4LVEMHLdeT6S+s/6lVHXi37FvHjZEJG w9c8+gR9p0YxzQneHx8fkrI6galJWMkSaJuIVdT40Wi1onhE/A02WxwXVzoUU9F9F+f5 oJxKGOtI7miE4iGiOH2bdXA76UTXNg53aJVWpklqQR+vx+1No6Kr3xkYCLvD9d3omv5K 28FA0fMIVjp4GA1sXOjU/2nKqDHoSJlzxsrNL+Nrdm5ADGopza6g+qFuw9X0bR0bFF0j CqKU5TXGBlPWExwPloKyphmcGcG+T2ox5WA5ZGw5v38yzGRbJRudwK3CwhrkgEVNjaMW iSgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=hjXk1EcPC7+lNtYbFDdbw88QI/ZCk2Bm3D9cRUGLBdk=; b=o2jrRXqXA2ocGykVVBkxKZOJIIeolLi3mR971q+b1+c6V0CbLfRDTc90oMrdOZ9KKK OKlOoq2IiqLFSWYbJKYBMFFHE9MIT2kYXh1fZcWUCbcUc/vcerDuiXVz0sus4yiRuv52 AjTX+qEbXsJGjMwwmSCEXHQ7b+npylX1dMvK8ydDgGn1nZU6qA+YqjPraWWvTw0FeKaQ rUlIKaqts1avoJfjsZpJtWWCkEGWZu9arJclIo0WNv4i5ee7kPJBJRedOE3pdNLqTyJz BwkJDK5ysgCgVQ/s0OLXQ89Oi9pYRGw8k41MwOOboPHanDnxR+5eyy3rRSH9f+lHfXAU cigA== ARC-Authentication-Results: i=1; mx.google.com; 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 r7-v6si14077748pga.77.2018.08.26.23.58.45; Sun, 26 Aug 2018 23:59:01 -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; 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 S1727119AbeH0KmV (ORCPT + 99 others); Mon, 27 Aug 2018 06:42:21 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:37872 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726875AbeH0KmV (ORCPT ); Mon, 27 Aug 2018 06:42:21 -0400 Received: by mail-vk0-f68.google.com with SMTP id s6-v6so5941837vks.4; Sun, 26 Aug 2018 23:57:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hjXk1EcPC7+lNtYbFDdbw88QI/ZCk2Bm3D9cRUGLBdk=; b=bkkQrjlIuTgA/pDZ90PZ99hEDF3eNBFFLei2N1mMdmd7zhF830GHhVFVoKpOl8bhmZ A3mf67kq9qeZJRopbAiawsO40wjx52SmXhxER7/EI6TjzbMYJQ1lJf6BL1gw6k8hT4RH 5ogZC2U5oDNEfJh5yH+D4/6Jzc9pD19J4dfq8ha2vmDGQEUfDtH2XVHECGVDAW38AYVB MneyOT/qklCxO2a7ysanE4MAIIxhviOk2IX+eTCMyQz9TQXtzOIPPoBEVXZUHruHOqYU 8SNwqvgxj9MDcO/hvRa/FgiQzmL5s04ZnXW59YSAM6IKDKxo5l3uqaeoda5QNdXiTEMH aXdg== X-Gm-Message-State: APzg51DzgF5OWQ+1izh6qxHBdm51sZudVaSeWf0/ix7+CFuRjSzjs3rP iOFPPtzNJK/chMW3pHeCB8gplehomhy7Ro23Vhg= X-Received: by 2002:a1f:d507:: with SMTP id m7-v6mr368224vkg.40.1535353021635; Sun, 26 Aug 2018 23:57:01 -0700 (PDT) MIME-Version: 1.0 References: <152883965482.1936.13657625103232933481.stgit@taos> <152883969032.1936.15155267369758178246.stgit@taos> In-Reply-To: <152883969032.1936.15155267369758178246.stgit@taos> From: Geert Uytterhoeven Date: Mon, 27 Aug 2018 08:56:50 +0200 Message-ID: Subject: Re: [PATCH v9 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU To: gary.hook@amd.com Cc: Linux IOMMU , Joerg Roedel , Linux Kernel Mailing List , Arnd Bergmann , Masahiro Yamada , linux-kbuild Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Gary, On Tue, Jun 12, 2018 at 11:42 PM Gary R Hook wrote: > Implement a skeleton framework for debugfs support in the AMD > IOMMU. Add an AMD-specific Kconfig boolean that depends upon > general enablement of DebugFS in the IOMMU. > > Signed-off-by: Gary R Hook This is now commit 7d0f5fd3e4d68742 ("iommu/amd: Add basic debugfs infrastructure for AMD IOMMU"). > --- a/drivers/iommu/Kconfig > +++ b/drivers/iommu/Kconfig > @@ -146,6 +146,18 @@ config AMD_IOMMU_V2 > hardware. Select this option if you want to use devices that support > the PCI PRI and PASID interface. > > +config AMD_IOMMU_DEBUGFS > + bool "Enable AMD IOMMU internals in DebugFS" > + depends on AMD_IOMMU && IOMMU_DEBUGFS > + ---help--- > + !!!WARNING!!! !!!WARNING!!! !!!WARNING!!! !!!WARNING!!! > + > + DO NOT ENABLE THIS OPTION UNLESS YOU REALLY, -REALLY- KNOW WHAT YOU ARE DOING!!! > + Exposes AMD IOMMU device internals in DebugFS. > + > + This option is -NOT- intended for production environments, and should > + not generally be enabled. If it is that bad, shouldn't this option be protected by some Kconfig trickery to avoid it being enabled in allmodconfig/allyesconfig builds? I forgot the way to do that, so some CCs added. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds