From patchwork Mon Jan 20 07:30:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shukun Tan X-Patchwork-Id: 198200 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7F26C33CB7 for ; Mon, 20 Jan 2020 07:30:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8C5820684 for ; Mon, 20 Jan 2020 07:30:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726148AbgATHaU (ORCPT ); Mon, 20 Jan 2020 02:30:20 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:42992 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726089AbgATHaU (ORCPT ); Mon, 20 Jan 2020 02:30:20 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C9CDE9BFEA9824FD5ADD; Mon, 20 Jan 2020 15:30:17 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Mon, 20 Jan 2020 15:30:11 +0800 From: Shukun Tan To: , CC: , Subject: [PATCH 0/4] crypto: hisilicon: Unify hardware error handle process Date: Mon, 20 Jan 2020 15:30:05 +0800 Message-ID: <1579505409-3776-1-git-send-email-tanshukun1@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org ZIP/HPRE/SEC hardware error handle process has great similarities, unify the essential error handle process looks necessary. We mainly unify error init/uninit and error detect process in this patch set. We also add the configure of ZIP RAS error and fix qm log error bug. Shukun Tan (4): crypto: hisilicon: Unify hardware error init/uninit into QM crypto: hisilicon: Configure zip RAS error type crypto: hisilicon: Unify error detect process into qm crypto: hisilicon: Fix duplicate print when qm occur multiple errors drivers/crypto/hisilicon/hpre/hpre_main.c | 108 +++++---------- drivers/crypto/hisilicon/qm.c | 216 +++++++++++++++++++++--------- drivers/crypto/hisilicon/qm.h | 25 +++- drivers/crypto/hisilicon/sec2/sec_main.c | 162 ++++++++-------------- drivers/crypto/hisilicon/zip/zip_main.c | 183 +++++++++++-------------- 5 files changed, 346 insertions(+), 348 deletions(-)