提交 f9fc049e 编写于 作者: G Gary R Hook 提交者: Alex Williamson

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: NGary R Hook <gary.hook@amd.com>
Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
上级 1291a0d5
...@@ -616,7 +616,9 @@ static void iommu_print_event(struct amd_iommu *iommu, void *__evt) ...@@ -616,7 +616,9 @@ static void iommu_print_event(struct amd_iommu *iommu, void *__evt)
address, flags); address, flags);
break; break;
default: 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)); memset(__evt, 0, 4 * sizeof(u32));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册