]> Pileus Git - ~andy/linux/commit
iommu: Change iommu driver to call detach_device_to_domain trace event
authorShuah Khan <shuah.kh@samsung.com>
Thu, 15 Aug 2013 17:59:27 +0000 (11:59 -0600)
committerJoerg Roedel <joro@8bytes.org>
Tue, 24 Sep 2013 10:35:26 +0000 (12:35 +0200)
commit699806302d8ac7dfb7d46e20da0ecd4317418d1d
tree406d54a42e179207e604d9f952a29d069c958378
parentb54db778858bc83f9231e5b358cb978f559f7016
iommu: Change iommu driver to call detach_device_to_domain trace event

Change iommu driver to call detach_device_to_domain trace event. This
iommu_device class event can be enabled to trigger when devices are detached
from a domain. Trace information includes device name.

Testing:
Added trace calls to iommu_prepare_identity_map() for testing some of the
conditions that are hard to trigger. Here is the trace from the testing:

       swapper/0-1     [003] ....     1.854102: detach_device_from_domain: IOMMU: device=0000:00:02.0

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/iommu.c