Skip to content

Commit

Permalink
iommu/amd - Record more information about unknown events
Browse files Browse the repository at this point in the history
When an unknown type event occurs, the default information written to
the syslog should dump raw event data. This could provide insight into
the event that occurred.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  • Loading branch information
Gary R Hook authored and Alex Williamson committed Dec 20, 2017
1 parent 1291a0d commit f9fc049
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/iommu/amd_iommu.c
Original file line number Diff line number Diff line change
@@ -616,7 +616,9 @@ static void iommu_print_event(struct amd_iommu *iommu, void *__evt)
address, flags);
break;
default:
printk(KERN_ERR "UNKNOWN type=0x%02x]\n", type);
printk(KERN_ERR "UNKNOWN type=0x%02x event[0]=0x%08x "
"event[1]=0x%08x event[2]=0x%08x event[3]=0x%08x\n",
type, event[0], event[1], event[2], event[3]);
}

memset(__evt, 0, 4 * sizeof(u32));

0 comments on commit f9fc049

Please sign in to comment.