Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp447183ybh; Tue, 10 Mar 2020 01:44:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv2nc44cAKIQy6sofvO8Vvtw6bBoPlECAjcKzgte/jnqcv8w7fzIpCTBQRHvvR7ny3Jdk38 X-Received: by 2002:a9d:19a6:: with SMTP id k35mr8250474otk.13.1583829858588; Tue, 10 Mar 2020 01:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583829858; cv=none; d=google.com; s=arc-20160816; b=bMyTfeL7nAEUqaUzbb+luxq5ZxqMdcNy0JDiwxjl0rtJzdHWgyo7AnkUNPTxBGIVL7 7PCRgVuojXgEGuwJVtntAbNVayLqupnn2oCr53E1Hl2kGNYVpq7nWftR8u+dNB5+SUEk btXc17eBIYA6H3glxeO7PQJ+7fnqWvdTLwwpkHWXnGOMFKwSK1HBSN2hHoK1uUd86FEI fwW2QU7GQM6lc/UMh0OGyT78Yeeeb4c58QrrCKH/wZyUFVb1zYn+O0aUrULYCGU7wjUm 6sBGT/nqFQVlE0XsO/7ATURaiCfrMbrX9cVRuv+0OCsQNyzBejw2JQDCzfRpN7JyZpAv c5rQ== 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=Oalvdpr7vbrcjdueeSW5zgGkeNqe4n6SbjFIQDN12n0=; b=rjSNPqA4EMv3q2yR4wFIV1pxbbCO5YM+eqDCzQ7kuEaFZ1yCHdWqD42RI/1jYOnc9n wPwTDW3Xf1B1MQD6WVoYnXyrXZjol6m1pFH+tD64g90KL+4skPidDcju0fh8jDbhC2hz dTNmvLRqChVwR5BJiL256YU5ro2bVihCHyvniLVraZSqccI4XjcKOvd0doBRPvLAuRG5 WOR2QVJSww43qr4Z3XqWGNAd86gGZexnboP2yBd0FeRny8v4ZRHXNB5cW3V88S/TaBz/ k/omNPG8nexgSOvGiNVBJPfIqBXWqBRNtBOE8+dP9yWvFv94TD/d15wgSvnW16XLQem/ Al8A== 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 e25si5281283oii.201.2020.03.10.01.43.57; Tue, 10 Mar 2020 01:44:18 -0700 (PDT) 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 S1726528AbgCJInf (ORCPT + 99 others); Tue, 10 Mar 2020 04:43:35 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11198 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726613AbgCJIne (ORCPT ); Tue, 10 Mar 2020 04:43:34 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2B7A45BB7320238C421E; Tue, 10 Mar 2020 16:43:30 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Tue, 10 Mar 2020 16:43:21 +0800 From: Shukun Tan To: , CC: , , Subject: [PATCH v2 0/4] crypto: hisilicon - Refactor find device related code Date: Tue, 10 Mar 2020 16:42:48 +0800 Message-ID: <1583829772-53372-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. This series depends upon this patchset: https://lore.kernel.org/linux-crypto/1583373985-718-1-git-send-email-xuzaibo@huawei.com/ Changes v1 -> v2: - Fix bug of compile when disable NUMA config. 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