浏览代码

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 <gary.hook@amd.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Gary R Hook 7 年之前
父节点
当前提交
f9fc049ef1
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      drivers/iommu/amd_iommu.c

+ 3 - 1
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));