From patchwork Mon Dec 16 08:27:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ike Panhc X-Patchwork-Id: 1210152 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47bvXB2nWnz9sPc; Mon, 16 Dec 2019 19:27:21 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1iglih-0001wL-5P; Mon, 16 Dec 2019 08:27:11 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iglie-0001vk-T0 for kernel-team@lists.ubuntu.com; Mon, 16 Dec 2019 08:27:08 +0000 Received: from 1.general.ikepanhc.us.vpn ([10.172.69.54]) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iglie-0005Mj-0n for kernel-team@lists.ubuntu.com; Mon, 16 Dec 2019 08:27:08 +0000 To: kernel-team@lists.ubuntu.com From: Ike Panhc Subject: [PULL] [Focal] Hisilicon crypto drivers update Message-ID: <9a2cfd5d-91bc-3d12-3d6d-27406bc1b0aa@canonical.com> Date: Mon, 16 Dec 2019 16:27:04 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" Hi, Here are patches to upgrade hisilicon crypto drivers to 5.5 for Focal. All patches are clean cherry-picked from upstream and also adjust configs for new drivers BugLink: https://bugs.launchpad.net/bugs/1854549 BugLink: https://bugs.launchpad.net/bugs/1850117 The following changes since commit c776e8fff2a89fd3039a12abd41ccbec63435398: UBUNTU: Ubuntu-5.4.0-8.11 (2019-12-06 15:55:35 -0600) are available in the Git repository at: git://kernel.ubuntu.com/ikepanhc/public.git lp1854549 for you to fetch changes up to 5400ffda457e01eadd29088a3da9195d53fbfc07: UBUNTU: [Config] Enable HISI crypto drivers and update previous module (2019-12-16 16:13:39 +0800) ---------------------------------------------------------------- Arnd Bergmann (1): crypto: hisilicon - allow compile-testing on x86 Dan Carpenter (1): crypto: hisilicon - fix a NULL vs IS_ERR() bug in sec_create_qp_ctx() Greg Kroah-Hartman (1): crypto: hisilicon - no need to check return value of debugfs_create functions Hao Fang (1): crypto: hisilicon - add vfs_num module param for zip Ike Panhc (1): UBUNTU: [Config] Enable HISI crypto drivers and update previous module Longfang Liu (1): Documentation: add DebugFS doc for HiSilicon SEC Rikard Falkeborn (1): crypto: hisilicon: Fix misuse of GENMASK macro Shukun Tan (4): crypto: hisilicon - add sgl_sge_nr module param for zip crypto: hisilicon - Fix using plain integer as NULL pointer crypto: hisilicon - fix param should be static when not external. crypto: hisilicon - fix endianness verification problem of QM Zaibo Xu (11): crypto: hisilicon - add HiSilicon HPRE accelerator crypto: hisilicon - add SRIOV support for HPRE crypto: hisilicon - Add debugfs for HPRE crypto: hisilicon - add HiSilicon SEC V2 driver crypto: hisilicon - add SRIOV for HiSilicon SEC crypto: hisilicon - add DebugFS for HiSilicon SEC hwrng: hisi - add HiSilicon TRNG driver support MAINTAINERS: Add maintainer for HiSilicon HPRE driver MAINTAINERS: Add maintainer for HiSilicon TRNG V2 driver MAINTAINERS: Add maintainer for HiSilicon SEC V2 driver Documentation: Add debugfs doc for hisi_hpre Zhou Wang (8): 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 crypto: hisilicon - select NEED_SG_DMA_LENGTH in qm Kconfig crypto: hisilicon - tiny fix about QM/ZIP error callback print crypto: hisilicon - use sgl API to get sgl dma addr and len crypto: hisilicon - fix to return sub-optimal device when best device has no qps crypto: hisilicon - replace #ifdef with IS_ENABLED for CONFIG_NUMA Documentation/ABI/testing/debugfs-hisi-hpre | 57 + Documentation/ABI/testing/debugfs-hisi-sec | 43 + MAINTAINERS | 25 +- debian.master/abi/5.4.0-7.8/arm64/generic.modules | 2 - .../abi/5.4.0-7.8/arm64/snapdragon.modules | 2 - debian.master/config/config.common.ubuntu | 4 +- drivers/char/hw_random/Kconfig | 13 + drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/hisi-trng-v2.c | 99 ++ drivers/crypto/hisilicon/Kconfig | 43 +- drivers/crypto/hisilicon/Makefile | 6 +- drivers/crypto/hisilicon/hpre/Makefile | 2 + drivers/crypto/hisilicon/hpre/hpre.h | 83 ++ drivers/crypto/hisilicon/hpre/hpre_crypto.c | 1137 ++++++++++++++++++++ drivers/crypto/hisilicon/hpre/hpre_main.c | 1052 ++++++++++++++++++ drivers/crypto/hisilicon/qm.c | 142 +-- drivers/crypto/hisilicon/qm.h | 17 +- drivers/crypto/hisilicon/sec2/Makefile | 2 + drivers/crypto/hisilicon/sec2/sec.h | 156 +++ drivers/crypto/hisilicon/sec2/sec_crypto.c | 889 +++++++++++++++ drivers/crypto/hisilicon/sec2/sec_crypto.h | 198 ++++ drivers/crypto/hisilicon/sec2/sec_main.c | 1095 +++++++++++++++++++ drivers/crypto/hisilicon/sgl.c | 184 ++-- drivers/crypto/hisilicon/sgl.h | 24 - drivers/crypto/hisilicon/zip/zip.h | 1 - drivers/crypto/hisilicon/zip/zip_crypto.c | 46 +- drivers/crypto/hisilicon/zip/zip_main.c | 294 ++--- 27 files changed, 5302 insertions(+), 315 deletions(-) create mode 100644 Documentation/ABI/testing/debugfs-hisi-hpre create mode 100644 Documentation/ABI/testing/debugfs-hisi-sec create mode 100644 drivers/char/hw_random/hisi-trng-v2.c create mode 100644 drivers/crypto/hisilicon/hpre/Makefile create mode 100644 drivers/crypto/hisilicon/hpre/hpre.h create mode 100644 drivers/crypto/hisilicon/hpre/hpre_crypto.c create mode 100644 drivers/crypto/hisilicon/hpre/hpre_main.c create mode 100644 drivers/crypto/hisilicon/sec2/Makefile create mode 100644 drivers/crypto/hisilicon/sec2/sec.h create mode 100644 drivers/crypto/hisilicon/sec2/sec_crypto.c create mode 100644 drivers/crypto/hisilicon/sec2/sec_crypto.h create mode 100644 drivers/crypto/hisilicon/sec2/sec_main.c delete mode 100644 drivers/crypto/hisilicon/sgl.h