lkml.org 
[lkml]   [2014]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject[RFC PATCH 0/2] iommu: Expose IOMMU information in sysfs
From
Date
Users want to know the features of their hardware and we need a better
way to get it than parsing it out of dmesg. This series adds a simple
registration interface for IOMMUs and an example base implementation
for intel-iommu.

One key hardware feature for device assignment is the IOMMU support
for superpages. In this example, we can parse it out of the "cap"
attribute exposed, but I expect we'll want to add more human readable
entries for such features. I'd welcome suggestions on what features
we should pull out into human friendly attributes and how to format
the contents.

I have not attempted to make a common, consistent interface for
attributes between various IOMMU types here. I'm not entirely sure
such a thing is possible. Perhaps instead we do like I show in the
intel-iommu example and provide IOMMU driver specific attribute
groups, clearly labeled so that we effectively give each a namespace.
We can promote consistency between drivers, but a common namespace
is probably best left to userspace tools.

Appreciate any thoughts and comments. Thanks,

Alex

---

Alex Williamson (2):
iommu: Add sysfs support for IOMMUs
iommu/intel: Make use of IOMMU sysfs support


drivers/iommu/Makefile | 1
drivers/iommu/dmar.c | 8 ++
drivers/iommu/intel-iommu.c | 75 ++++++++++++++++++++++
drivers/iommu/iommu-sysfs.c | 147 +++++++++++++++++++++++++++++++++++++++++++
include/linux/intel-iommu.h | 2 +
include/linux/iommu.h | 28 ++++++++
6 files changed, 260 insertions(+), 1 deletion(-)
create mode 100644 drivers/iommu/iommu-sysfs.c


\
 
 \ /
  Last update: 2014-05-08 01:21    [W:0.058 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site