aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r--arch/x86/kernel/amd_iommu.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 6c99f5037801..364c6de26374 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -138,6 +138,15 @@ static int iommu_has_npcache(struct amd_iommu *iommu)
138 * 138 *
139 ****************************************************************************/ 139 ****************************************************************************/
140 140
141static void dump_dte_entry(u16 devid)
142{
143 int i;
144
145 for (i = 0; i < 8; ++i)
146 pr_err("AMD-Vi: DTE[%d]: %08x\n", i,
147 amd_iommu_dev_table[devid].data[i]);
148}
149
141static void iommu_print_event(void *__evt) 150static void iommu_print_event(void *__evt)
142{ 151{
143 u32 *event = __evt; 152 u32 *event = __evt;
@@ -155,6 +164,7 @@ static void iommu_print_event(void *__evt)
155 "address=0x%016llx flags=0x%04x]\n", 164 "address=0x%016llx flags=0x%04x]\n",
156 PCI_BUS(devid), PCI_SLOT(devid), PCI_FUNC(devid), 165 PCI_BUS(devid), PCI_SLOT(devid), PCI_FUNC(devid),
157 address, flags); 166 address, flags);
167 dump_dte_entry(devid);
158 break; 168 break;
159 case EVENT_TYPE_IO_FAULT: 169 case EVENT_TYPE_IO_FAULT:
160 printk("IO_PAGE_FAULT device=%02x:%02x.%x " 170 printk("IO_PAGE_FAULT device=%02x:%02x.%x "