From patchwork Wed Sep 14 14:41:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wen.ping.teh@intel.com X-Patchwork-Id: 12976266 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3DE3C6FA82 for ; Wed, 14 Sep 2022 14:43:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XppmuuqB4Yai+WG+Q+xzVEy4qiIJkMJW/dly8rSKRB4=; b=xVo1Juo3qh+/m2 LX6Zn7OmbIo5RaQjnWsyf0w+69CWUcGs1j9o4dR0ZGaIG4LoOINZ0B27XvoVn0Aku2BdWUm3ku0rv pRxb1WoO2/owi7hSHeUt6fYLT/13UeEloZMUngoI8IBzlcXBpL20XmuydN31GPgor/YOyFxqHfyZ1 heITusRg2H1aoBS+GE2YecDHw/StyRw8YZxstd2aw1enYR14C7unGFT+Fa3W0v9EKOMe4jUL7ULvC htcofg9fZWpMo8FUgbe3V6GIvRCcSNhOmqE4ZvzRd5l5RuNqs/5+Em+AT5u+mbZ4rXygrB+CEWHcE +C69/Gx2AIu2T8sHV6pw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYTad-002ZvC-LC; Wed, 14 Sep 2022 14:42:12 +0000 Received: from mga04.intel.com ([192.55.52.120]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYTaa-002ZLa-8l for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2022 14:42:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663166528; x=1694702528; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9fFnn5TSiqBWPXmJkmIUeGCehKJxMYPcteHI9sy/mA0=; b=gqrjIjVkEMUvQc4+U5rLCs4LRyptTG0+QDm+JRR4wPefoiE4o4iqAQxE muytq4SHb+lsQ2Z8svtnNS+RxBTYlf+xCFthRwJNezGVfLYk69Fch6lHr zRoNJkF9qjvY6do9Kaaf+SvhQSx3vV/CtKMcB+RSdR53nPkh4a3koF3dM qhsdhJObr6vCIIm0JxUNo2N1T9ndZjbVsWptA0PizE8Qily9VdIVtJNWk b5BzLhsZc8kJCET53xh0vTmCPdQAYcoGnK+Hre9opiG6nOQ2hrwmIJxYI DV8iHrB7EAx0LAQUB9gFOiN9AppOZz2aradkp0XblzbCTqYmnJDOXHAIe g==; X-IronPort-AV: E=McAfee;i="6500,9779,10470"; a="297176543" X-IronPort-AV: E=Sophos;i="5.93,315,1654585200"; d="scan'208";a="297176543" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2022 07:41:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,315,1654585200"; d="scan'208";a="720608026" Received: from unknown (HELO localhost.localdomain) ([10.226.216.116]) by fmsmga002.fm.intel.com with ESMTP; 14 Sep 2022 07:41:53 -0700 From: wen.ping.teh@intel.com To: herbert@gondor.apana.org.au, davem@davemloft.net, catalin.marinas@arm.com, will@kernel.org, bjorn.andersson@linaro.org, shawnguo@kernel.org, krzysztof.kozlowski+dt@linaro.org, dmitry.baryshkov@linaro.org Cc: dinguyen@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Teh Wen Ping Subject: [PATCH 0/2] crypto: intel-fcs: Add crypto service driver for Intel SoCFPGA Date: Wed, 14 Sep 2022 22:41:37 +0800 Message-Id: <20220914144137.605279-1-wen.ping.teh@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220914_074208_345541_12338B69 X-CRM114-Status: GOOD ( 11.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Teh Wen Ping This patch introduces a crypto service driver for Intel SoCFPGA family. The FPGA Crypto Service (FCS) includes a large set of security features that are provided by the Secure Device Manager(SDM) in FPGA. The driver provide IOCTL interface for user to call the crypto services and send them to SDM's mailbox. Teh Wen Ping (2): crypto: intel-fcs: crypto service driver for Intel SoCFPGA family arm64: defconfig: add CRYPTO_DEV_INTEL_FCS arch/arm64/configs/defconfig | 1 + drivers/crypto/Kconfig | 11 + drivers/crypto/Makefile | 1 + drivers/crypto/intel_fcs.c | 726 +++++++++++++++++++++++++++ include/uapi/linux/intel_fcs-ioctl.h | 211 ++++++++ 5 files changed, 950 insertions(+) create mode 100644 drivers/crypto/intel_fcs.c create mode 100644 include/uapi/linux/intel_fcs-ioctl.h