From patchwork Fri Sep 9 09:46:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weili Qian X-Patchwork-Id: 604290 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA04CECAAD3 for ; Fri, 9 Sep 2022 09:49:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230515AbiIIJtt (ORCPT ); Fri, 9 Sep 2022 05:49:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231749AbiIIJtq (ORCPT ); Fri, 9 Sep 2022 05:49:46 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D834766C; Fri, 9 Sep 2022 02:49:44 -0700 (PDT) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MPB1L6qJWzZcP9; Fri, 9 Sep 2022 17:45:10 +0800 (CST) Received: from kwepemm600009.china.huawei.com (7.193.23.164) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 9 Sep 2022 17:49:42 +0800 Received: from localhost.localdomain (10.69.192.56) by kwepemm600009.china.huawei.com (7.193.23.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 9 Sep 2022 17:49:41 +0800 From: Weili Qian To: CC: , , , , Weili Qian Subject: [PATCH 00/10] crypto: hisilicon - support get device information from registers Date: Fri, 9 Sep 2022 17:46:54 +0800 Message-ID: <20220909094704.32099-1-qianweili@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600009.china.huawei.com (7.193.23.164) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This patchset supports obtaining device information from device registers, including the supported algorithms, device features, and so on. Weili Qian (6): crypto: hisilicon/qm - get hardware features from hardware registers crypto: hisilicon/qm - get qp num and depth from hardware registers crypto: hisilicon/qm - add UACCE_CMD_QM_SET_QP_INFO support crypto: hisilicon/qm - get error type from hardware registers crypto: hisilicon/qm - support get device irq information from hardware registers crypto: hisilicon/zip - support zip capability Wenkai Lin (1): crypto: hisilicon/sec - get algorithm bitmap from registers Zhiqi Song (3): crypto: hisilicon/hpre - support hpre capability crypto: hisilicon/hpre - optimize registration of ecdh crypto: hisilicon - support get algs by the capability register drivers/crypto/hisilicon/hpre/hpre.h | 8 +- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 250 ++++--- drivers/crypto/hisilicon/hpre/hpre_main.c | 208 +++++- drivers/crypto/hisilicon/qm.c | 765 +++++++++++++------- drivers/crypto/hisilicon/sec2/sec.h | 34 +- drivers/crypto/hisilicon/sec2/sec_crypto.c | 454 +++++++----- drivers/crypto/hisilicon/sec2/sec_main.c | 160 +++- drivers/crypto/hisilicon/zip/zip.h | 1 + drivers/crypto/hisilicon/zip/zip_crypto.c | 73 +- drivers/crypto/hisilicon/zip/zip_main.c | 256 +++++-- include/linux/hisi_acc_qm.h | 63 +- include/uapi/misc/uacce/hisi_qm.h | 17 +- 12 files changed, 1589 insertions(+), 700 deletions(-)