iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/2] Base enablement of IOMMU debugfs support
@ 2018-05-14 17:20 Gary R Hook
       [not found] ` <152631818082.18929.13970142119193316487.stgit-tq90VzyE+wXkLsZ8J5Uweg@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Gary R Hook @ 2018-05-14 17:20 UTC (permalink / raw)
  To: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA

These patches create a top-level function, called at IOMMU
initialization, to create a debugfs directory for the IOMMU. Under
this directory drivers may create and populate-specific directories
for their device internals.

Patch 1: general IOMMU enablement
Patch 2: basic AMD enablement to demonstrate linkage with patch 1

Introduce a new Kconfig parameter IOMMU_DEBUGFS to globally
allow/disallow debugfs code to be built.

The Makefile structure is intended to allow the use of a single
switch for turning on DebugFS.

Changes since v6:
 - Rely on default Kconfig value for a bool
 - comment/doc fixes
 - use const where appropriate
 - fix inline declaration

Changes since v5:
 - Added parameters names in declarations/definitions
 - Reformatted an inline definition

Changes since v4:
 - Guard vendor-specific debugfs files in the Makefile
 - Call top-level routine from iommu_init()
 - Add function for instantiating a driver-specific directory
 - Change AMD driver code to use this new format

Changes since v3:
 - Remove superfluous calls to debugfs_initialized()
 - Emit a warning exactly one time
 - Change the Kconfig name to IOMMU_DEBUGFS
 - Change the way debugfs modules are made

Changes since v2:
 - Move a declaration to outside an ifdef
 - Remove a spurious blank line

Changes since v1:
 - Remove debug cruft
 - Remove cruft produced by design change
 - Change the lock to a mutex
 - Coding style fixes
 - Add a comment to document the framework

---

Gary R Hook (2):
      iommu - Enable debugfs exposure of IOMMU driver internals
      iommu/amd: Add basic debugfs infrastructure for AMD IOMMU


 drivers/iommu/Kconfig             |   10 +++++
 drivers/iommu/Makefile            |    6 +++
 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   |    3 ++
 drivers/iommu/iommu-debugfs.c     |   72 +++++++++++++++++++++++++++++++++++++
 drivers/iommu/iommu.c             |    2 +
 include/linux/iommu.h             |   11 ++++++
 9 files changed, 153 insertions(+), 2 deletions(-)
 create mode 100644 drivers/iommu/amd_iommu_debugfs.c
 create mode 100644 drivers/iommu/iommu-debugfs.c

--

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-06-05 16:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-14 17:20 [PATCH v7 0/2] Base enablement of IOMMU debugfs support Gary R Hook
     [not found] ` <152631818082.18929.13970142119193316487.stgit-tq90VzyE+wXkLsZ8J5Uweg@public.gmane.org>
2018-05-14 17:20   ` [PATCH v7 1/2] iommu - Enable debugfs exposure of IOMMU driver internals Gary R Hook
     [not found]     ` <152631842046.18929.1205439632866632871.stgit-tq90VzyE+wXkLsZ8J5Uweg@public.gmane.org>
2018-05-24  9:18       ` Greg KH
     [not found]         ` <20180524091807.GA18148-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2018-06-05 16:48           ` Gary R Hook
2018-05-14 17:20   ` [PATCH v7 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU Gary R Hook
2018-05-14 17:50     ` Randy Dunlap
     [not found]       ` <ba2bb6f7-77ea-4431-af0f-d20c19820d5d-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2018-05-14 20:00         ` Gary R Hook
     [not found]           ` <5e45f38e-cb45-d4a1-f351-30543f787290-5C7GfCeVMHo@public.gmane.org>
2018-05-14 21:00             ` Randy Dunlap
2018-05-15 13:46           ` Joerg Roedel
     [not found]             ` <20180515134603.GD18595-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2018-05-18 15:20               ` Gary R Hook
     [not found]                 ` <4041cb33-19a2-5542-4211-1dce51de5e40-5C7GfCeVMHo@public.gmane.org>
2018-05-18 16:49                   ` Randy Dunlap
2018-05-18 21:02                     ` Gary R Hook
     [not found]                       ` <3eefbef8-142e-0a29-3e97-536717f63a98-5C7GfCeVMHo@public.gmane.org>
2018-05-24 23:51                         ` Gary R Hook
2018-05-29 12:09                         ` Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).