From: Gary R Hook Date: Wed, 20 Dec 2017 16:47:07 +0000 (-0700) Subject: iommu/amd - Record more information about unknown events X-Git-Tag: v4.19~1608^2^4~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9fc049ef1e05da3e3d2a45d098ec89b89bf687e;p=platform%2Fkernel%2Flinux-rpi3.git iommu/amd - Record more information about unknown events 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 Signed-off-by: Alex Williamson --- diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 7d5eb00..6af7ae6 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -616,7 +616,9 @@ retry: 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));