Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752166AbdLDTwu (ORCPT ); Mon, 4 Dec 2017 14:52:50 -0500 Received: from mail-by2nam01on0063.outbound.protection.outlook.com ([104.47.34.63]:22892 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752035AbdLDTws (ORCPT ); Mon, 4 Dec 2017 14:52:48 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Subject: [PATCH] iommu/amd - Record more information about unknown events From: Gary R Hook To: iommu@lists.linux-foundation.org Cc: joro@8bytes.org, linux-kernel@vger.kernel.org Date: Mon, 04 Dec 2017 13:52:42 -0600 Message-ID: <151241716233.31107.11094386543203626385.stgit@sosxen2.amd.com> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: CY4PR08CA0040.namprd08.prod.outlook.com (10.173.247.154) To MWHPR12MB1216.namprd12.prod.outlook.com (10.169.204.144) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9ac1ddcb-c91a-49d1-5fcf-08d53b50975f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603286);SRVR:MWHPR12MB1216; X-Microsoft-Exchange-Diagnostics: 1;MWHPR12MB1216;3:MlW38KIFhxucifSHGgTywUZCOJMC/2ZJwvug4OW0dMl0MhgPwmrQkADQp3zUPdpj294PRdrbfISNbEdBkr4i5gG9vav0LMlwl4+/g18mB4aJQbqJDgNwt7fN1nKW59jvzV85h87P5dM+t13ZbIFvPPCx+LUERMKVYjx8LAFcaYCCXSJZBDZaj1SAFvTpVCwZbTIr0CGff9/wH34cli+GP6XtsZs4D1L4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heJ31Tt9viOyzfNwbzpWB3A3L4EIJC4vwGb9f1tNwSEK+CW+TNL6+dvsNUvYinEiMyXsN2ZyI1tQ8xPjCPsehGljwUdnxvbj3bV5YGEwT42XFNgqpw8TLOJN9;4:+o7KqRBWf4tqU5JgcnKmLauQZd+2Yga2wyEWEyySOWsQ1E29ueptayAJno00GhFPLnoRYRlQFIp5mXzFdvaBHQVEoEZHF1vXZGslMkwKb86a/40O7HQqUNdhnnrb0mOScmUqX1G7Xfn8pLLHEky/TeyBL2DwDvdaZAiQx+Mcrlx48NdA9OhSf9aP2cDvK+eu2dHle/8MhgmbOYnrBVRRdkSiqcmPuRiVMEYYU+9cbZFC5NmU5IaxWq07emUFBKVvcaWPqVB9vSG0/ph4orZEskbPst6wl6Xk0H6chSWFWwHKyn3MBMjK7P6vBKWZoIMx4Io2yJCdsMCHvjV+N/9g3w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(155532106045638); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231022)(93006095)(93001095)(6055026)(6041248)(20161123555025)(20161123558100)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011);SRVR:MWHPR12MB1216;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:MWHPR12MB1216; X-Forefront-PRVS: 051158ECBB X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(39860400002)(376002)(366004)(346002)(199003)(189002)(6116002)(3846002)(2486003)(4326008)(33646002)(305945005)(86362001)(105586002)(53416004)(8676002)(101416001)(103116003)(50466002)(106356001)(230700001)(66066001)(47776003)(81166006)(81156014)(2351001)(55016002)(2361001)(72206003)(53936002)(2906002)(58126008)(5660300001)(8936002)(16526018)(316002)(25786009)(23676004)(54356011)(83506002)(7736002)(6916009)(52116002)(97736004)(7696005)(68736007)(189998001)(6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Ifh34qOErSJezRIdIQvPq2QzK7uqSSUHxuaCRLsvU4Y+FZCVqGWPIhLeROPxT7mn3nN3RwoWszBNugbDZzpUnv+5sAMtH7V/D0s+bxNbvR46mBlfatwcFQ2Ujjokt4agvrCBooGIy1bDFKF8 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2017 19:52:46.1606 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ac1ddcb-c91a-49d1-5fcf-08d53b50975f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1216 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 886 Lines: 24 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 --- 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 51f8215877f5..cb78933ef53f 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -617,7 +617,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));