Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6605308ybn; Mon, 30 Sep 2019 00:19:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7aEqY1v/NYUm0kC7+HtMwk4I3ymcCrxI5Vd+Fi4temm3CQDL621c9MUgJj9F5bUhM1+wE X-Received: by 2002:a50:ac0d:: with SMTP id v13mr17791417edc.189.1569827969682; Mon, 30 Sep 2019 00:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569827969; cv=none; d=google.com; s=arc-20160816; b=wjZl5RYFfoH5MJ3RMguYyOd7CTN/ifEKSV+RVDPkJD+mQtServ9mcMaoOwioMMD83m 6swqs5qTUo3L6zyWhBCKWH/EdpjDputuCAn3rNzuMyDTFaG7fjeHWvcpCzIlpd2z10Vu mew7HL0tcuLwW10/6udOh3WdlJNx7JDLQ8PYSKBdLIgR+ZA8Ebh/T0bjy+g+Hz+lTEod bJzdoKYk+1gZrEWvHpLlcsx+1f18BkfGe7thGBvNALU4oHrCVNHfZmyHwPYWNa/nAX0Z qsJxoIkgQUo0jRJkw+L4zfDn7gpVw0xRe8qr1rmi+QrBh9BoUhv2KDLp1UMEXxB0kFik /4qA== 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=heKNxv4WdPlO6Nk1KpowNvzjXEUPJWJCFQnRsu3kaJc=; b=w9MHWoWTcqOpEFcojftO3HjsMMwpZn6HtoBHxU4uBO3TauA3sNklVS+WMnE3PtyyXf sRLbWyZ6hHlmEC7HkwQC2GEYbnyzlDGD+HIK67xxEsr/8E0HsuA69ACDT1HWST0FqDMZ hU9RSi8XqXL0kvzY4oRTlsdvYQm07j0A87+MM2eoFTm0oK1AnAP9a5eS/2WYDfUxTdcn qq/wF14NxYJlo1FOrpCpXcNqQEvxiBMxuGgFkGAMk4Yc7JsC5pDu95C9GI7sfEi6nwVA yBy0Ta8zQ3BHlALmF7jvm/34lt5sl/zpAPFKt7OPyaYkdW2KMswyPuOWZgbP1/wDOUF2 0HiA== 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 13si7245896edw.357.2019.09.30.00.19.05; Mon, 30 Sep 2019 00:19:29 -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 S1729495AbfI3HMX (ORCPT + 99 others); Mon, 30 Sep 2019 03:12:23 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3176 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729478AbfI3HMX (ORCPT ); Mon, 30 Sep 2019 03:12:23 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 380D5ECA9688446599DE; Mon, 30 Sep 2019 15:12:19 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Mon, 30 Sep 2019 15:12:10 +0800 From: Zhou Wang To: Herbert Xu , "David S. Miller" CC: , , Zhou Wang Subject: [PATCH 0/4] crypto: hisilicon: misc sgl fixes Date: Mon, 30 Sep 2019 15:08:51 +0800 Message-ID: <1569827335-21822-1-git-send-email-wangzhou1@hisilicon.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This series fixes some preblems in sgl code. The main change is merging sgl code into hisi_qm module. These problem are also fixed: - Let user driver to pass the configure of sge number in one sgl when creating hardware sgl resources. - When disabling SMMU, it may fail to allocate large continuous memory. We fixes this by allocating memory by blocks. This series is based on Arnd's patch: https://lkml.org/lkml/2019/9/19/455 Shunkun Tan (1): crypto: hisilicon - add sgl_sge_nr module param for zip Zhou Wang (3): crypto: hisilicon - merge sgl support to hisi_qm module crypto: hisilicon - fix large sgl memory allocation problem when disable smmu crypto: hisilicon - misc fix about sgl MAINTAINERS | 1 - drivers/crypto/hisilicon/Kconfig | 9 -- drivers/crypto/hisilicon/Makefile | 4 +- drivers/crypto/hisilicon/qm.h | 13 +++ drivers/crypto/hisilicon/sgl.c | 182 +++++++++++++++++++----------- drivers/crypto/hisilicon/sgl.h | 24 ---- drivers/crypto/hisilicon/zip/zip.h | 1 - drivers/crypto/hisilicon/zip/zip_crypto.c | 44 ++++++-- 8 files changed, 167 insertions(+), 111 deletions(-) delete mode 100644 drivers/crypto/hisilicon/sgl.h -- 2.8.1