From patchwork Mon Sep 30 07:08:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou Wang X-Patchwork-Id: 174715 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6758755ill; Mon, 30 Sep 2019 00:12:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxP+Lpm7DDQiihlhZJCOxTCQ0UPqle4UGplfz46itIG8ghcWpvqz2vmOtP4UuSHUOD3WNxg X-Received: by 2002:aa7:c616:: with SMTP id h22mr17819004edq.96.1569827558978; Mon, 30 Sep 2019 00:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569827558; cv=none; d=google.com; s=arc-20160816; b=FbKJeMeyY7BhYC3wgxMcwfCarDEZFgi7ZjOjjeI/LbHBCs8vwW5eD2PAi/GX9TxAjK rD+RGTVHc34V9JBw0GmhHVnjmKlUU6Mf9zFIqebvO353uxmIVSQcgFsi4xLb4UjNz0a9 xdbAm4wk5VS6V1dTKCMysKHIuY6+L1WgWfcwFnDUEir0WGA3RJluwcOK9lYcKwH5km03 PcRrSNk3RXLAXHjv60UTG5h8Lc1hW+9uUWtlAYUvLrvwRwwPSvY7VJ10Y/5ILhNuqXrS nk5A8qh2ztTLh+XNbCymG5odMCl+K824w8jNxfxAVyUeAC5ahAY+7Btqzk3BIeroOETB 3zGA== 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 c54si6624087edb.230.2019.09.30.00.12.38; Mon, 30 Sep 2019 00:12:38 -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 + 3 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 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