Received: by 10.223.164.202 with SMTP id h10csp1307157wrb; Fri, 17 Nov 2017 18:38:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMbxsShi+VVaC62iDziEJx2IP5n34dRLLc6PBURnKcyHNKSloluZUEuLmrkpF+HJ34DoUWiF X-Received: by 10.159.211.67 with SMTP id g3mr7199424plp.381.1510972733421; Fri, 17 Nov 2017 18:38:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510972733; cv=none; d=google.com; s=arc-20160816; b=Yht5A0kL+gTkXLqKdpBu3ZkHyL0W+T60dRjq2PAGNGuy2m/lX41GtsLsMl+dFbPzrX RzSsyZlN5gsCNLor7jqLigff+D/CVbf/aiGst84+zpypB7qjrNs5GntTnF5+T+ACQLVI UBD3MfxsL+gCaNUoJ/bApGIR+/OxEFAlYyokpnqj5ker1BtqDY5Hx8u2qWpo80H6H0Xb 0ol5CSb7JKd7eALlIyQ1H+AyTbIX3DXBmOiNwTiw3sqYWn5kypGLckRSloES8058pqxg M5u+D2urRcylqVCf/wnFXatRSH4ee9QZTGGa6lpUhmtnrCOyuUsfDzIhepGuRb1YAMT2 PebQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=9sVY2Vc0u7hXipKRcBjWj6YORVu9MCOTG/ZJg+LA3hQ=; b=yRRQmFtuWf614f4uZ4eslIhDa2ioRPhp9dIZcWI0pEs+mWaoew+6M8/0gRgXmA135u v9gdzw7Qf/i1fPMOLeCWK+iRD+x03qdIi9RY9/AZlcGFT0gbspRJBrQbPCRUzhQpqgxh mWLsGvbTOfIcI2k7s0ZvlrmYgBu8/2Tsgr0XcDFBpjGEsrOoXs5IZ+JwRGbCV0yTt42D qc/EfdO5rvhGziHpJ3wi2nIPoSyfnXadgZG3YWiJ17Tym9+IXCO2o2thHINKtkPWCb63 tgW0WaCsdMSdC2U0cukU6X8hJAtv9VT+yxlEol0i5SCZ8npgwdsZzFQPQbuCNU63wXlE XImQ== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si3718121pgc.628.2017.11.17.18.38.39; Fri, 17 Nov 2017 18:38:53 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935645AbdKQTe4 (ORCPT + 93 others); Fri, 17 Nov 2017 14:34:56 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:44668 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935618AbdKQTem (ORCPT ); Fri, 17 Nov 2017 14:34:42 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAHJYaEs052780 for ; Fri, 17 Nov 2017 14:34:41 -0500 Received: from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ea4g2c214-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 17 Nov 2017 14:34:41 -0500 Received: from localhost by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 17 Nov 2017 14:34:40 -0500 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 17 Nov 2017 14:34:37 -0500 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vAHJYbkT53411916; Fri, 17 Nov 2017 19:34:37 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 80E98112040; Fri, 17 Nov 2017 14:34:01 -0500 (EST) Received: from oc3016140333.ibm.com (unknown [9.41.174.252]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP id B1503112034; Fri, 17 Nov 2017 14:34:00 -0500 (EST) From: Eddie James To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, bradleyb@fuzziesquirrel.com, cbostic@linux.vnet.ibm.com, joel@jms.id.au, eajames@linux.vnet.ibm.com, "Edward A. James" Subject: [PATCH v4 0/4] drivers/fsi: Add SBEFIFO client driver Date: Fri, 17 Nov 2017 13:34:30 -0600 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 17111719-0044-0000-0000-000003B1C153 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008084; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000240; SDB=6.00947307; UDB=6.00478258; IPR=6.00727599; BA=6.00005698; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00018068; XFM=3.00000015; UTC=2017-11-17 19:34:39 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17111719-0045-0000-0000-000007E0E380 Message-Id: <1510947274-7519-1-git-send-email-eajames@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-17_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711170263 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Edward A. James" This series adds an FSI-based device driver for the SBEFIFO. IBM POWER9 processors contain some embedded hardware and software bits collectively referred to as the self boot engine (SBE). One role of the SBE is to act as a proxy that provides access to the registers of the POWER chip from other (embedded) systems. The POWER9 chip contains a hardware frontend for communicating with the SBE from remote systems called the SBEFIFO. The SBEFIFO logic is contained within an FSI CFAM and as such the driver implements an FSI bus device. The SBE expects to communicate using a defined wire protocol; however, the driver knows nothing of the protocol and only provides raw access to the fifo device to userspace applications wishing to communicate with the SBE using the wire protocol. The SBEFIFO consists of two hardware fifos. The upstream fifo is used by the driver to transfer data to the SBE on the POWER chip, from the system hosting the driver. The downstream fifo is used by the driver to transfer data from the SBE on the power chip to the system hosting the driver. Changes since v3: - Add reset procedure and use it if there is data in the FIFO at probe time. - Add timeout for waiting for data to appear in the FIFO; if the SBE isn't running, then previously we would wait forever. - Fix remove() order of operations. - Fix xfr memory leak. - Formatting fixes. Edward A. James (4): dt-bindings: fsi: Add SBEFIFO documentation drivers/fsi: Add SBEFIFO FSI client device driver drivers/fsi: sbefifo: Add miscdevice drivers/fsi: sbefifo: Add in-kernel API .../devicetree/bindings/fsi/ibm,p9-sbefifo.txt | 35 + drivers/fsi/Kconfig | 7 + drivers/fsi/Makefile | 1 + drivers/fsi/fsi-sbefifo.c | 1024 ++++++++++++++++++++ include/linux/fsi-sbefifo.h | 30 + 5 files changed, 1097 insertions(+) create mode 100644 Documentation/devicetree/bindings/fsi/ibm,p9-sbefifo.txt create mode 100644 drivers/fsi/fsi-sbefifo.c create mode 100644 include/linux/fsi-sbefifo.h -- 1.8.3.1 From 1584368080658115642@xxx Sat Nov 18 02:12:26 +0000 2017 X-GM-THRID: 1584085398794430736 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread