Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7122465imm; Tue, 28 Aug 2018 06:49:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY3xquA8JSpXDnGVkal0RtkjjeDQP7AG5FrJi0EAAbL4TD6YpYRGBZNJ5IHVhQyjtm5r8vB X-Received: by 2002:a63:5204:: with SMTP id g4-v6mr1675046pgb.274.1535464191994; Tue, 28 Aug 2018 06:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535464191; cv=none; d=google.com; s=arc-20160816; b=QDMyq66EM6ZLLSoAB+shwPK8RzWKbXFTM7BAz56GsQw7Ol7ckQOFVUpIklOliO+gzU Xq6GNBdSBlbr4NUcsuxrOPnfDD0Bws96SjGXbUYVdc/LknyM91JGPwpyI2GlkzOUXcrI qhNC9J9tmDa6l2ld39lM6RzAYqd5JafNeFLOUIiC55dMCO5WZh9VCZ0HPl5wiG2AC3NP lJIbOHPLsOUyBNruPxIaLwa9i5/gzycKvmT5jfCg66ldpk7hcIMkNnBBSi8Zmc3coBcE qM3FPgj+eCH7RzVc4KQPMyatSFrVTRrj6kOE2DvoJsfHlU0De2Z1UoXQKA+UCx1tpvkj 5qbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Ma8quf6ji7KtlIwQj9o0xZfQMtw+xZWtaKW0A3449MU=; b=l64MBU4ZfMT3hSnqr636UF2jV6ej5oG/1q7fPQmF7+NlaayZA32VsoHtXlJCWknNDa H+XCt5OQYs2JkMedzcPQmHrA6Nd5UvQnYpMBL6EwBC5+MVzhoIBSbXKfUWsEv4yzpLUX 3Bj5qgAdQIXw7XqbFVrF0ThZy3FoahdstPYJd9kE8xvrGHqnrBW73DA6PNmVuv8Z815u bBRFVEHGzVNOnagpPjBhmmHDndkdw+WEyWHCarNUHrKOLdZio8iSFgFYjizzb9W4mQF0 GQFVFSleKRglo6OFDdAQl6Vm7iXiuLfNS1TRm2fWNXsvY+5ACcDi2A4DJi4WEnCScdDX Iq5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t190-v6si1064450pfb.216.2018.08.28.06.49.37; Tue, 28 Aug 2018 06:49:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728433AbeH1RkE (ORCPT + 99 others); Tue, 28 Aug 2018 13:40:04 -0400 Received: from mga09.intel.com ([134.134.136.24]:61240 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728306AbeH1RkE (ORCPT ); Tue, 28 Aug 2018 13:40:04 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Aug 2018 06:48:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,299,1531810800"; d="scan'208";a="85609984" Received: from marshy.an.intel.com ([10.122.105.159]) by orsmga001.jf.intel.com with ESMTP; 28 Aug 2018 06:48:17 -0700 From: richard.gong@linux.intel.com To: gregkh@linuxfoundation.org, catalin.marinas@arm.com, will.deacon@arm.com, dinguyen@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, atull@kernel.org, mdf@kernel.org, arnd@arndb.de, corbet@lwn.net Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-fpga@vger.kernel.org, linux-doc@vger.kernel.org, yves.vandervennet@linux.intel.com, richard.gong@intel.com Subject: [PATCHv8 8/9] Documentation: driver-api: add stratix10 service layer Date: Tue, 28 Aug 2018 08:50:44 -0500 Message-Id: <1535464245-11638-9-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535464245-11638-1-git-send-email-richard.gong@linux.intel.com> References: <1535464245-11638-1-git-send-email-richard.gong@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Gong Add new file stratix10-svc.rst Add stratix10-svc.rst to driver-api/index.rst Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v5: this patch is added in patch set version 5 v6: no change v7: no change v8: no change --- Documentation/driver-api/index.rst | 1 + Documentation/driver-api/stratix10-svc.rst | 32 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 Documentation/driver-api/stratix10-svc.rst diff --git a/Documentation/driver-api/index.rst b/Documentation/driver-api/index.rst index 6d9f2f9..d4d2671 100644 --- a/Documentation/driver-api/index.rst +++ b/Documentation/driver-api/index.rst @@ -53,6 +53,7 @@ available subsections can be seen below. slimbus soundwire/index fpga/index + stratix10-svc .. only:: subproject and html diff --git a/Documentation/driver-api/stratix10-svc.rst b/Documentation/driver-api/stratix10-svc.rst new file mode 100644 index 0000000..ed361d8 --- /dev/null +++ b/Documentation/driver-api/stratix10-svc.rst @@ -0,0 +1,32 @@ + +Intel Stratix10 SoC Service Layer +================================= + +Some features of the Intel Stratix10 SoC require a level of privilege +higher than the kernel is granted. Such secure features include +FPGA programming. In terms of the ARMv8 architecture, the kernel runs +at Exception Level 1 (EL1), access to the features requires +Exception Level 3 (EL3). + +The Intel Stratix10 SoC service layer provides an in kernel API for +drivers to request access to the secure features. The requests are queued +and processed one by one. ARM’s SMCCC is used to pass the execution +of the requests on to a secure monitor (EL3). + +.. kernel-doc:: include/linux/stratix10-svc-client.h + :functions: stratix10_svc_command_code + +.. kernel-doc:: include/linux/stratix10-svc-client.h + :functions: stratix10_svc_client_msg + +.. kernel-doc:: include/linux/stratix10-svc-client.h + :functions: stratix10_svc_command_reconfig_payload + +.. kernel-doc:: include/linux/stratix10-svc-client.h + :functions: stratix10_svc_cb_data + +.. kernel-doc:: include/linux/stratix10-svc-client.h + :functions: stratix10_svc_client + +.. kernel-doc:: drivers/misc/stratix10-svc.c + :export: -- 2.7.4