2013-03-27 23:50:50

by Suthikulpanit, Suravee

[permalink] [raw]
Subject: [PATCH 0/3] iommu/amd: Improve IOMMU Event Log Interrupt Handling

From: Suravee Suthikulpanit <[email protected]>

Typically, IOMMU events are logged into the event log. Current driver processes each event
in the log when the hardware generate an MSI interrupt. It reports event type, device ID,
raw status flag, and etc. in the kernel log (dmesg)

1. The first patch improve event reporting by using the type of event and status flag to
decode event information and provide more detail in the report. This should also be useful
when debugging IOMMU issues.

2. The second patch provide interface for testing the event decoding logic using the debugfs.

3. Fix IOMMU event log interrupt handling which currently does not re-enable the event interrupt.

drivers/iommu/Kconfig | 9 ++
drivers/iommu/Makefile | 1 +
drivers/iommu/amd_iommu.c | 167 ++++++++++++++++++++++++++++++++------
drivers/iommu/amd_iommu_inject.c | 99 ++++++++++++++++++++++
drivers/iommu/amd_iommu_proto.h | 9 ++
drivers/iommu/amd_iommu_types.h | 1 +
6 files changed, 259 insertions(+), 27 deletions(-)
create mode 100644 drivers/iommu/amd_iommu_inject.c

--
1.7.10.4