Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5688258imu; Tue, 13 Nov 2018 10:10:06 -0800 (PST) X-Google-Smtp-Source: AJdET5f6H4pKIVwuN9eBUPsUnfzZofdvsSI3vTmijiwVXcfhtS1i2eNsetwgi/iG4iQulM8A0Umx X-Received: by 2002:a17:902:104:: with SMTP id 4-v6mr6259891plb.184.1542132606475; Tue, 13 Nov 2018 10:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542132606; cv=none; d=google.com; s=arc-20160816; b=kswDWQoaE23gDYwSFQLwgZTS+K4TeqBeU7425R8TQiymwijBH8obHK8X5XTaGC3KJ9 UMutJIh/yKwtR89g7DeTXMF9atowWrtkbnXKxWAE8qYgz46dWUpSr0XzJB+oRftqJIjz 3gyaTz1FSaeaXeMettx0nBxlCMsJ9pLwAGZVRJwL+QvaUvEWzLiwse3j7r80w8BzXiNm 0SjUsEr/NB9RMfhm2Q41twnGqpZaoDaFIWwy9AH/2iiwXEW3jBOr3W7KG/tmY4/pon/U Th9i2OqDDlHdMWQDDVmDiKuCoil7n4jbRoxJzY+RLxfhCc21u48HHCatrBOi1MIJuxOq 9sug== 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=JiJ/cBPG90+2nTzMehFZTFw/vaSLib4rjSxv0srCxu8=; b=U0j3/ahApT2Q2hiX00EWUYHD0NMgY/FE010Q6n93PVl/MXNmG6zmErfeM9/M356y3H OFbG4SwDaQjYwW9hpRED170MTvoj9IMpSTLxX8E14VBrMJ+RwKEo1mAmlKbFnnxxxHCk hZlkBg7n90SqB2OMHL9ySmSYYSJwc7ybBBSimN9EjOVElzm1U2aOJfrrBBX1M5CBW3uK el6YHDmBX86Z/Zj1+yFjIHE7+/rEPAXBc7GWFkd5jMogOykAF+HYOuA9qIDlI71ErDbf QZ1u4VQQzz9X42qwwllhNyk5b8OzxMs4LvU/VbVpuZeD96QMVM8QQUO+gdUUbCjGHfoz mgYw== 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 c132si7925755pga.597.2018.11.13.10.09.40; Tue, 13 Nov 2018 10:10:06 -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 S1732699AbeKNEF7 (ORCPT + 99 others); Tue, 13 Nov 2018 23:05:59 -0500 Received: from mga02.intel.com ([134.134.136.20]:59581 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732561AbeKNEF7 (ORCPT ); Tue, 13 Nov 2018 23:05:59 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 10:06:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,229,1539673200"; d="scan'208";a="279519689" Received: from marshy.an.intel.com ([10.122.105.159]) by fmsmga005.fm.intel.com with ESMTP; 13 Nov 2018 10:06:43 -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@linux.intel.com, richard.gong@intel.com Subject: [PATCHv11 7/8] Documentation: driver-api: add stratix10 service layer Date: Tue, 13 Nov 2018 12:14:05 -0600 Message-Id: <1542132846-24168-8-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542132846-24168-1-git-send-email-richard.gong@linux.intel.com> References: <1542132846-24168-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 Intel Stratix10 service layer driver document Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v5: this patch is added in patch set version 5, add new file stratix10-svc.rst add stratix10-svc.rst to driver-api/index.rst 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 v11: no change --- .../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