Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2938685imm; Thu, 24 May 2018 19:28:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqREPSC8lLUiEnsnRIRQ+TXZ0f3o2mCo6RwvrxiQfYmqEyA+MqKeMNitrcwQVRP7XFlZHiX X-Received: by 2002:a62:f58b:: with SMTP id b11-v6mr536493pfm.113.1527215312854; Thu, 24 May 2018 19:28:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527215312; cv=none; d=google.com; s=arc-20160816; b=T2+uujdD/b6iQ6JZd8YQvpbkR5iPLVPL5ZiFRSQZfxtu/LxckquBawpA0weEkqTxlE D6Da3eXTVec9SBJPWsFhMilkDWVsVUM1unkcyNBdgcnVTSjlFDmKcXlqGcjFNmk0tGuO 3Lr980vHP5V37raXoyWnBWQFP4h2VOi5HmJgWcOgS+RKnak/o8DS4O+HAzS+TNJrGj1W LvT+uf6mJzuhnBVyEmxeXqdmLODLuthKD2z0aTPaUPYnqYlAkWgKQ+PTFMRiXIcunQ1S EG1/Qvc2QAlGRYEADwdIJCcZbFYodzV3Bhb5MOYpsX81hUYNfXxldORMADNGuOg/eEZJ dE3A== 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=FBBy/EU2DcIvCET4Ruwg1As5detCNqxfOX2igRG5T/8=; b=fH/oZatUE99m/eXpVVoBtLFnTtAWZfFbT3iChRt0QRqfyC14RqZM72wkAKM6xIQUZI g13gbQa7Rtqno0nr0mcTdxuE8LAFvd7PW6ad+skgrocodMjeSlt+bHREapYfbOz9At3D w9MX18nSl3nnqV1QsWVW11qyaHW0mZJvLUB9FaHM7IxjLcSiSYBZqbWErmYL6XaLZTlX ODyi3jfB0UYOJqwjtE7mpD/PMKxO7b0RI18jSeW4JOaIfHxilGC9jLFbut/6tkZSGgxO TPJV/mU7owNMRgpSfQDLNDVXnSAlx3wFLgQyegnn97u2UjafoioWo/UthrngrcARxYmj E+SQ== 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 k4-v6si17759001pgp.74.2018.05.24.19.28.18; Thu, 24 May 2018 19:28:32 -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 S1033702AbeEXQaD (ORCPT + 99 others); Thu, 24 May 2018 12:30:03 -0400 Received: from mga06.intel.com ([134.134.136.31]:7324 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033672AbeEXQ3Y (ORCPT ); Thu, 24 May 2018 12:29:24 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 May 2018 09:29:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,436,1520924400"; d="scan'208";a="51893095" Received: from marshy.an.intel.com ([10.122.105.159]) by FMSMGA003.fm.intel.com with ESMTP; 24 May 2018 09:29:22 -0700 From: richard.gong@linux.intel.com To: 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, gregkh@linuxfoundation.org, 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@linux.intel.com, richard.gong@intel.com Subject: [PATCHv5 8/8] Documentation: driver-api: add stratix10 service layer Date: Thu, 24 May 2018 11:33:20 -0500 Message-Id: <1527179600-26441-9-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527179600-26441-1-git-send-email-richard.gong@linux.intel.com> References: <1527179600-26441-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 --- 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 6d8352c..4b31109 100644 --- a/Documentation/driver-api/index.rst +++ b/Documentation/driver-api/index.rst @@ -49,6 +49,7 @@ available subsections can be seen below. dmaengine/index slimbus soundwire/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