Gary R Hook bad614b242 iommu: Enable debugfs exposure of IOMMU driver internals
Provide base enablement for using debugfs to expose internal data of an
IOMMU driver. When called, create the /sys/kernel/debug/iommu directory.

Emit a strong warning at boot time to indicate that this feature is
enabled.

This function is called from iommu_init, and creates the initial DebugFS
directory. Drivers may then call iommu_debugfs_new_driver_dir() to
instantiate a device-specific directory to expose internal data.
It will return a pointer to the new dentry structure created in
/sys/kernel/debug/iommu, or NULL in the event of a failure.

Since the IOMMU driver can not be removed from the running system, there
is no need for an "off" function.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2018-07-06 14:06:30 +02:00
..
2018-02-06 09:59:40 -08:00
2018-06-12 16:19:22 -07:00
2018-04-11 18:50:41 -07:00
2017-08-23 16:28:09 +02:00
2018-06-12 16:19:22 -07:00
2018-01-17 15:25:50 +01:00
2018-01-17 15:25:50 +01:00
2018-04-11 18:50:41 -07:00
2018-01-17 15:25:50 +01:00
2018-06-12 16:19:22 -07:00