Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4246115ybf; Tue, 3 Mar 2020 23:50:17 -0800 (PST) X-Google-Smtp-Source: ADFU+vsuwMPNMn68DHld442VDA6d19StkRI+SENmSbU0ACR0ERddxvEisvMqSng1gzuTPid6OJut X-Received: by 2002:aca:c6c4:: with SMTP id w187mr946992oif.60.1583308217089; Tue, 03 Mar 2020 23:50:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583308217; cv=none; d=google.com; s=arc-20160816; b=nzt73aHYxoQIAfM6SNDI6+z9J8Aj7caweQZ49cLOyTP9YXcvxvC64QzPofuU3nyiF6 DKmjU2NAIRoixIngT1YKo8UiHMM+7nrrbQZh1s9Bc4toBeyncipFs+IfN3WtWkL8tqpt 0Cc1hH7uM282oK8NjN+KiPXHUU2oa8TVzkCdmKUcRysvqTCPjI+Xcpe5J61R3MhmFIHE eUE/8CRoWjJzMRrlPqXVSDeg952BGvqAjvq8neG5atW/fNNw9arAgQ7ImMEVAiBV3K8E n3jhpLluySgh3tSGckJIUYo71j0Xm6n0kS+h3l+Fgd3OnK1HaCrVuX9DGtwtBJfXLiYq ZAfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=gFKFn0HWGHhbk1UpmFKeRx9OT0+u8aO/ruuouuhGLpk=; b=kNNYXZ3Y8emvcgBwVlZpNVl33DReP+IXIL/IQr73NGxorlb/YWywxcF6tg/ml9GJse F5ClP0SF3VVrHh1XC0ESqwmjpjGlUUhOy7Y075A+DH4qnUjmFgtG8X3w7Y5N6DQ9+yV6 ElKJ7lud+UwsLcR59oB/xiQnkyvUl59nk2nqGpF+FiSzPHToghicXty+WWQGPNp20gIg A7R11sKiubeC27seN6jVa2Xe3gyJfyby9KQsYeysQ3QDHdmsXHSYROkjMvOJ+4jynRBH aYBBOM27NrzD2w1ZmRqNY5FLLOvelPwbNM9YKjPMtSS/tjfEa63RQfJhrDqceJ92GWCw Yy/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si676397oix.12.2020.03.03.23.50.05; Tue, 03 Mar 2020 23:50:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728472AbgCDHuB (ORCPT + 99 others); Wed, 4 Mar 2020 02:50:01 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11142 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728458AbgCDHuB (ORCPT ); Wed, 4 Mar 2020 02:50:01 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4EEC6421EEFCC8CCC427; Wed, 4 Mar 2020 15:49:57 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Wed, 4 Mar 2020 15:49:51 +0800 From: Shukun Tan To: , CC: , , , Subject: [PATCH 0/4] crypto: hisilicon - Refactor find device related code Date: Wed, 4 Mar 2020 15:49:21 +0800 Message-ID: <1583308165-16800-1-git-send-email-tanshukun1@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain 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 By binding device finding with create QP logic to fix the bug of creating QP failure occasionally. Then, merge the find device related code into qm.c to reduce redundancy. Hui Tang (1): crypto: hisilicon/hpre - Optimize finding hpre device process Kai Ye (1): crypto: hisilicon/sec2 - Add new create qp process Shukun Tan (1): crypto: hisilicon/zip - Use hisi_qm_alloc_qps_node() when init ctx Weili Qian (1): crypto: hisilicon/qm - Put device finding logic into QM drivers/crypto/hisilicon/hpre/hpre.h | 3 +- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 20 ++--- drivers/crypto/hisilicon/hpre/hpre_main.c | 52 +++--------- drivers/crypto/hisilicon/qm.c | 125 ++++++++++++++++++++++++++++ drivers/crypto/hisilicon/qm.h | 31 +++++++ drivers/crypto/hisilicon/sec2/sec.h | 5 +- drivers/crypto/hisilicon/sec2/sec_crypto.c | 17 ++-- drivers/crypto/hisilicon/sec2/sec_main.c | 81 +++++++----------- drivers/crypto/hisilicon/zip/zip.h | 2 +- drivers/crypto/hisilicon/zip/zip_crypto.c | 54 ++++++------ drivers/crypto/hisilicon/zip/zip_main.c | 92 ++------------------ 11 files changed, 252 insertions(+), 230 deletions(-) -- 2.7.4