Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2772919pxp; Mon, 14 Mar 2022 04:48:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvUJj1wXQdSXjZFhBvRsdVP6BNiGML4zVyCq+OcUnELAWGqLx32BfKEvi0rXx15O/HYe0t X-Received: by 2002:a17:902:6b8b:b0:14d:66c4:f704 with SMTP id p11-20020a1709026b8b00b0014d66c4f704mr23227458plk.53.1647258527721; Mon, 14 Mar 2022 04:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647258527; cv=none; d=google.com; s=arc-20160816; b=JK24lJFikhO9fTaIjldmxIkuAmNt3wXpX/2UWCeYtxWhG805ADid1DRz10g3340PmA SKxhTDpCasrYvhEl65aUzvub/RvVLEbxPA9NOjBVvL5lNf3+CcVl7Lho2ESP+28JeMXf /Z0CTkqNnsVSIndHgxSzTugJjY2lIbEBMcAZM4BEQ8H6bM0X9FM5n38qS1ta46uidQE1 Zsi2wEwNFwUvNo9xdfIIqIZJ/HQkPO4Tnis0vomhRWyNS78ymsWvapjZTL68c+OpU2Ax uKx8/hIEue67qn4S9nOQexPrAFJQ/VNKdMrpC9JVNjWNzc9YqoT8QMrf5nO5MnTr2oyU hSrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jG7KD1i7Mbk6TNqd3DkGHsw95N6WxjQz9GNaK2pjUdw=; b=KauTUmjqxIXUwlBxgQXBs2xofTP9nuHf7WaEIFs7t7Tf2+g5hxavg5HaxqUuUOZ9DW 1bb0/Zk/cIv+uLV/C2V7TocOP+eb2tTVzB+jvKlOJphU0XURLa9LYeHkEM6/xacfKnI1 CUfuZW/GPytnUvDAz07Y3SoNRlqSGOrv47T0uqkkf0mpgbuvBMgEg2RUAkkyelzu8vhn nztfaJZyAkfNUQLYPI+ifVE7iFSgikQCXjIzInVM4fWbEeRBqCb24jhCWtyY9/86xFiu sUQWg9400Vxw1mVEY8QTXPXSOSoII8Ne5jRJ85roqI2eZBmgvKxTAiFVpuZL83Gj00Mq AMmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jWw6sqGK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a17090311ce00b001517d6bd6f8si17905184plh.533.2022.03.14.04.48.33; Mon, 14 Mar 2022 04:48:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jWw6sqGK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235881AbiCNC2P (ORCPT + 99 others); Sun, 13 Mar 2022 22:28:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235877AbiCNC2O (ORCPT ); Sun, 13 Mar 2022 22:28:14 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39220BC05 for ; Sun, 13 Mar 2022 19:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647224826; x=1678760826; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GEyE/4btuBn2qY75wID4c2MfMBzqfeDl8itxIezppds=; b=jWw6sqGKetCImTRs3qmmHdR8o27qiOgO2FunjfvJpcVPseLy74/15l9E 2jQlRGgJmngupYzO22jwxyyYNb2SnIKvtI+WcDHWPjB+7lTDQe9UUNvCi K11V5iiQbFGW62LhfirIIk3moofhrRZ3/KJTZ9kMHeh2q037C+VgXTylA x7FnRC/r1zSWhN+XbJZPp5VwGtaf5eCHMHNfpJDBOlqZWdg1LtOC1H6t+ tTIzDM6+stzY9lHydk+UncO1pBWwMpbDGcne/qGSHhb9h94TkdFYagTHe nEQvOuA7VdnevMBBEy1C1biMJdWvRXRvO3qKqVakU1dSEJt1dffBZsSe3 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10285"; a="236523921" X-IronPort-AV: E=Sophos;i="5.90,179,1643702400"; d="scan'208";a="236523921" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2022 19:27:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,179,1643702400"; d="scan'208";a="645620297" Received: from unknown (HELO localhost.localdomain) ([10.226.216.87]) by orsmga004.jf.intel.com with ESMTP; 13 Mar 2022 19:27:04 -0700 From: tien.sung.ang@intel.com To: Dinh Nguyen Cc: linux-kernel@vger.kernel.org, Ang Tien Sung Subject: [PATCH 0/3] firmware: stratix10-svc: Add new FCS support Date: Mon, 14 Mar 2022 18:26:44 +0800 Message-Id: <20220314102644.1746670-1-tien.sung.ang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ang Tien Sung Hi, Beginning with Stratix10 and Agilex, a new fpga crypto services shall be supported. This is a first of many patches to add new cryto functionalities in the form of new commands to the firmware svc driver. The new crytpo services are provided by the Secure device manager(SDM). The firmware SVC driver receives the commands from the client drivers and sends this command via SMC calls to the Arm trusted firmware(ATF) or U-boot firmware at EL3. The firmware interrupt service handlers than, processes the new commands and send them the SDM's mailbox. To support asynchronos commands, we have introduced a INTEL_SIP_SMP_SERVICE_COMPLETED command to poll the completion of the crypto operations. This polling commands are essential for the rest of the FCS commands. All new FCS commands shall have a prefix of INTEL_SIP_SMC_FCS_XXXXX. There shall also be a new FCS client device driver called intel_fcs that will be added. The SVC firmware driver registers the new FCS client driver and allocates a new channel for this device driver. This brings the total supported client drivers to 3 (RSU, FPGA and FCS) We have tested this functionality by regression testing within Intel's test framework. Ang Tien Sung (3): firmware: stratix10-svc: extend svc to support FCS features firmware: stratix10-svc: add new polling command for FCS firmware: stratix10-svc: add new FCS commands drivers/firmware/stratix10-svc.c | 160 ++++++++++++++++-- include/linux/firmware/intel/stratix10-smc.h | 137 ++++++++++++++- .../firmware/intel/stratix10-svc-client.h | 50 +++++- 3 files changed, 325 insertions(+), 22 deletions(-) -- 2.25.1