Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2081805imu; Tue, 6 Nov 2018 08:49:40 -0800 (PST) X-Google-Smtp-Source: AJdET5cl06f6JH9AlFT7RjAEdZqAVlyhTsu7Ql3/D2cz8IUKkj14FYF1rz+DAc9eW3zMP4bfGeCm X-Received: by 2002:a17:902:9a04:: with SMTP id v4-v6mr26577152plp.247.1541522980815; Tue, 06 Nov 2018 08:49:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541522980; cv=none; d=google.com; s=arc-20160816; b=aqp12PFoKC7ViRufSa6L3LoRvcHJdH0ZhfzDWpali+kHJWd9RshjE+J3EB0nQnSAF+ ujhKGuzygNndH+5iyrq7nDVv1uDOcapgsKCtRj9dCuPFyATyHRBJf70s0Nxf+aehNKag 6sN3ruQn3Phn2NtubK8bOfVnhSqIEab03jSuTzXfB1zMgxWbIBS250J+CJcnKCWgOudQ NoXEkfHWFQqHXBaNK6ElPhle9LeBTQ72Xa4h8o8UotWu9ebsgXHNH6HUcg+l8rsz+Szp v6xxKW5nTqwLNTMuTnr+JF0EQPmRAaroCSbLWMVZUnCY4Jedvr38rOaOYelweeykT80q B8Lg== 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; bh=5Hpt7g9Eck+bnSIg4pNhB5GiWaL2FZwn5r80fLrcRp0=; b=BWukoV3uPJfacxIAX2RHmDZnNn+cGoJpiNiTJCvsOtim2SpdPCj0ZfqZltt1kNCie9 RnGf9ZjPDdf2aYlWbZ0g3RL1FA1IH4qaCpc26QeoIVT3jm4ddcjpgV0K8a8iQgz4uW+3 dDd5sL/dl+1VDKYjzw1N0J7hyF6cBH4EhCVK0hKDvOlg40jZrUxRETuT7cMlMfa33G05 NKD1WaGtp+5Z83clbJLHA/pGjAEvPHPCBNX+j95Oa0fhZkRUZGvzCcL4OSNwggopKgDV ewtgtc9M4Daqfw7CsjirlxNIg6LRfOABS1uftDXE0cX8IuQmVkEtTdyKHIGblvosjkL9 Qcmw== 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 a5si3341627pgg.120.2018.11.06.08.49.24; Tue, 06 Nov 2018 08:49:40 -0800 (PST) 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 S2389523AbeKGCNG (ORCPT + 99 others); Tue, 6 Nov 2018 21:13:06 -0500 Received: from mga07.intel.com ([134.134.136.100]:48209 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388935AbeKGCNG (ORCPT ); Tue, 6 Nov 2018 21:13:06 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2018 08:47:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,472,1534834800"; d="scan'208";a="83756063" Received: from marshy.an.intel.com ([10.122.105.159]) by fmsmga007.fm.intel.com with ESMTP; 06 Nov 2018 08:47:01 -0800 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, todd.riffel@intel.com, richard.gong@intel.com Subject: [PATCHv10 7/8] Documentation: driver-api: add stratix10 service layer Date: Tue, 6 Nov 2018 10:52:51 -0600 Message-Id: <1541523172-5171-8-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541523172-5171-1-git-send-email-richard.gong@linux.intel.com> References: <1541523172-5171-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 v9: no change v10: add stratix10 service layer document to other firmware interface, and then remove stratix10-svc.rst file --- .../driver-api/firmware/other_interfaces.rst | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/driver-api/firmware/other_interfaces.rst b/Documentation/driver-api/firmware/other_interfaces.rst index 36c47b1..a4ac54b 100644 --- a/Documentation/driver-api/firmware/other_interfaces.rst +++ b/Documentation/driver-api/firmware/other_interfaces.rst @@ -13,3 +13,33 @@ EDD Interfaces .. kernel-doc:: drivers/firmware/edd.c :internal: +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/firmware/intel/stratix10-svc-client.h + :functions: stratix10_svc_command_code + +.. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h + :functions: stratix10_svc_client_msg + +.. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h + :functions: stratix10_svc_command_reconfig_payload + +.. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h + :functions: stratix10_svc_cb_data + +.. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h + :functions: stratix10_svc_client + +.. kernel-doc:: drivers/firmware/stratix10-svc.c + :export: -- 2.7.4