From patchwork Wed Sep 28 16:53:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary R Hook X-Patchwork-Id: 9354359 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B07E16077A for ; Wed, 28 Sep 2016 17:09:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C2CD2977E for ; Wed, 28 Sep 2016 17:09:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90BE329780; Wed, 28 Sep 2016 17:09:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D66622977E for ; Wed, 28 Sep 2016 17:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932977AbcI1RJV (ORCPT ); Wed, 28 Sep 2016 13:09:21 -0400 Received: from mail-by2nam01on0074.outbound.protection.outlook.com ([104.47.34.74]:40181 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932856AbcI1RJU (ORCPT ); Wed, 28 Sep 2016 13:09:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zdQIxFG0W7rchH5WUaFTcTnXl0ObsIilyL1TV9DwoMA=; b=BgVGwHB3lq/m2l/qBElNo5tBRAJaLANnb11ib7lcr1JKSuu7p7FZlQ5NE727UgAU4GPtCQ9LMGaHzy2OEMlxpscyFaJTqCllmJgQ5UMTo30FMdAkA8m7xLYrw2X/X08D5bDQtxmwygs62/xX0tlx2R7VFCbh8VFE8vy++UB6jsg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Received: from [10.236.19.42] (165.204.77.1) by DM5PR12MB1404.namprd12.prod.outlook.com (10.168.238.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.619.10; Wed, 28 Sep 2016 16:54:01 +0000 Subject: [PATCH v2 2/2] crypto: ccp - Make syslog errors human-readable From: Gary R Hook To: CC: , , Date: Wed, 28 Sep 2016 11:53:56 -0500 Message-ID: <20160928165356.23263.84073.stgit@taos> In-Reply-To: <20160928165204.23263.77515.stgit@taos> References: <20160928165204.23263.77515.stgit@taos> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: YTOPR01CA0040.CANPRD01.PROD.OUTLOOK.COM (10.166.147.50) To DM5PR12MB1404.namprd12.prod.outlook.com (10.168.238.143) X-MS-Office365-Filtering-Correlation-Id: edae71ff-ee7e-4a37-546a-08d3e7c00c70 X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1404; 2:mXf6vr1+zxoU5aikDMHT9S7WeXH3t8CDSHhBKu14Ppq0cj4pOnG0eiIR/6b6OwOIHozIC9P9viox7Jbk3EH7ufS0K7NwckIPZljIs1Cta/vRzIKjIjSzbOzrhTpVzMjIP2CiZaMvXUIpQOpO/fG9bG+xtyIrH/waJTtybTKxNyYLqxpMY/HSgg0D9upNJusJ; 3:u2XBB77Iu8lgTfbT6uH9IE6wMAL3CeVOAeeoGp1IwXmh0Cqbm1O7MV6mNAXdPaoS2ehUweyzqH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lcTtTlkp4hdYV2cJWuycTXUmPbd/RoOAmjBoE1xZ6eKB3qgnUY0A81FHsV+/rSP1kkLqi2F6MM5Mb0xuJgEcjFpvZ1NYIfPMZkPwDia99SGd7YA5Qt+nBpDTNoWDGz+gVCcApXJWxKx0l441lji3yhDoWz5WHMCTcMo1A8TGWgTJ/Uoxh9TnAB37cY73F3SuS0T0Z5e6ODx9/IXaDceZt3wK8w80OC/L6bAYgnw9nVCnEClVI17WSB/FYWWwOV4E2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:DM5PR12MB1404; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1404; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1404; 4:wZh0IqKVf6Xq7RxexdhJ59LOF+v/UEyPF6gHnJw5ibmkhsnZWjPYSW2CO2gz/cxOvNl770GDlQAPkHq4XNz0jbVJzzCd7wGCoVrruEoY8L/IBxctzCldrHR1Y/TpMCvbb45omrFBwQujzfnRie8o/w0yiNAyIgHGRGO4DDjkG2DyR39SZ7d87qQHgzuhRojWSJW6vE+sRzeDpcE5wRB7m/UgqQDIn8eRDhGkCPHBwtCiP6mHnvA5iEsYYYEbUiEzy1q/0v6SvoxPk59Ks/0KRUeTfG0u5OLJeS4MBQ7xqVmxCKcZyOyCIkiXEXkPvqHng/KyQFAEC/d9UDEhDH3/FERiJnW+ykdnn2mAicuyxApZRR/dIZG1KPKU66WhJSJHSUZy4Hv2tj1uC6dVmLEfhmJECuC037s8ut05WFalC4dChni24wXHPxWYKYoKrw/+ X-Forefront-PRVS: 0079056367 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(199003)(189002)(97746001)(81166006)(54356999)(97736004)(23676002)(76176999)(9686002)(101416001)(106356001)(105586002)(33646002)(8676002)(42186005)(81156014)(4001350100001)(7736002)(2950100002)(68736007)(7846002)(66066001)(103116003)(305945005)(92566002)(50986999)(77096005)(6116002)(86362001)(2906002)(189998001)(1076002)(83506001)(4326007)(33716001)(19580405001)(230700001)(5660300001)(19580395003)(586003)(3846002)(229853001)(50466002)(47776003)(2351001)(110136003)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1404; H:[10.236.19.42]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxNDA0OzIzOjVQOEtzcE5BNllWdUE1dC9SditJVThnaVBD?= =?utf-8?B?TXlpOG14TFRFQk1ERjQzUnVHaEZKenIwbjA4SzY1VmF3Mjc3aVdwK2RwMmcx?= =?utf-8?B?L2NNNE9EQUhxd29mUHpDeDBvSDQ5Rjh2UW9pMFVqNDdZYVp1ZkJpeGZSOEVq?= =?utf-8?B?NVJYT0NXNVR3Zlp6V2RJYi9SYVEyMWltaXVTU3RERmtYZFdmMUhJaHQ4REI0?= =?utf-8?B?ZXdzeTV0b0FHdmMzRHJJdmQ0c2s2SEJCQXdxT0VaT3FFMjVOS2dqMC9oWHdM?= =?utf-8?B?MkxHRld2MzVTSk4yWGxMY0plaEVpMmZHbFdOS3psTjJHQTBiMUMxM1V1bnNF?= =?utf-8?B?STNJYnFFVURlNUF0cElraTJ3RzZYNTIrQll4MDY2NnNDUWlBbXEvVVBUU0ZQ?= =?utf-8?B?bm56cUtsTUszclF2VEhjcmI4cUg0U0lXVWdubXVrdmx5c3ptaTRITWIwVzhi?= =?utf-8?B?WG5jRXhmWmhhR3FKdTI0NlFtemx3Z2V1REJHZTlILzdmek1kRGU5QS9KN2Fj?= =?utf-8?B?TlJySitWVFd4YTZITHRPZ2wwclExV1dtMGt2NC9CUlQxeWRDQytNS1hWYkxP?= =?utf-8?B?R1I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6bmdMvasEChHmQoTEOcPlvJp/dgKsjSJAaylVw6N7kVMLBINQwvrcz4EkKZaOlWscIRzLPyX8w19pwH18nWUB+8BpbyqtKRPmhRajdqbtOhcU2juMV2HdfYQ2mEWcwooZH/rN6SB8WAf83UPQp+TTcMDTjM0aajK06Ol4O SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1404; 20:evRWSenSMRxBmSWgyu7h/BRkxi4yGstQFRkjtP4zirLiqN4aC8FlCsdVUjsIQ/GUKuPoadaZOqZM421s4iYOv04ZyuW8XEQ1RMiJ2ADyFDDLCJo1ZvIdHJROxTwvqMW7wbbd+Fro9HHK9bE5Lp9LLvejVUvTFdHX/n53m9ybnlTuETEoMGbjuorwr2lmFVDBuzsfgjkL74oYT4fktDc9jYBbceNIYTbjBmDgySuVf8y+2Py82opoPGJHNeHWo3aH X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2016 16:54:01.3473 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1404 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add human-readable strings to log messages about CCP errors Signed-off-by: Gary R Hook --- drivers/crypto/ccp/ccp-dev-v3.c | 3 ++ drivers/crypto/ccp/ccp-dev-v5.c | 3 ++ drivers/crypto/ccp/ccp-dev.c | 53 +++++++++++++++++++++++++++++++++++++++ drivers/crypto/ccp/ccp-dev.h | 2 + 4 files changed, 61 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/crypto/ccp/ccp-dev-v3.c b/drivers/crypto/ccp/ccp-dev-v3.c index b6615b1..8d2dbac 100644 --- a/drivers/crypto/ccp/ccp-dev-v3.c +++ b/drivers/crypto/ccp/ccp-dev-v3.c @@ -124,6 +124,9 @@ static int ccp_do_cmd(struct ccp_op *op, u32 *cr, unsigned int cr_count) /* On error delete all related jobs from the queue */ cmd = (cmd_q->id << DEL_Q_ID_SHIFT) | op->jobid; + if (cmd_q->cmd_error) + ccp_log_error(cmd_q->ccp, + cmd_q->cmd_error); iowrite32(cmd, ccp->io_regs + DEL_CMD_Q_JOB); diff --git a/drivers/crypto/ccp/ccp-dev-v5.c b/drivers/crypto/ccp/ccp-dev-v5.c index a90ca9e..faf3cb3 100644 --- a/drivers/crypto/ccp/ccp-dev-v5.c +++ b/drivers/crypto/ccp/ccp-dev-v5.c @@ -243,6 +243,9 @@ static int ccp5_do_cmd(struct ccp5_desc *desc, ret = wait_event_interruptible(cmd_q->int_queue, cmd_q->int_rcvd); if (ret || cmd_q->cmd_error) { + if (cmd_q->cmd_error) + ccp_log_error(cmd_q->ccp, + cmd_q->cmd_error); /* A version 5 device doesn't use Job IDs... */ if (!ret) ret = -EIO; diff --git a/drivers/crypto/ccp/ccp-dev.c b/drivers/crypto/ccp/ccp-dev.c index 5d36eef..cafa633 100644 --- a/drivers/crypto/ccp/ccp-dev.c +++ b/drivers/crypto/ccp/ccp-dev.c @@ -40,6 +40,59 @@ struct ccp_tasklet_data { struct ccp_cmd *cmd; }; +/* Human-readable error strings */ +char *ccp_error_codes[] = { + "", + "ERR 01: ILLEGAL_ENGINE", + "ERR 02: ILLEGAL_KEY_ID", + "ERR 03: ILLEGAL_FUNCTION_TYPE", + "ERR 04: ILLEGAL_FUNCTION_MODE", + "ERR 05: ILLEGAL_FUNCTION_ENCRYPT", + "ERR 06: ILLEGAL_FUNCTION_SIZE", + "ERR 07: Zlib_MISSING_INIT_EOM", + "ERR 08: ILLEGAL_FUNCTION_RSVD", + "ERR 09: ILLEGAL_BUFFER_LENGTH", + "ERR 10: VLSB_FAULT", + "ERR 11: ILLEGAL_MEM_ADDR", + "ERR 12: ILLEGAL_MEM_SEL", + "ERR 13: ILLEGAL_CONTEXT_ID", + "ERR 14: ILLEGAL_KEY_ADDR", + "ERR 15: 0xF Reserved", + "ERR 16: Zlib_ILLEGAL_MULTI_QUEUE", + "ERR 17: Zlib_ILLEGAL_JOBID_CHANGE", + "ERR 18: CMD_TIMEOUT", + "ERR 19: IDMA0_AXI_SLVERR", + "ERR 20: IDMA0_AXI_DECERR", + "ERR 21: 0x15 Reserved", + "ERR 22: IDMA1_AXI_SLAVE_FAULT", + "ERR 23: IDMA1_AIXI_DECERR", + "ERR 24: 0x18 Reserved", + "ERR 25: ZLIBVHB_AXI_SLVERR", + "ERR 26: ZLIBVHB_AXI_DECERR", + "ERR 27: 0x1B Reserved", + "ERR 27: ZLIB_UNEXPECTED_EOM", + "ERR 27: ZLIB_EXTRA_DATA", + "ERR 30: ZLIB_BTYPE", + "ERR 31: ZLIB_UNDEFINED_SYMBOL", + "ERR 32: ZLIB_UNDEFINED_DISTANCE_S", + "ERR 33: ZLIB_CODE_LENGTH_SYMBOL", + "ERR 34: ZLIB _VHB_ILLEGAL_FETCH", + "ERR 35: ZLIB_UNCOMPRESSED_LEN", + "ERR 36: ZLIB_LIMIT_REACHED", + "ERR 37: ZLIB_CHECKSUM_MISMATCH0", + "ERR 38: ODMA0_AXI_SLVERR", + "ERR 39: ODMA0_AXI_DECERR", + "ERR 40: 0x28 Reserved", + "ERR 41: ODMA1_AXI_SLVERR", + "ERR 42: ODMA1_AXI_DECERR", + "ERR 43: LSB_PARITY_ERR", +}; + +void ccp_log_error(struct ccp_device *d, int e) +{ + dev_err(d->dev, "CCP error: %s (0x%x)\n", ccp_error_codes[e], e); +} + /* List of CCPs, CCP count, read-write access lock, and access functions * * Lock structure: get ccp_unit_lock for reading whenever we need to diff --git a/drivers/crypto/ccp/ccp-dev.h b/drivers/crypto/ccp/ccp-dev.h index 08f58b0..da5f4a6 100644 --- a/drivers/crypto/ccp/ccp-dev.h +++ b/drivers/crypto/ccp/ccp-dev.h @@ -601,6 +601,8 @@ void ccp_platform_exit(void); void ccp_add_device(struct ccp_device *ccp); void ccp_del_device(struct ccp_device *ccp); +extern void ccp_log_error(struct ccp_device *, int); + struct ccp_device *ccp_alloc_struct(struct device *dev); bool ccp_queues_suspended(struct ccp_device *ccp); int ccp_cmd_queue_thread(void *data);