iommu/amd - Record more information about unknown events

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/f9fc049ef1e05da3e3d2a45d098ec89b89bf687e
Commit:     f9fc049ef1e05da3e3d2a45d098ec89b89bf687e
Parent:     1291a0d5049dbc06baaaf66a9ff3f53db493b19b
Refname:    refs/heads/master
Author:     Gary R Hook <[email protected]>
AuthorDate: Wed Dec 20 09:47:07 2017 -0700
Committer:  Alex Williamson <[email protected]>
CommitDate: Wed Dec 20 09:47:07 2017 -0700

    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 <[email protected]>
    Signed-off-by: Alex Williamson <[email protected]>
---
 drivers/iommu/amd_iommu.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 7d5eb004091d..6af7ae6eac5e 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));
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.